OpenBSD/src vQNebbVsys/arch/riscv64/riscv64 cpu.c

   Stop printing the riscv,isa string; our code to do so is broken and the
   string is now deprecated.  Instead change hw.model to be the CPU core
   name for cpu0 like we do on other architectures.

   We'll revisit printing CPU features for riscv64 in the future.

   ok jca@, mlarkin@
VersionDeltaFile
1.23+17-9sys/arch/riscv64/riscv64/cpu.c
+17-91 files

OpenBSD/src gvRbW9gsys/arch/amd64/amd64 machdep.c, sys/arch/arm64/arm64 cpu.c machdep.c

   Add hw.blockcpu support for arm64.  Here we classify CPU cores based on
   their "capacity".  This a concept borrowed from the device tree standard
   that indicates the nominal performance of a CPU core.  For ACPI machines
   we use similar information from ACPI's Collaborative Processor Performance
   Control (CPPC).  If performance is less than 30% of the fastest cores in
   the same we classify them as L.  Between 30% and 80% we classify them as E.
   And above 80% we classify them as P.  The CPU capacity is communicated to
   userland though kstat(4).

   ok deraadt@, jca@
VersionDeltaFile
1.147+60-20sys/arch/arm64/arm64/cpu.c
1.3+11-1sys/arch/arm64/dev/acpicpu.c
1.309+3-3sys/arch/amd64/amd64/machdep.c
1.55+4-1sys/arch/arm64/include/cpu.h
1.98+3-1sys/arch/arm64/arm64/machdep.c
+81-265 files

OpenBSD/src jxd91eylib/libssl/test P1ss.cnf P2ss.cnf

   Remove lib/libssl/test.

   This is all unhelpful historical cruft.

   Discussed with tb@
VersionDeltaFile
1.2+0-0lib/libssl/test/P1ss.cnf
1.2+0-0lib/libssl/test/P2ss.cnf
1.2+0-0lib/libssl/test/Sssdsa.cnf
1.2+0-0lib/libssl/test/Sssrsa.cnf
1.4+0-0lib/libssl/test/Uss.cnf
1.2+0-0lib/libssl/test/VMSca-response.1
+0-047 files not shown
+0-053 files

OpenBSD/src 8K1mN0Gusr.sbin/relayd config.c

   fix memory leak in config_purge() when dealing CONFIG_PROTOS

   original diff from CypherFox (openbsd at cypher-fox com), thanks!
   slightly rearranged to be a bit smaller by me, but still equivalent.
VersionDeltaFile
1.50+1-6usr.sbin/relayd/config.c
+1-61 files

OpenBSD/src SQimshUlib/libssl ssl_pkt.c t1_enc.c

   Remove workaround for SSL 3.0/TLS 1.0 CBC vulnerability.

   We no longer support TLSv1.0 and definitely do not support SSLv3 - remove
   the empty fragments workaround for the CBC vulnerability in these
   protocols.

   ok kenjiro@ tb@
VersionDeltaFile
1.72+2-38lib/libssl/ssl_pkt.c
1.159+1-20lib/libssl/t1_enc.c
1.250+2-10lib/libssl/ssl.h
1.49+2-7lib/libssl/ssl_both.c
1.37+1-5lib/libssl/ssl_local.h
+8-805 files

OpenBSD/src PE4P17lusr.bin/patch patch.c

   usr.bin/patch: fix fd leak

   From Renaud Allard

   OK: op@
VersionDeltaFile
1.79+7-1usr.bin/patch/patch.c
+7-11 files

OpenBSD/src 5WeMUnKlib/libssl ssl_methods.c ssl_srvr.c

   Ensure that we cannot negotiate TLSv1.1 or lower.

   TLS versions prior to TLSv1.2 were disabled a while ago, however this
   was done in the version handling code. Remove TLSv1.1 and earlier from
   ssl_get_method() and add an explicit min version check in the legacy
   client and server, to provide a stronger guarantee.

   ok kenjiro@ tb@
VersionDeltaFile
1.33+5-11lib/libssl/ssl_methods.c
1.168+8-1lib/libssl/ssl_srvr.c
1.171+8-1lib/libssl/ssl_clnt.c
+21-133 files

OpenBSD/src gXl4e7Nsys/arch/riscv64/conf files.riscv64 RAMDISK, sys/arch/riscv64/dev smtgpio.c

   Add smtgpio(4), a driver for the GPIO controller found on SpacemiT K1 SoCs.

   ok jca@
VersionDeltaFile
1.1+178-0sys/arch/riscv64/dev/smtgpio.c
1.32+6-1sys/arch/riscv64/conf/files.riscv64
1.49+4-1sys/arch/riscv64/conf/RAMDISK
1.57+4-1sys/arch/riscv64/conf/GENERIC
+192-34 files

OpenBSD/src pMk7jwTusr.sbin/smtpd smtpd.conf.5 mda_variables.c

   smtpd: fix using modifiers with partial expansion in format specifiers

   Nits on the manpage and ok op@
VersionDeltaFile
1.282+10-2usr.sbin/smtpd/smtpd.conf.5
1.11+3-2usr.sbin/smtpd/mda_variables.c
+13-42 files

OpenBSD/src Yy5wo4ausr.bin/tmux server-client.c tmux.h

   Add some new mouse ranges called "control0" to "control9", will be used
   for controls on floating panes, from Dane Jensen, with some bits from
   Michael Grant.
VersionDeltaFile
1.450+56-29usr.bin/tmux/server-client.c
1.1302+49-10usr.bin/tmux/tmux.h
1.312+45-5usr.bin/tmux/window.c
1.41+47-2usr.bin/tmux/style.c
1.259+6-23usr.bin/tmux/status.c
1.113+8-4usr.bin/tmux/screen-redraw.c
+211-732 files not shown
+220-758 files

OpenBSD/src GVHFlKSusr.sbin/relayd config.c

   remove dup block that tries to close tls client ca fd

   it's already closed and fd set to -1 a few lines above.
   diff from Marc Jorge (openbsd [at] cypher-fox com), thanks!
VersionDeltaFile
1.49+1-5usr.sbin/relayd/config.c
+1-51 files

OpenBSD/src dUg3vUIusr.bin/tmux screen.c

   Missed a line from previous.
VersionDeltaFile
1.96+2-1usr.bin/tmux/screen.c
+2-11 files

OpenBSD/src wSvYeXousr.bin/tmux input.c format.c

   Handle OSC 9;4 progress bar sequence and store in format variables, from
   Eric Dorland in GitHub issue 4954.
VersionDeltaFile
1.257+56-1usr.bin/tmux/input.c
1.353+39-1usr.bin/tmux/format.c
1.1301+17-1usr.bin/tmux/tmux.h
1.95+14-1usr.bin/tmux/screen.c
1.1044+3-1usr.bin/tmux/tmux.1
+129-55 files

OpenBSD/src rUyeNv5usr.bin/tmux input.c tty-keys.c

   Increase b64_pton buffer to allow for Base64 without padding, from
   Michal Majchrowicz.
VersionDeltaFile
1.256+2-2usr.bin/tmux/input.c
1.204+2-2usr.bin/tmux/tty-keys.c
+4-42 files

OpenBSD/src 38ScMztregress/lib/libssl/unit ssl_versions.c

   Fix min vs max in failure output.
VersionDeltaFile
1.21+3-3regress/lib/libssl/unit/ssl_versions.c
+3-31 files

OpenBSD/src mWkQmKUregress/lib/libssl/tlsext tlsexttest.c

   Use DTLS_client_method() instead of DTLSv1_client_method().
VersionDeltaFile
1.97+3-3regress/lib/libssl/tlsext/tlsexttest.c
+3-31 files

OpenBSD/src X98nI3flib/libssl ssl_pkt.c Makefile

   Remove ssl_server_legacy_first_packet()

   This has not been reachable since we made the TLSv1.3 stack the default
   entry point - tls13_record_layer_read_record() will send a protocol
   version alert and raise an error, which means we never transition into
   the legacy stack.

   ok kenjiro@
VersionDeltaFile
1.71+1-7lib/libssl/ssl_pkt.c
1.86+1-2lib/libssl/Makefile
1.17+1-1lib/libssl/ssl_packet.c
+3-103 files

OpenBSD/src fIO6rvAlib/libssl ssl_both.c ssl_local.h

   Mop up mac_packet.

   This is a left over from when we accepted SSLv2 ClientHello messages.

   ok kenjiro@
VersionDeltaFile
1.48+6-9lib/libssl/ssl_both.c
1.36+1-3lib/libssl/ssl_local.h
1.70+1-2lib/libssl/ssl_pkt.c
1.45+1-2lib/libssl/tls13_legacy.c
+9-164 files

OpenBSD/src ZehpXhFusr.sbin/rpki-client cert.c

   rpki-client: stop aligning variables in cert_parse_extensions()

   While it looks a bit tidier if the variables are aligned with a tab in
   the declarations, this is also a source of churn, so give up on this in
   this function.
VersionDeltaFile
1.231+3-4usr.sbin/rpki-client/cert.c
+3-41 files

OpenBSD/src JENufHqusr.sbin/rpki-client cert.c

   rpki-client: const for ext and OID in cert_parse_extensions()

   This is the last step of sprinkling const for OpenSSL 4. Move the extension
   retrieved via X509_get_ext() to a const. The extension is first passed to
   the simple X509_EXTENSION_get_object() getter and in the extension parsers
   to X509V3_EXT_d2i(). The OID is passed to the const correct OBJ_obj2nid()
   and OBJ_obj2text().

   discussed with claudio
VersionDeltaFile
1.230+2-2usr.sbin/rpki-client/cert.c
+2-21 files

OpenBSD/src skkn81Yusr.sbin/rpki-client cert.c

   rpki-client: cast extension passed to X509_EXTENSION_get_object()

   Again this is currently a noop which is needed since this simple getter
   isn't const correct in OpenSSL < 4 and LibreSSL and because OpenSSL 4
   fixed this.

   discussed with claudio
VersionDeltaFile
1.229+3-2usr.sbin/rpki-client/cert.c
+3-21 files

OpenBSD/src R9gtbJbusr.sbin/rpki-client cert.c

   rpki-client: const correct cert extension handlers

   The only reason the extension passed in wasn't const was X509V3_EXT_d2i(),
   for which we now cast away const.

   discussed with claudio
VersionDeltaFile
1.228+11-11usr.sbin/rpki-client/cert.c
+11-111 files

OpenBSD/src d9Hcppvusr.sbin/rpki-client cert.c

   rpki-client: cast extension passed to X509V3_EXT_d2i()

   This function has never modified the extensions. It only uses the extension's
   object (OID) to retrieve the X509_EXT_METHOD and then calls the appropriate
   d2i handler on the extension's value. OpenSSL 4 correctly added a const
   qualifier to this function.

   The cast is a noop right now, but once we switch the extension handlers'
   signatures to take a const, this will generate a warning due to passing a
   const pointer to a non-const function for OpensSL < 4 and LibreSSL.
   Annotate the cast for our future selves.

   discussed with claudio
VersionDeltaFile
1.227+19-10usr.sbin/rpki-client/cert.c
+19-101 files

OpenBSD/src OCsCQAfusr.sbin/rpki-client cert.c

   rpki-client: rename certificate_policies() into cert_policies()

   This is slightly more consistent with the remainder of the file.
   All other extension handlers except those for ipAddrBlocks and
   autonomousSysIds, which start with sbgp_ for historical reasons,
   have a cert_ prefix.

   discussed with claudio
VersionDeltaFile
1.226+3-3usr.sbin/rpki-client/cert.c
+3-31 files

OpenBSD/src fqj3JWIusr.sbin/rpki-client cert.c

   rpki-client: cast away const for X509_get_X509_PUBKEY()

   In cert_check_spki() the pubkey is a libcrypto-internal pointer hanging
   off cert->x509, which is then passed to the very const-incorrect getter
   X509_PUBKEY_get0_param(): that's a piece of art which hands back pointers
   to things deeper down in the x509 - some of them const, some non-const.
   OpenSSL 3 made its X509_PUBKEY argument const, but their X509_ALGOR **
   still isn't. I don't believe they thought about this in #11894 as they
   had a more important _cmp() vs _eq() bikeshed to sort out.

   discussed with claudio
VersionDeltaFile
1.225+7-3usr.sbin/rpki-client/cert.c
+7-31 files

OpenBSD/src w55PhNPusr.sbin/rpki-client print.c

   rpki-client: make the X509_NAME *xissuer const

   X509_get_issuer_name() isn't const correct in LibreSSL and OpenSSL < 4
   and it returns a modifiable X509_NAME *. The xissuer is only passed to
   X509_NAME_oneline() which takes a const X509_NAME, so it can be const.

   discussed with claudio
VersionDeltaFile
1.75+2-2usr.sbin/rpki-client/print.c
+2-21 files

OpenBSD/src 8BtvI1Rusr.sbin/npppd/npppd parse.y

   Fix a memory leak in handling radius configuration.  Diff from iij.
VersionDeltaFile
1.33+2-2usr.sbin/npppd/npppd/parse.y
+2-21 files

OpenBSD/src 7bqriJKusr.bin/newsyslog newsyslog.c

   Fix leap year detection.

   Found and initial diff from Alvar Penning, shorter diff from me (I
   guess it's a matter of taste).

   ok jca@, who would do it the same way.
VersionDeltaFile
1.120+3-3usr.bin/newsyslog/newsyslog.c
+3-31 files

OpenBSD/src G568vBQlibexec/spamd spamd.c

   If a fd satisfies both POLLIN and POLLOUT in the same cycle, but the
   POLLIN resulted in a file close, the POLLOUT runs incorrectly which
   matters in the TLS context which attempts to read after free.
   from James J. Lippard
   ok millert
VersionDeltaFile
1.164+4-2libexec/spamd/spamd.c
+4-21 files

OpenBSD/src Kbl4sKGusr.bin/awk b.c

   Prevent integer overflow in regex repetition count

   Limit the repetition count to 255 like POSIX does.  Also avoid a
   crash when the repetition is the first atom parsed.

   From Renaud Allard.
VersionDeltaFile
1.56+7-1usr.bin/awk/b.c
+7-11 files