CVS: cvs.openbsd.org: src

2022-01-15 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/16 00:12:28

Modified files:
usr.bin/openssl: smime.c 

Log message:
Avoid memory leak in error path with openssl(1) smime

CID 345316

ok tb@



CVS: cvs.openbsd.org: src

2022-01-15 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/16 00:11:49

Modified files:
usr.bin/openssl: cms.c 

Log message:
Avoid memory leak in error path with openssl(1) cms

CID 345314 345320

ok tb@



CVS: cvs.openbsd.org: src

2022-01-15 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/01/15 23:27:14

Modified files:
sys/net: bpf.c 

Log message:
activate/notify waiting kq kevents from bpf_wakeup directly.

this builds on the mpsafe kq/kevent work visa has been doing.

normally kevents are notified by calling selwakeup, but selwakeup
needs the KERNEL_LOCK. because bpf runs from all sorts of contexts
that may or may not have the kernel lock, the call to selwakeup is
deferred to the systq which already has the kernel lock. while this
avoids spinning in bpf for the kernel lock, it still adds latency
between when the buffer is ready for a program and when that program
gets notified about it. now that bpf kevents are mpsafe and bpf_wakeup
is already holding the necessary locks, we can avoid that latency.

bpf_wakeup now checks if there are waiting kevents and notifies
them immediately. if there are no other things to wake up, bpf_wakeup
avoids the task_add (and associated reference counting) to defer
the selwakeup call.

selwakeup can still try to notify waiting kevents, so this uses the
hint passed to knote() to differentiate between the notification
from bpf_wakeup and selwakeup and returns early from the latter.

ok visa@



CVS: cvs.openbsd.org: src

2022-01-15 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/15 22:38:58

Modified files:
share/man/man9 : SMR_LIST_INIT.9 

Log message:
initialies -> initializes
ok visa@



CVS: cvs.openbsd.org: src

2022-01-15 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/15 21:43:34

Modified files:
distrib/miniroot: install.sub 

Log message:
spelling



CVS: cvs.openbsd.org: src

2022-01-15 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2022/01/15 19:17:06

Modified files:
libexec/ld.so/riscv64: archdep.h 

Log message:
Nothing depends on archdep.h pulling in other #includes anymore,
so delete the #includes and hide the RELOC_* functions that are
only used by lib/csu behind "#ifdef RCRT0"

ok jca@



CVS: cvs.openbsd.org: src

2022-01-15 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2022/01/15 19:16:40

Modified files:
libexec/ld.so/powerpc64: archdep.h 

Log message:
Nothing depends on archdep.h pulling in other #includes anymore,
so delete the #includes and hide the RELOC_* functions that are
only used by lib/csu behind "#ifdef RCRT0"

ok kettenis@



CVS: cvs.openbsd.org: src

2022-01-15 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2022/01/15 19:14:27

Modified files:
libexec/ld.so/m88k: archdep.h 

Log message:
Nothing depends on archdep.h pulling in other #includes anymore,
so delete the #includes and hide the RELOC_* functions that are
only used by lib/csu behind "#ifdef RCRT0"

ok aoyama@



CVS: cvs.openbsd.org: src

2022-01-15 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/15 17:15:48

Modified files:
share/man/man9 : stoeplitz_to_key.9 

Log message:
stoeplizt -> stoeplitz



CVS: cvs.openbsd.org: src

2022-01-15 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2022/01/15 16:39:11

Modified files:
usr.sbin/vmd   : mc146818.c 

Log message:
vmd: Remove a warning about non-32KHz timebases

Remove a warning that has outlived its usefulness.

>From Brian Conway, thanks.



CVS: cvs.openbsd.org: src

2022-01-15 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/15 16:38:50

Modified files:
lib/libcrypto/man: BIO_dump.3 DH_set_method.3 DSA_meth_new.3 
   DSA_set_method.3 ENGINE_ctrl.3 
   OCSP_CRLID_new.3 PEM_read.3 RSA_set_method.3 
   X509_OBJECT_get0_X509.3 
   get_rfc3526_prime_8192.3 
lib/libssl/man : SSL_CIPHER_get_name.3 
 SSL_CTX_set_tlsext_ticket_key_cb.3 

Log message:
spelling
ok tb@



CVS: cvs.openbsd.org: src

2022-01-15 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/15 11:16:02

Modified files:
lib/libcrypto/man: HMAC.3 

Log message:
Add back an accidentally dropped .Pp



CVS: cvs.openbsd.org: src

2022-01-15 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/01/15 04:04:16

Modified files:
sys/arch/arm64/dev: apliic.c 

Log message:
Don't reset the controller on each transaction.  Remove unecessary polling
loop and adjust another polling loop.  This makes accessing the cs42l83
audio codec work.  Probably removing the reset is enough to fix this
but the other changes bring us in line with the Linux driver which had
some decent RE done to it recently.

ok patrick@



CVS: cvs.openbsd.org: src

2022-01-15 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/15 02:14:40

Modified files:
lib/libcrypto/man: HMAC.3 

Log message:
Update for HMAC_CTX_{init,cleanup} hand HMAC_cleanup removal



CVS: cvs.openbsd.org: src

2022-01-15 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/15 02:08:52

Modified files:
lib/libcrypto/man: EVP_DigestInit.3 EVP_DigestSignInit.3 
   EVP_DigestVerifyInit.3 

Log message:
Stop documenting clone digests.