CVS: cvs.openbsd.org: src

2023-01-15 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/01/16 00:29:35

Modified files:
sys/arch/alpha/stand: OSFpal.c bootxx.c prom.c puts.c 
sys/arch/alpha/stand/boot: boot.c devopen.c disk.c 
sys/arch/alpha/stand/netboot: dev_net.c getsecs.c if_prom.c 

Log message:
roughly cleanup terrible pre-ansi practices
ok miod



CVS: cvs.openbsd.org: src

2023-01-15 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2023/01/16 00:09:12

Modified files:
sys/sys: proc.h 
sys/kern   : exec_elf.c 
sys/uvm: uvm_mmap.c 
lib/libc/dlfcn : init.c 

Log message:
Currently we disable kbind(2) for static program from libc.a's
preinit hook.  Delete that and instead have the kernel disable kbind
at exec-time if the program doesn't have an ELF interpreter.  For
now, permit userland calls to disable it when already disabled so
existing static programs continue to work.

prompted by deraadt@ questioning about the call in libc.a

ok deraadt@ miod@



CVS: cvs.openbsd.org: src

2023-01-15 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/01/15 22:32:06

Modified files:
sys/arch/alpha/alpha: trap.c 
sys/arch/amd64/amd64: trap.c 
sys/arch/arm/arm: syscall.c 
sys/arch/arm64/arm64: syscall.c 
sys/arch/hppa/hppa: trap.c 
sys/arch/i386/i386: trap.c 
sys/arch/m88k/m88k: trap.c 
sys/arch/mips64/mips64: trap.c 
sys/arch/powerpc/powerpc: trap.c 
sys/arch/powerpc64/powerpc64: syscall.c 
sys/arch/riscv64/riscv64: syscall.c 
sys/arch/sh/sh : trap.c 
sys/arch/sparc64/sparc64: trap.c 
sys/sys: ktrace.h syscall_mi.h 
usr.bin/kdump  : kdump.c 

Log message:
we spent far too long debugging a weird go library problem (incorrect
arguments to mmap) because it was using syscall(2) and that callpath
is invisible in ktrace.  make it visible, it will now show "(via syscall)"
and such.
ok guenther



CVS: cvs.openbsd.org: src

2023-01-15 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/01/15 21:11:29

Modified files:
regress/usr.bin/ssh: krl.sh 

Log message:
unbreak test: cannot access shell positional parameters past $9 without
wrapping the position in braces (i.e. need ${10}, etc.)



CVS: cvs.openbsd.org: src

2023-01-15 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/01/15 17:05:18

Modified files:
sys/arch/amd64/amd64: genassym.cf 

Log message:
export PGK_VALUE so that .S files can use it



CVS: cvs.openbsd.org: src

2023-01-15 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/01/15 17:04:47

Modified files:
sys/arch/amd64/include: pte.h 

Log message:
3 new defines: he PTE protection key mask, the specific key value we use
for execute-only, and the PKU value used by userland to use that key.



CVS: cvs.openbsd.org: src

2023-01-15 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/01/15 16:35:10

Modified files:
regress/usr.bin/ssh/misc/sk-dummy: Makefile 
regress/usr.bin/ssh/unittests/authopt: Makefile 
regress/usr.bin/ssh/unittests/hostkeys: Makefile 
regress/usr.bin/ssh/unittests/kex: Makefile 
regress/usr.bin/ssh/unittests/sshkey: Makefile 
regress/usr.bin/ssh/unittests/sshsig: Makefile 

Log message:
adapt to ed25519 changes in src/usr.bin/ssh



CVS: cvs.openbsd.org: src

2023-01-15 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/01/15 16:05:32

Modified files:
usr.bin/ssh: Makefile.inc crypto_api.h ed25519.c 
Added files:
usr.bin/ssh: ed25519.sh 
Removed files:
usr.bin/ssh: fe25519.c fe25519.h ge25519.c ge25519.h 
 ge25519_base.data sc25519.c sc25519.h verify.c 

Log message:
update OpenSSH's Ed25519 code to the last version of SUPERCOP (20221122)
and change the import approach to the same one we use for Streamlined
NTRUPrime: use a shell script to extract the bits we need from SUPERCOP,
make some minor adjustments and squish them all into a single file.

ok tb@ tobhe@



CVS: cvs.openbsd.org: src

2023-01-15 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/01/15 06:58:44

Modified files:
lib/libcrypto/gost: gostr341001_key.c 

Log message:
gost: add missing BN_CTX_{start,end}() pair

The new BN_CTX code enforces that the context be started before a BIGNUM
can be obtained from it via BN_CTX_get(), tests for ssl/interop and the
openssl app broke, implying missing test coverage in libcrypto itself.
Add the obviously missing bits.

reported by anton
ok jsing



CVS: cvs.openbsd.org: src

2023-01-15 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/01/15 06:51:59

Modified files:
sys/dev/pci/drm/amd/display/amdgpu_dm: amdgpu_dm.c 
sys/dev/pci/drm: drm_client.c 

Log message:
restore strscpy() paths to reduce diff to linux