OpenBSD/src LzBdRxilib/libc/sys open.2

   For clarity, improve the __pledge_open documentation
VersionDeltaFile
1.59+7-6lib/libc/sys/open.2
+7-61 files

OpenBSD/src EKfU4a2sys/dev/pci/drm/include/linux llist.h

   switch loop condition from pointer to integer arithmetic

   Otherwise LLVM 22 creates an infinite loop.
   ok jsg@
VersionDeltaFile
1.4+2-2sys/dev/pci/drm/include/linux/llist.h
+2-21 files

OpenBSD/src FFxjpcnusr.sbin/bgpd bitmap.c

   Track the number of elements in the array instead of the highest possible bit.

   The bitmap code tracked the maximum number of bits allowed but that could
   trigger an overflow in BITMAP_ROUNDUP() for very big bitmaps.
   Move the max from tracking bits to tracking the number of elements in the
   array covering the bitmap.

   Add extra casts in BITMAP_SETPTR() and BITMAP_GETPTR() to stop 32bit archs
   warning about a pointer to int case of different size.

   OK tb@
VersionDeltaFile
1.4+31-34usr.sbin/bgpd/bitmap.c
+31-341 files

OpenBSD/src jb0jMrHsys/arch/riscv64/dev if_smte.c

   Improve error checking of received packets.

   ok jca@
VersionDeltaFile
1.2+21-7sys/arch/riscv64/dev/if_smte.c
+21-71 files

OpenBSD/src Zgj4z8Csys/net if_wg.c

   move bpf for outgoing packets later in the transmit path.

   the convention in openbsd is to have the bpf handling as close to
   the "wire" as possible so you can see what ends up being send to
   the network. wg was showing outgoing packets to bpf really early,
   before the wgaip peer selection was checked and before the packet
   was queued for transmission, so it gave a false impression about
   what it was doing.

   this moves the outgoing bpf stuff after the ifq dequeue. it could
   be moved a bit later still (after encryption), but this is an easy
   win for now.

   based on a discussion with sashan@ and mvs@
   ok mvs@ sashan@ sthen@ deraadt@
VersionDeltaFile
1.49+8-7sys/net/if_wg.c
+8-71 files

OpenBSD/src 6Gl7g86sys/arch/arm/arm pmap7.c, sys/arch/arm64/arm64 machdep.c

   sys/param.h includes machine/param.h, no need to include both
VersionDeltaFile
1.69+1-2sys/arch/arm/arm/pmap7.c
1.99+1-2sys/arch/arm64/arm64/machdep.c
1.44+1-2sys/arch/riscv64/riscv64/machdep.c
+3-63 files

OpenBSD/src qrdIoAksys/arch/hppa/hppa ipi.c

   sys/mutex.h includes machine/mutex.h, no need to include both
VersionDeltaFile
1.6+1-2sys/arch/hppa/hppa/ipi.c
+1-21 files

OpenBSD/src OHUFxIDsys/kern exec_elf.c

   sys/exec.h includes machine/exec.h, no need to include both
VersionDeltaFile
1.197+1-2sys/kern/exec_elf.c
+1-21 files

OpenBSD/src Fy4FtgNsys/dev/ic stireg.h, sys/dev/pci sti_pci.c

   Almost 26 years ago, when sti(4) was rewritten as an MI driver, some of
   the pci-related defines for the "bus support" field in the rom information
   were incorrectly defined. This was not noticed as there was no pci attachment
   for sti devices yet.

   Replace these with the correct values, as documented in the sti spec and also
   in stirom.h found in HP-UX 11i.

   While there, rework and simplify the logic deciding whether we need to make
   a ram copy of the rom on pci devices.

   No functional change, FireGL-UX still won't work.
VersionDeltaFile
1.16+23-25sys/dev/pci/sti_pci.c
1.17+4-4sys/dev/ic/stireg.h
+27-292 files

OpenBSD/src VPGD8s0regress/lib/libcrypto/rsa rsa_padding_test.c

   rsa_padding_test: %i -> %d
VersionDeltaFile
1.3+3-3regress/lib/libcrypto/rsa/rsa_padding_test.c
+3-31 files

OpenBSD/src TlrLeqAlib/libcrypto/man X509v3_addr_add_inherit.3

   Slightly adjust BUGS section for X509_addr_add_range()

   Since x509_addr.c r1.95 X509_addr_add_range() clears the unused bits in
   the maximum, so this is is only true in some implementations.
VersionDeltaFile
1.13+3-2lib/libcrypto/man/X509v3_addr_add_inherit.3
+3-21 files

OpenBSD/src 39zJlOIusr.sbin/httpd httpd.h config.c

   usr.sbin/httpd: inherit gzip-static in locations

   Location configuration inherited most server level options but dropped
   gzip-static, so requests matching a location skipped static gzip lookup
   even when the parent server enabled it.

   Add an explicit no gzip-static state and inherit the gzip flag pair only
   when the location has not set either form, preserving location specific
   overrides.

   Reported by and OK: job@
VersionDeltaFile
1.170+4-3usr.sbin/httpd/httpd.h
1.70+5-1usr.sbin/httpd/config.c
1.132+3-1usr.sbin/httpd/parse.y
+12-53 files

OpenBSD/src ZxBqRQPlibexec/ld.so library.c library_mquery.c

   While technically allowed, shared libraries without PT_LOAD segments
   don't really make any sense.  Bail out early to avoid the bits of code
   that assume that we have a PT_LOAD sagment.  This avoids a NULL pointer
   dereference on i386 (which uses library_mquery.c) or bogus mmap calls
   on other architectures (which use library.c).

   The potential NULL pointer dereference in library_mquery.c was found by
   Frank Denis.

   ok guenther@
VersionDeltaFile
1.99+15-1libexec/ld.so/library.c
1.78+14-1libexec/ld.so/library_mquery.c
+29-22 files

OpenBSD/src Ug4NGZxsys/arch/riscv64/dev pci_machdep.c

   Initialize ih_intrpin for regular (non-vector) MSI interrupts as well.
   Fixes regular MSIs on the SpacemiT K1 SoC.

   ok jsg@
VersionDeltaFile
1.3+2-1sys/arch/riscv64/dev/pci_machdep.c
+2-11 files

OpenBSD/src cIKCHamusr.bin/openssl s_socket.c

   openssl s_socket: do not fail accept on reverse DNS lookup failure

   Found by Frank Denis
VersionDeltaFile
1.15+2-9usr.bin/openssl/s_socket.c
+2-91 files

OpenBSD/src bQgYvLmlib/libc/dlfcn init.c, lib/libc/gen elf_aux_info.c

   libc: declare _hwcap and related variables as hidden

   ok tb@ deraadt@
VersionDeltaFile
1.2+2-5lib/libc/gen/elf_aux_info.c
1.2+6-1lib/libc/hidden/sys/auxv.h
1.25+2-1lib/libc/dlfcn/init.c
+10-73 files

OpenBSD/src bAO6SNYusr.bin/mandoc main.c

   The regression fix in rev. 1.271 was still incomplete.

   While the fchdir(2) in main() is indeed needed such that the mparse_open()
   in process_onefile() finds local files, there is a second, smaller
   issue purely inside check_xr(): As the ultimate fallback, fs_search()
   looks for cross-referenced manual pages in the current directory,
   which is typically used for working on software under development
   that is not yet installed.  Consequently, a second fchdir(2) is needed
   inside check_xr() between mansearch(), which typically changes directory,
   and the subsequent fs_search().

   This makes sure that "mandoc -T lint" on a manual page that contains
   an .Xr link to another manual page that is not installed but present
   in the current directory does not complain about that link.
   Again reported by anton@.

   The fix is slightly awkward because the directory file descriptor
   needs to be passed down through multiple layer of subroutines, but i
   fear that cannot be helped because it is needed both in the main program
   and in the low-level function check_xr().
VersionDeltaFile
1.272+13-11usr.bin/mandoc/main.c
+13-111 files

OpenBSD/src k0zUXRPsys/arch/riscv64/include riscvreg.h, sys/arch/riscv64/riscv64 vector.c cpu.c

   Add kernel support for the vector extension on riscv64.

   The V extension (where supported) adds an additional 32 vector registers
   that are variable length (up to 65,536 bits, but more commonly 2048 bits).
   In order to support the use of the V extension (and additional vector
   extensions) we need to enable the vector extension and save/restore the
   vector registers.

   ok kettenis@
VersionDeltaFile
1.1+168-0sys/arch/riscv64/riscv64/vector.c
1.28+22-9sys/arch/riscv64/riscv64/cpu.c
1.13+22-4sys/arch/riscv64/riscv64/vm_machdep.c
1.43+15-8sys/arch/riscv64/riscv64/machdep.c
1.6+17-1sys/arch/riscv64/include/riscvreg.h
1.23+9-2sys/arch/riscv64/riscv64/trap.c
+253-246 files not shown
+284-3512 files

OpenBSD/src X8ai9I1usr.bin/openssl crl.c

   openssl crl: make verify failure result in "app" failure

   Found by Frank Denis
VersionDeltaFile
1.18+5-4usr.bin/openssl/crl.c
+5-41 files

OpenBSD/src t0p5oYKusr.bin/openssl ecparam.c

   openssl ecparam: make EC_GROUP_check() failure result in "app" failure

   Found by Frank Denis
VersionDeltaFile
1.26+4-3usr.bin/openssl/ecparam.c
+4-31 files

OpenBSD/src 0pZhiLGusr.bin/openssl s_client.c

   openssl s_client: avoid two out of bounds writes

   A NUL termination after an unchecked BIO_read() call in XMSS mode could
   lead to a write one byte before the start of sbuf or one past its end.
   Add an error check to avoid the former and read one byte less to avoid the
   latter.

   Found by Frank Denis
VersionDeltaFile
1.69+4-2usr.bin/openssl/s_client.c
+4-21 files

OpenBSD/src FcPkcGesys/dev/pci if_mwx.c if_mwxreg.h

   Simplify previous by shifting the rcpi value first then use a common mask.
   Also set ic_max_rssi = 0 since this driver will uses DBm reporting.
VersionDeltaFile
1.9+6-6sys/dev/pci/if_mwx.c
1.6+3-6sys/dev/pci/if_mwxreg.h
+9-122 files

OpenBSD/src Ze9aPy3sys/dev/pci if_mwx.c if_mwxreg.h

   Implement RSSI reporting for mwx(4).

   Diff provided by Benjamin Lee McQueen (mcq at disroot.org)
VersionDeltaFile
1.8+48-10sys/dev/pci/if_mwx.c
1.5+12-1sys/dev/pci/if_mwxreg.h
+60-112 files

OpenBSD/src bEdSI2Xlib/libssl ssl_tlsext.c

   libssl: record extension lengths in ClientHello hashing

   The ClientHello hash is intended to ensure that the second CH after an HRR
   only makes the allowed changes to the TLS extensiosn by recording message
   type followed by the raw extension data if it must remain unchanged.
   This makes it possible (in principle) that part of free form extension
   data is confused with type (and length) information of a subsequent
   extension.

   Recording the length after the type prevents such a confusion and fixes
   the framing of the extensions.

   Found by Frank Denis

   ok jsing
VersionDeltaFile
1.160+4-1lib/libssl/ssl_tlsext.c
+4-11 files

OpenBSD/src ik8dUKalib/libssl ssl_lib.c

   ssl_lib: trade two extra empty lines for a missing one
VersionDeltaFile
1.334+2-4lib/libssl/ssl_lib.c
+2-41 files

OpenBSD/src aOOketJsys/dev/sun sunkbd.c

   unifdef call into removed sparc-only tctrl(4)
VersionDeltaFile
1.29+1-16sys/dev/sun/sunkbd.c
+1-161 files

OpenBSD/src vf2g3TJlib/libcrypto/pkcs12 p12_npas.c

   PKCS#12: fix erroneous error check in PKCS12_newpass()

   This is an error I introduced in a refactoring two years ago in r1.20.
   This means that nothing uses this...

   From Frank Denis via logan
VersionDeltaFile
1.29+3-3lib/libcrypto/pkcs12/p12_npas.c
+3-31 files

OpenBSD/src 5uFYuYzsys/scsi cd.c sd.c

   remove unneeded ufs/ffs/fs.h includes

   added for BBSIZE and SBSIZE which are no longer used
VersionDeltaFile
1.268+1-4sys/scsi/cd.c
1.342+1-3sys/scsi/sd.c
+2-72 files

OpenBSD/src 151piwYlib/libcrypto/sha sha256.c

   Use uint32_t instead of SHA_LONG in the SHA-256 code.

   This is more readable and we already have a compile time assert that they
   are the same size.

   ok tb@
VersionDeltaFile
1.38+22-22lib/libcrypto/sha/sha256.c
+22-221 files

OpenBSD/src jWrNEQwlib/libcrypto/sha sha256.c

   Use W rather than X for the SHA-256 message schedule.

   This more closely matches the SHA-256 specification in FIPS 180-4.

   ok tb@
VersionDeltaFile
1.37+83-83lib/libcrypto/sha/sha256.c
+83-831 files