OpenBSD/src lcnEFwTsys/kern kern_time.c

   Use the correct struct itemerval when recording the old value for ktrace.
   This fixes a potential information leak from an uninitializes stack
   variable.
   Found by Frank Denis using the Swival Security Scanner.

   ok deraadt@
VersionDeltaFile
1.171+2-2sys/kern/kern_time.c
+2-21 files

OpenBSD/src jUvmONHusr.bin/tmux screen.c

   Add missing flags to screen_mode_to_string and do not write before
   before if any are missed, second bit from qingliu at alauda dot io.
VersionDeltaFile
1.100+7-2usr.bin/tmux/screen.c
+7-21 files

OpenBSD/src 3feVztmusr.bin/tmux control.c

   Discard queued data and clear offsets when turning pane off to prevent
   later read of data that has been removed. From Aaron Campbell in GitHub
   issue 5054.
VersionDeltaFile
1.56+4-1usr.bin/tmux/control.c
+4-11 files

OpenBSD/src LSNbksxusr.sbin/eigrpd packet.c

   In eigrp the TLV encoding includes the header length in the length encoding.

   So check that the minimal length is at least that of the TLV header.
   OK renato@
VersionDeltaFile
1.24+3-2usr.sbin/eigrpd/packet.c
+3-21 files

OpenBSD/src ZwBiQ7Nusr.sbin/ldpd notification.c

   Fix minimal length check for notification status messages.

   Found while reviewing all the length checks in ldpd.
   OK renato@
VersionDeltaFile
1.47+2-2usr.sbin/ldpd/notification.c
+2-21 files

OpenBSD/src kMqu512usr.sbin/ldpd labelmapping.c

   Unlike all other TLV encodings in ldp the sub-tlv includes the header size
   in its length. Therefore check that the size is at least that of the header.

   OK renato@
VersionDeltaFile
1.70+3-2usr.sbin/ldpd/labelmapping.c
+3-21 files

OpenBSD/src uG3wpFTusr.sbin/ldpd address.c

   Ensure that alt_len includes at least the size of alt.family member
   to ensure that the parser is not going off the rails.

   OK renato@
VersionDeltaFile
1.36+2-2usr.sbin/ldpd/address.c
+2-21 files

OpenBSD/src FVh1eoQsys/dev/fdt rkrng.c rkclock.c

   Add RK3576 support.

   ok dlg@
VersionDeltaFile
1.9+51-3sys/dev/fdt/rkrng.c
1.99+5-1sys/dev/fdt/rkclock.c
1.71+1-0sys/dev/fdt/rkclock_clocks.h
+57-43 files

OpenBSD/src t3Uyo1dsys/dev/pci/drm/include/linux xarray.h

   add parentheses around use of a macro argument
VersionDeltaFile
1.11+1-1sys/dev/pci/drm/include/linux/xarray.h
+1-11 files

OpenBSD/src 3AtEbwIusr.sbin/rpki-client mft.c ip.c

   rpki-client: convert ip.c and mft.c to ASN1_BIT_STRING_get_length()

   This isn't the greatest of APIs, but we're going to be stuck with it
   since better APIs depend on libcrypto not doing the implicit truncation
   nonsense, which only OpenSSL 4 and BoringSSL dropped by now.

   Some of the error checks become now unreachable. This will be cleaned
   up another time.

   ok claudio job
VersionDeltaFile
1.137+11-6usr.sbin/rpki-client/mft.c
1.39+7-7usr.sbin/rpki-client/ip.c
+18-132 files

OpenBSD/src KXcbsSxusr.sbin/rpki-client ccr.c

   rpki-client: convert ccr.c to ASN1_BIT_STRING_set1()

   This becomes slightly simpler and more correct with this change.
   In particular, this now makes sure that the unused bits are set
   to 0 as required by the DER.

   ok claudio job
VersionDeltaFile
1.37+4-8usr.sbin/rpki-client/ccr.c
+4-81 files

OpenBSD/src eap5xTFsbin/iked ikev2.c

   check address size; from markus via millert
VersionDeltaFile
1.398+7-3sbin/iked/ikev2.c
+7-31 files

OpenBSD/src pjtVplrusr.sbin/bgpd version.h

   Bump version to 9.2
VersionDeltaFile
1.23+2-2usr.sbin/bgpd/version.h
+2-21 files

OpenBSD/src ljktycQusr.sbin/bgpd util.c bgpd.h

   Limit all from of ASPATH attributes to 750 elements

   Having super long ASPATH attributes can lead to various issues including
   attribute length overflows. Especially the transformation of 2-byte ASPATH
   attributes to 4-byte ones can trigger overflows. Because of this limit the
   number and therefor the maximum size of an ASPATH.

   Our default config has a limit of 100 elements on paths. That limit is
   already much larger then what is seen in the DFZ (max ~20). The limit of
   750 is again much larger and is really just a safeguard.

   OK tb@
VersionDeltaFile
1.100+9-1usr.sbin/bgpd/util.c
1.540+3-1usr.sbin/bgpd/bgpd.h
+12-22 files

OpenBSD/src A0vVazbusr.sbin/bgpd rde_attr.c

   Prevent overflow of the uint8_t length value in attr_optadd.

   bin_of_attrs() jumps from 240 to 256 elements but the length of the
   others attributes array is limited to a uint8_t type and overflows.
   Switch type of the local length value to int and make sure that the
   maximum length of UCHAR_MAX is not exceeded.

   OK tb@
VersionDeltaFile
1.143+4-2usr.sbin/bgpd/rde_attr.c
+4-21 files

OpenBSD/src NtcYbpKusr.sbin/bgpd rde_rib.c

   Re-evaluate prefixes if just PREFIX_FLAG_FILTERED changed

   With the introduction of 'rde rib Loc-RIB include filtered' it is possible
   that prefixes change from filtered to unfiltered state during a filter
   reload. In that case prefix_update() takes a shortcut path since no other
   attributes change and that path is missing a call to prefix_evaluate().

   Add the missing prefix_evaluate() call in this codepath so that prefixes
   are correctly redistributed in that case.

   OK tb@
VersionDeltaFile
1.291+16-5usr.sbin/bgpd/rde_rib.c
+16-51 files

OpenBSD/src cmEHmAZusr.bin/ssh channels.h

   unbreak; spotted by Darren's test army
VersionDeltaFile
1.166+2-2usr.bin/ssh/channels.h
+2-21 files

OpenBSD/src 7tci0ssusr.bin/ssh channels.h

   classify dynamic-tcpip channels as bulk, not interactive;
   bz3958, ok markus@
VersionDeltaFile
1.165+3-2usr.bin/ssh/channels.h
+3-21 files

OpenBSD/src nGuTtSmusr.bin/openssl speed.c

   openssl: centralize speed benchmark timer handling

   The speed benchmark currently arms alarm() from print_message() and
   pkey_print_message(), making the output helpers also control benchmark
   lifetime. This hidden coupling makes the code harder to maintain and led to
   missing alarm cleanup on Windows, as reported in #1245.

   Move alarm setup and run-state initialization into speed-specific timer
   helpers so benchmark timing is controlled explicitly at the start and stop
   points.

   ok tb joshua
VersionDeltaFile
1.53+135-124usr.bin/openssl/speed.c
+135-1241 files

OpenBSD/src 5NAaEDYlib/libcrypto/mlkem mlkem_internal.c

   mlkem: also zero the failure_key

   from logan
   https://github.com/libressl/openbsd/pull/154
VersionDeltaFile
1.9+2-1lib/libcrypto/mlkem/mlkem_internal.c
+2-11 files

OpenBSD/src pCu6f5Wsys/arch/arm64/dev agtimer.c, sys/arch/arm64/include armreg.h

   Pick the correct interrupt for the virtual timer if we're running in EL2.
   Based on a diff from Marc Zyngier.

   ok jsg@
VersionDeltaFile
1.30+17-3sys/arch/arm64/dev/agtimer.c
1.45+9-1sys/arch/arm64/include/armreg.h
+26-42 files

OpenBSD/src AzMCzSisys/arch/arm64/arm64 locore.S

   Handle HCR_EL2.E2H RES1 behaviour

   An implementation is allowed to make HCR_EL2.E2H RES1, which means
   that the CPU behaves as if this bit was 1, even if it reads as 0
   or can be written with 0.

   While the architecture advertises this via ID_AA64MMFR4_EL1.E2H0,
   hypervisors cannot always expose this to a guest if the hardware
   doesn't implemtn FEAT_FGT.

   Instead, detect the effects of HCR_EL2.E2H being RES1 by checking
   for the aliasing property between accessors targetting the same
   register (FAR_ELx in this case). This gives a reliable litmus test
   for CPUs that are stuck in VHE mode.

   From Marc Zyngier <maz at kernel.org>
VersionDeltaFile
1.50+17-4sys/arch/arm64/arm64/locore.S
+17-41 files

OpenBSD/src HhuCtDUsys/arch/arm64/arm64 locore.S

   When running in VHE host mode, HCR_EL2.TGE must be set, as otherwise
   a bunch of problems occur:

   - EL0 is guest EL0, not host, and the kernel will catch fire on the
     first ERET to EL0

   - EL1 TLB invalidations target the guest, and not the host

   Make sure that HCR_EL2.TGE is set, instead of relying on firmware
   to have set it (when booting with UEFI, only the first CPU is
   correctly configured).

   From Marc Zyngier <maz at kernel.org>
VersionDeltaFile
1.49+9-4sys/arch/arm64/arm64/locore.S
+9-41 files

OpenBSD/src cYb2quNshare/man/man4 rkotp.4 Makefile

   rkotp(4)
VersionDeltaFile
1.1+42-0share/man/man4/rkotp.4
1.877+2-2share/man/man4/Makefile
+44-22 files

OpenBSD/src jV5Rdg2regress/lib/libcrypto/wycheproof wycheproof.go

   wycheproof.go: simplfiy for loop
VersionDeltaFile
1.204+2-2regress/lib/libcrypto/wycheproof/wycheproof.go
+2-21 files

OpenBSD/src CElKduzregress/lib/libcrypto/wycheproof wycheproof.go

   wycheproof: go fmt
VersionDeltaFile
1.203+5-5regress/lib/libcrypto/wycheproof/wycheproof.go
+5-51 files

OpenBSD/src JVkzHSXusr.sbin/rpki-client ccr.c

   Explicitly check mostRecentUpdate on otherwise empty ManifestState

   OK tb@
VersionDeltaFile
1.36+7-1usr.sbin/rpki-client/ccr.c
+7-11 files

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

   When printing a CCR's ManifestState, sort the entries by AKI

   Sorting this particular listing by AKI (instead of by hash of the
   Manifest object) makes diffs between CCRs much more readable.

   With & OK tb@
VersionDeltaFile
1.77+33-3usr.sbin/rpki-client/print.c
+33-31 files

OpenBSD/src cpeFK7Xsys/nfs nfs_serv.c

   Add checks for invalid dir count and max size for readdir/readdirplus.

   A zero count or max size value is now rejected early instead of
   relying on VOP_GETATTR to return an error.  Also verify that the
   max size after rounding up to a multiple of DIRBLKSIZ is positive.
   A negative value would turn into a large allocation, causing the
   malloc() to fail.

   From an LLM bug report.  With help from miod@ and kirill@.
VersionDeltaFile
1.133+34-23sys/nfs/nfs_serv.c
+34-231 files

OpenBSD/src FtgG4YXsys/dev/pci/drm drm_bridge.c, sys/dev/pci/drm/include/drm drm_bridge.h

   Unstub select_bus_fmt_recursive().  This fixes output on the HDMI port
   on my firefly-rk3399.

   ok jsg@
VersionDeltaFile
1.17+0-4sys/dev/pci/drm/drm_bridge.c
1.15+0-2sys/dev/pci/drm/include/drm/drm_bridge.h
+0-62 files