OpenBSD/src aMFh879 — sys/ufs/ufs ufs_ihash.c

   sys/ufs: check vnode identity after vget

   From Acts1631

   OK: claudio@
VersionDeltaFile
1.33+7-1sys/ufs/ufs/ufs_ihash.c
+7-11 files

OpenBSD/src PUFGR0J — usr.bin/tmux tmux.h tty-keys.c

   Redraw when pixel sizes change.
VersionDeltaFile
1.487+8-2usr.bin/tmux/tty.c
1.218+5-3usr.bin/tmux/tty-keys.c
1.1460+2-2usr.bin/tmux/tmux.h
+15-73 files

OpenBSD/src Gx2ghmT — usr.sbin/rpki-client main.c extern.h

   Split insertion into the CA tree and the go/no-go on syncing a CA

   OK tb@
VersionDeltaFile
1.18+47-43usr.sbin/rpki-client/nca.c
1.323+4-2usr.sbin/rpki-client/main.c
1.309+4-2usr.sbin/rpki-client/extern.h
+55-473 files

OpenBSD/src 7FjlAzg — usr.sbin/rpki-client extern.h filemode.c

   rpki-client: implement filemode CMS prober using CBS

   This removes the last use of the garbage libcrypto CMS API in rpki-client.
   Good riddance.

   ok beck claudio job
VersionDeltaFile
1.72+58-1usr.sbin/rpki-client/cms.c
1.93+2-40usr.sbin/rpki-client/filemode.c
1.308+3-1usr.sbin/rpki-client/extern.h
+63-423 files

OpenBSD/src DZC4AoB — usr.sbin/rpki-client cms.c

   rpki-client: accept indefinite lengths in filemode

   ARIN special. In filemode re-encode the "der" buffer into definite
   length encoding. The DER parser can then deserialize the signed
   object. This miraculously works because of the way CMS signatures
   are computed: signedAttrs MUST be DER encoded (per RFC 5652, 5.3)
   and the value octets of the eContent do not use the invalid encoding
   (but its length octets do!). The signature and the message-digest
   attribute therefore check out despite this modification.

   I say "miraculous" above because this is partly because of how CMS
   works, but ARIN could also have used BER encoding for the eContent,
   breaking this hack. Rumor has it that there used to be a CA out
   there that used to use constructed encoding for octet strings.

   This unbreaks regress after the previous commit.

   ok and "oh dear god" beck
   ok claudio job
VersionDeltaFile
1.71+39-7usr.sbin/rpki-client/cms.c
+39-71 files

OpenBSD/src hgRJzGY — regress/usr.sbin/rpki-client/openssl unistd.h

   rpki-client regress: get rid of no longer needed compat glue
VersionDeltaFile
1.8+1-16regress/usr.sbin/rpki-client/openssl/unistd.h
+1-161 files

OpenBSD/src ffxxAXz — usr.sbin/rpki-client extern.h cert.c

   rpki-client: implement a CBS-based RFC 6488 parser

   This commit gets rid of the use of the crazy CMS API from libcrypto
   in normal mode, replacing it with CBS-based parsing code written from
   scratch. This only adds about 300 simple lines of code (according to
   cloc) to cms.c. A big part of the additions are copious comments.
                                                                                                    This ensures that whatever is parsed is properly DER encoded.
   One approach of fixing regress and enabling history spelunking
   is in the follow-up commit.

   The parser is essentially zero-copy with the following exceptions:

   - deserialization of the EE cert
   - signature validation needs some contortions because CMS is weird
   - parsing of signing-time

   Since we now get our hands on the raw cert DER, cert_parse_ee_cert()
   can be like the other cert parsing functions (except for the talid).
                                                                                                    This passes the fixture test and the one remaining TODO item is error

    [3 lines not shown]
VersionDeltaFile
1.70+780-269usr.sbin/rpki-client/cms.c
1.248+39-35usr.sbin/rpki-client/cert.c
1.307+3-2usr.sbin/rpki-client/extern.h
+822-3063 files

OpenBSD/src VTtNI5j — usr.sbin/rpki-client parser.c cert.c

   rpki-client: use expire time of the signature path for BRKs

   Previously, the expire time in the BRK tree was simply the notAfter in
   the BGPsec Router cert. This diff pushes the expire time for all certs
   to the main process and switches to using the signature path to compute
   the expire time. This way BRKs are treated the same way as VRPs and VAPs
   and will probably expire in the next hours up to a week rather than
   months from now.

   This also makes the data pushed to rtrd and stored in the json output
   match what file mode has reported since forever. Since we're still at
   exactly two BRKs in the entire RPKI it does not currently matter much.

   ok job rcovelli
VersionDeltaFile
1.247+4-2usr.sbin/rpki-client/cert.c
1.194+2-1usr.sbin/rpki-client/parser.c
+6-32 files

OpenBSD/src xxnVIrT — usr.sbin/httpd httpd.h server.c

   httpd: convert imsg handling to imsg_get_ and remove IMSG_SIZE_CHECK macro

   Tweak and OK claudio@
VersionDeltaFile
1.80+29-24usr.sbin/httpd/config.c
1.29+36-11usr.sbin/httpd/logger.c
1.187+1-5usr.sbin/httpd/httpd.h
1.142+3-3usr.sbin/httpd/server.c
1.88+3-3usr.sbin/httpd/httpd.c
+72-465 files

OpenBSD/src 7oZ7wFg — usr.sbin/httpd server.c httpd.c

   httpd: use imsg_get_type

   OK tb@ claudio@
VersionDeltaFile
1.28+4-4usr.sbin/httpd/logger.c
1.141+3-3usr.sbin/httpd/server.c
1.87+3-3usr.sbin/httpd/httpd.c
+10-103 files

OpenBSD/src dAdTLeu — usr.sbin/httpd config.c

   httpd: use imsg_get_data to read ctl_flags

   OK claudio@
VersionDeltaFile
1.79+3-4usr.sbin/httpd/config.c
+3-41 files

OpenBSD/src nT2PRPP — usr.bin/ssh ed25519.sh

   undisable import script cleanup() function; debugging leftover
VersionDeltaFile
1.9+3-3usr.bin/ssh/ed25519.sh
+3-31 files

OpenBSD/src M3EZ2rh — usr.sbin/ypbind ypbind.c

   fix mistake in rev 1.82 that resulted in an early exit()
   ok deraadt@
VersionDeltaFile
1.87+1-2usr.sbin/ypbind/ypbind.c
+1-21 files

OpenBSD/src mshddcZ — usr.sbin/rtrd sockets.c

   remove fcntl() O_NONBLOCK and replace with accept4() SOCK_NONBLOCK

   OK deraadt@ tb@
VersionDeltaFile
1.8+4-39usr.sbin/rtrd/sockets.c
+4-391 files

OpenBSD/src VwpKYbD — usr.sbin/ypset ypset.c

   fix up pledge arguments

   ok deraadt@ jsg@
VersionDeltaFile
1.23+3-3usr.sbin/ypset/ypset.c
+3-31 files

OpenBSD/src KRmGDPH — usr.bin/tmux window-copy.c

   Fix some long lines.
VersionDeltaFile
1.438+13-12usr.bin/tmux/window-copy.c
+13-121 files

OpenBSD/src J6hck7h — usr.bin/tmux tty-draw.c

   Restructure a little bit of code.
VersionDeltaFile
1.19+5-6usr.bin/tmux/tty-draw.c
+5-61 files

OpenBSD/src wE7VynJ — usr.sbin/rpki-client output-json.c main.c

   Set/clear a new 'nonfunc' flag for handling non-functional CAs

   (Instead of removing RB tree elements for accounting purposes)

   OK tb@
VersionDeltaFile
1.17+16-13usr.sbin/rpki-client/nca.c
1.306+6-3usr.sbin/rpki-client/extern.h
1.94+5-2usr.sbin/rpki-client/repo.c
1.322+3-3usr.sbin/rpki-client/main.c
1.63+4-1usr.sbin/rpki-client/output-json.c
+34-225 files

OpenBSD/src yEV6Ft0 — usr.sbin/rpki-client main.c

   outdirfd is not used again after fchdir; ok tb job
VersionDeltaFile
1.321+2-1usr.sbin/rpki-client/main.c
+2-11 files

OpenBSD/src YnqJG2n — usr.sbin/rpki-client parser.c

   Make comment less objectionable

   (*narrator voice* there was nothing standard about this stuff)

   OK tb@
VersionDeltaFile
1.193+4-4usr.sbin/rpki-client/parser.c
+4-41 files

OpenBSD/src 7weuwOw — usr.sbin/rpki-client main.c nca.c

   Rename variable names for consistency

   mechnical changes: ncas to ca_tree, ncas_hist to nca_hist_tree, tree to
   ca_tree, and needle to nca_hist_needle.

   OK tb@
VersionDeltaFile
1.16+24-21usr.sbin/rpki-client/nca.c
1.320+3-3usr.sbin/rpki-client/main.c
+27-242 files

OpenBSD/src FKJGQUp — regress/usr.sbin/relayd Remote.pm

   Execute remote relayd test with CERTBASE environment.
VersionDeltaFile
1.8+3-2regress/usr.sbin/relayd/Remote.pm
+3-21 files

OpenBSD/src 6rWErD3 — lib/libc/dlfcn init.c

   For any binary linked against libc, compare the file setuid/setgid bits
   against the internal global variable _permit_setugid.
   If either bit is set in the file mode, but the same bit is not set in
   the variable, generate a syslog message, output the same to stderr.
   It looks like this:  /usr/bin/x: not supposed to be setuid, aborting
   It does not abort yet because some packages need the correct variable
   to be added.  Soon, soon, soon...
VersionDeltaFile
1.31+26-1lib/libc/dlfcn/init.c
+26-11 files

OpenBSD/src N9BuAag — sys/arch/arm64/dev aplsmc.c

   Improve apm info for machines without a battery.

   ok deraadt@, jca@
VersionDeltaFile
1.34+14-3sys/arch/arm64/dev/aplsmc.c
+14-31 files

OpenBSD/src H4sCw2w — sys/kern exec_elf.c

   AuxInfo[ELF_AUX_ENTRIES] is filled based upon a collection of MI and
   MD enums.  Addition of a new auxval without increasing ELF_AUX_ENTRIES
   happened twice to me, and the failure mode is way too subtle.  Add
   KASSERT() for every enum storage into the array, which the compiler
   completely eliminates if it notices the number of array stores is
   <= the array size.
   ok kettenis
VersionDeltaFile
1.208+65-53sys/kern/exec_elf.c
+65-531 files

OpenBSD/src 2OCeEFw — sys/msdosfs msdosfsmount.h

   Fix calculation of i/o size needed to read FSInfo struct.

   From Acts1631.

   ok jsg@
VersionDeltaFile
1.24+2-2sys/msdosfs/msdosfsmount.h
+2-21 files

OpenBSD/src voFOvIl — sys/arch/amd64/include vmparam.h

   bump MAXTSIZ to 512M due to piggy browsers, ok deraadt
VersionDeltaFile
1.27+2-2sys/arch/amd64/include/vmparam.h
+2-21 files

OpenBSD/src b1FDJux — usr.bin/tmux window.c tmux.h

   Add format variables for the cmdline property to OSC 133, GitHub issue 5711.
VersionDeltaFile
1.276+51-1usr.bin/tmux/input.c
1.428+15-1usr.bin/tmux/format.c
1.75+2-2usr.bin/tmux/utf8.c
1.1185+3-1usr.bin/tmux/tmux.1
1.386+2-1usr.bin/tmux/window.c
1.1459+2-1usr.bin/tmux/tmux.h
+75-76 files

OpenBSD/src OhswiTO — usr.sbin/httpd httpd.h httpd.c

   Remove unused IMSG_CTL_RELOAD

   Spotted by claudio@
VersionDeltaFile
1.86+1-8usr.sbin/httpd/httpd.c
1.186+1-2usr.sbin/httpd/httpd.h
+2-102 files

OpenBSD/src 2OehGrK — usr.bin/ssh ssh.1

   Use the public key in the example of determining a server's public key.
   From lucas at seninha.org on misc with a minor tweak by me.
VersionDeltaFile
1.457+5-4usr.bin/ssh/ssh.1
+5-41 files