sync with OpenBSD -current

This commit is contained in:
purplerain 2024-10-07 03:45:05 +00:00
parent ddc9562b79
commit 4544ef4a2e
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
6 changed files with 35 additions and 98 deletions

View file

@ -1,4 +1,4 @@
# $OpenBSD: genassym.cf,v 1.19 2024/10/04 19:00:27 miod Exp $ # $OpenBSD: genassym.cf,v 1.20 2024/10/06 22:47:38 jsg Exp $
# $NetBSD: genassym.cf,v 1.27 2003/11/04 10:33:16 dsl Exp$ # $NetBSD: genassym.cf,v 1.27 2003/11/04 10:33:16 dsl Exp$
# Copyright (c) 1982, 1990 The Regents of the University of California. # Copyright (c) 1982, 1990 The Regents of the University of California.
@ -35,119 +35,49 @@ include <sys/param.h>
include <sys/proc.h> include <sys/proc.h>
include <sys/systm.h> include <sys/systm.h>
include <sys/mbuf.h> include <sys/mbuf.h>
include <sys/resourcevar.h>
include <sys/device.h>
include <sys/user.h>
include <sys/signal.h>
include <sys/mbuf.h>
include <sys/socketvar.h>
include <netinet/in.h> include <netinet/in.h>
include <netinet/ip.h> include <netinet/ip.h>
include <machine/cpu.h> include <machine/cpu.h>
include <uvm/uvm_extern.h> include <machine/cpufunc.h>
include <arm/fiq.h> include <arm/fiq.h>
include <machine/pmap.h>
include <machine/frame.h> include <machine/frame.h>
include <machine/vmparam.h> include <machine/vmparam.h>
export VM_MIN_ADDRESS export PAGE_SIZE
export VM_MAXUSER_ADDRESS
ifdef __ARM_FIQ_INDIRECT ifdef __ARM_FIQ_INDIRECT
define __ARM_FIQ_INDIRECT 1 define __ARM_FIQ_INDIRECT 1
endif endif
export PMAP_DOMAIN_KERNEL
ifdef PMAP_INCLUDE_PTE_SYNC ifdef PMAP_INCLUDE_PTE_SYNC
define PMAP_INCLUDE_PTE_SYNC 1 define PMAP_INCLUDE_PTE_SYNC 1
endif endif
export PAGE_SIZE
export UPAGES
export PAGE_SHIFT
export SONPROC export SONPROC
struct proc struct proc
member p_addr member p_addr
member p_cpu member p_cpu
member p_stat member p_stat
# XXX use PROC_SIZEOF in new code whenever possible
define PROCSIZE sizeof(struct proc)
struct pcb struct pcb
member pcb_tf
member pcb_pagedir member pcb_pagedir
member pcb_pl1vec
member pcb_l1vec
member pcb_dacr
member pcb_cstate member pcb_cstate
member pcb_flags
member PCB_R8 pcb_un.un_32.pcb32_r8 member PCB_R8 pcb_un.un_32.pcb32_r8
member PCB_R9 pcb_un.un_32.pcb32_r9
member PCB_R10 pcb_un.un_32.pcb32_r10
member PCB_R11 pcb_un.un_32.pcb32_r11
member PCB_R12 pcb_un.un_32.pcb32_r12
member PCB_SP pcb_un.un_32.pcb32_sp
member PCB_LR pcb_un.un_32.pcb32_lr
member PCB_PC pcb_un.un_32.pcb32_pc
member PCB_UND_SP pcb_un.un_32.pcb32_und_sp member PCB_UND_SP pcb_un.un_32.pcb32_und_sp
member pcb_onfault member pcb_onfault
member pcb_tcb member pcb_tcb
# XXX use USER_SIZEOF in new code whenever possible
define USER_SIZE sizeof(struct user)
struct uvmexp
member V_TRAP traps
member V_INTR intrs
member V_SOFT softs
struct vmspace
member vm_map
member VM_PMAP vm_map.pmap
union pmap_cache_state
member cs_tlb_id
member cs_tlb_d
member cs_tlb
member cs_cache_id
member cs_cache_d
member cs_cache
member cs_all
struct pmap
member PMAP_CSTATE pm_cstate
struct uprof
member pr_base
member pr_size
member pr_off
member pr_scale
export SIGTRAP
struct sigframe struct sigframe
member SIGF_SC sf_sc member SIGF_SC sf_sc
struct trapframe
member tf_r0
member tf_r10
member tf_pc
# XXX use TRAFRAME_SIZEOF in new code whenever possible
define TRAPFRAMESIZE sizeof(struct trapframe)
struct cpu_functions struct cpu_functions
member cf_icache_sync_all
member cf_idcache_wbinv_all member cf_idcache_wbinv_all
member cf_dcache_wb_range
member cf_tlb_flushID_SE
member cf_context_switch member cf_context_switch
member cf_sleep member cf_sleep
member cf_control
struct cpu_info struct cpu_info
member ci_curproc member ci_curproc

View file

@ -1,4 +1,4 @@
/* $OpenBSD: apm.c,v 1.132 2023/07/02 19:02:27 cheloha Exp $ */ /* $OpenBSD: apm.c,v 1.133 2024/10/07 01:31:22 jsg Exp $ */
/*- /*-
* Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved. * Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved.
@ -41,6 +41,7 @@
#include <sys/kernel.h> #include <sys/kernel.h>
#include <sys/kthread.h> #include <sys/kthread.h>
#include <sys/rwlock.h> #include <sys/rwlock.h>
#include <sys/proc.h>
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <sys/clockintr.h> #include <sys/clockintr.h>
#include <sys/device.h> #include <sys/device.h>

View file

@ -1,4 +1,4 @@
/* $OpenBSD: if_bnxt.c,v 1.51 2024/06/26 01:40:49 jsg Exp $ */ /* $OpenBSD: if_bnxt.c,v 1.52 2024/10/06 23:43:18 jmatthew Exp $ */
/*- /*-
* Broadcom NetXtreme-C/E network driver. * Broadcom NetXtreme-C/E network driver.
* *
@ -316,6 +316,7 @@ void bnxt_write_tx_doorbell(struct bnxt_softc *, struct bnxt_ring *,
int); int);
int bnxt_rx_fill(struct bnxt_queue *); int bnxt_rx_fill(struct bnxt_queue *);
int bnxt_rx_fill_ag(struct bnxt_queue *);
u_int bnxt_rx_fill_slots(struct bnxt_softc *, struct bnxt_ring *, void *, u_int bnxt_rx_fill_slots(struct bnxt_softc *, struct bnxt_ring *, void *,
struct bnxt_slot *, uint *, int, uint16_t, u_int); struct bnxt_slot *, uint *, int, uint16_t, u_int);
void bnxt_refill(void *); void bnxt_refill(void *);
@ -955,6 +956,7 @@ bnxt_queue_up(struct bnxt_softc *sc, struct bnxt_queue *bq)
rx->rx_ag_prod = 0; rx->rx_ag_prod = 0;
rx->rx_ag_cons = 0; rx->rx_ag_cons = 0;
bnxt_rx_fill(bq); bnxt_rx_fill(bq);
bnxt_rx_fill_ag(bq);
tx->tx_cons = 0; tx->tx_cons = 0;
tx->tx_prod = 0; tx->tx_prod = 0;
@ -1659,6 +1661,7 @@ bnxt_intr(void *xq)
} }
bnxt_rx_fill(q); bnxt_rx_fill(q);
bnxt_rx_fill_ag(q);
if ((rx->rx_cons == rx->rx_prod) || if ((rx->rx_cons == rx->rx_prod) ||
(rx->rx_ag_cons == rx->rx_ag_prod)) (rx->rx_ag_cons == rx->rx_ag_prod))
timeout_add(&rx->rx_refill, 0); timeout_add(&rx->rx_refill, 0);
@ -2233,6 +2236,17 @@ bnxt_rx_fill(struct bnxt_queue *q)
} else } else
rv = 1; rv = 1;
return (rv);
}
int
bnxt_rx_fill_ag(struct bnxt_queue *q)
{
struct bnxt_rx_queue *rx = &q->q_rx;
struct bnxt_softc *sc = q->q_sc;
u_int slots;
int rv = 0;
slots = if_rxr_get(&rx->rxr[1], rx->rx_ag_ring.ring_size); slots = if_rxr_get(&rx->rxr[1], rx->rx_ag_ring.ring_size);
if (slots > 0) { if (slots > 0) {
slots = bnxt_rx_fill_slots(sc, &rx->rx_ag_ring, slots = bnxt_rx_fill_slots(sc, &rx->rx_ag_ring,
@ -2253,9 +2267,14 @@ bnxt_refill(void *xq)
struct bnxt_queue *q = xq; struct bnxt_queue *q = xq;
struct bnxt_rx_queue *rx = &q->q_rx; struct bnxt_rx_queue *rx = &q->q_rx;
bnxt_rx_fill(q);
if (rx->rx_cons == rx->rx_prod) if (rx->rx_cons == rx->rx_prod)
bnxt_rx_fill(q);
if (rx->rx_ag_cons == rx->rx_ag_prod)
bnxt_rx_fill_ag(q);
if ((rx->rx_cons == rx->rx_prod) ||
(rx->rx_ag_cons == rx->rx_ag_prod))
timeout_add(&rx->rx_refill, 1); timeout_add(&rx->rx_refill, 1);
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: kern_pledge.c,v 1.320 2024/09/24 02:22:42 deraadt Exp $ */ /* $OpenBSD: kern_pledge.c,v 1.321 2024/10/06 23:39:24 jsg Exp $ */
/* /*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@ -85,16 +85,6 @@ int parsepledges(struct proc *p, const char *kname,
int canonpath(const char *input, char *buf, size_t bufsize); int canonpath(const char *input, char *buf, size_t bufsize);
void unveil_destroy(struct process *ps); void unveil_destroy(struct process *ps);
/* #define DEBUG_PLEDGE */
#ifdef DEBUG_PLEDGE
int debug_pledge = 1;
#define DPRINTF(x...) do { if (debug_pledge) printf(x); } while (0)
#define DNPRINTF(n,x...) do { if (debug_pledge >= (n)) printf(x); } while (0)
#else
#define DPRINTF(x...)
#define DNPRINTF(n,x...)
#endif
/* /*
* Ordered in blocks starting with least risky and most required. * Ordered in blocks starting with least risky and most required.
*/ */

View file

@ -1,4 +1,4 @@
/* $OpenBSD: myproposal.h,v 1.73 2024/09/09 02:39:57 djm Exp $ */ /* $OpenBSD: myproposal.h,v 1.74 2024/10/06 23:37:17 djm Exp $ */
/* /*
* Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2000 Markus Friedl. All rights reserved.
@ -32,14 +32,14 @@
"curve25519-sha256@libssh.org," \ "curve25519-sha256@libssh.org," \
"ecdh-sha2-nistp256," \ "ecdh-sha2-nistp256," \
"ecdh-sha2-nistp384," \ "ecdh-sha2-nistp384," \
"ecdh-sha2-nistp521," \ "ecdh-sha2-nistp521" \
#define KEX_CLIENT_KEX KEX_SERVER_KEX "," \
"diffie-hellman-group-exchange-sha256," \ "diffie-hellman-group-exchange-sha256," \
"diffie-hellman-group16-sha512," \ "diffie-hellman-group16-sha512," \
"diffie-hellman-group18-sha512," \ "diffie-hellman-group18-sha512," \
"diffie-hellman-group14-sha256" "diffie-hellman-group14-sha256"
#define KEX_CLIENT_KEX KEX_SERVER_KEX
#define KEX_DEFAULT_PK_ALG \ #define KEX_DEFAULT_PK_ALG \
"ssh-ed25519-cert-v01@openssh.com," \ "ssh-ed25519-cert-v01@openssh.com," \
"ecdsa-sha2-nistp256-cert-v01@openssh.com," \ "ecdsa-sha2-nistp256-cert-v01@openssh.com," \

View file

@ -33,8 +33,8 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: sshd_config.5,v 1.374 2024/09/15 08:27:38 jmc Exp $ .\" $OpenBSD: sshd_config.5,v 1.375 2024/10/06 23:37:17 djm Exp $
.Dd $Mdocdate: September 15 2024 $ .Dd $Mdocdate: October 6 2024 $
.Dt SSHD_CONFIG 5 .Dt SSHD_CONFIG 5
.Os .Os
.Sh NAME .Sh NAME
@ -1063,10 +1063,7 @@ The default is:
sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com, sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,
mlkem768x25519-sha256, mlkem768x25519-sha256,
curve25519-sha256,curve25519-sha256@libssh.org, curve25519-sha256,curve25519-sha256@libssh.org,
ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
diffie-hellman-group-exchange-sha256,
diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,
diffie-hellman-group14-sha256
.Ed .Ed
.Pp .Pp
The list of supported key exchange algorithms may also be obtained using The list of supported key exchange algorithms may also be obtained using