OpenBSD/src mAH2NPrsys/dev/ic com.c

   Attempt to drain the transmit FIFO before resetting or disabling it such
   that output that is currently in the FIFO makes it out.  We already do
   this when attaching as a console by using a fixed delay, but not in
   compwroff() which runs when userland closes the associated tty.  Instead
   of using a fixed delay, look at the LSR_TSRE bit which should get set
   if the FIFO (or the itransmit shift register if the FIFO is disabled) is
   empty.  Use a fixed timeout such that on hardware with a non-functional
   LSR_TSRE bit the loops still terminate.

   This should fix issues where we lose serial output when userland closes
   a tty or when com(4) attaches to the port that is used as the console.

   ok deraadt@
VersionDeltaFile
1.183+21-2sys/dev/ic/com.c
+21-21 files

OpenBSD/src MMCyUYWlib/libcrypto/pkcs7 pk7_doit.c

   Fix PKCS7_set_{un,}signed_attributes()

   In both these functions, if the X509_ATTRIBUTE_dup() fails, the
   remainder of the sk stack is shared with p7si->{un,}auth_attr and
   the caller will likely end up freeing it twice.

   Fix this by writing another sk_deep_copy() patterned after the existing
   ones in x509_lu.c and x509_vpm.c. PKCS7_set_{un,}signed_attributes()
   become trivial wrappers of that.

   ok jsing kenjiro
VersionDeltaFile
1.68+35-28lib/libcrypto/pkcs7/pk7_doit.c
+35-281 files

OpenBSD/src PTjUaIDusr.bin/vi/vi v_paragraph.c v_sentence.c

   Allow '!}' and '!)' at EOF, even though there is no forward movement.

   The updated behavior differs from traditional vi but matches vim.
   It is already possible to run bang commands at EOF in conjunction
   with some other forward movement commands such as 'l' and 'w'.

   From Walter Alejandro Iglesias
VersionDeltaFile
1.11+3-2usr.bin/vi/vi/v_paragraph.c
1.11+3-2usr.bin/vi/vi/v_sentence.c
+6-42 files

OpenBSD/src T5WTyxFusr.bin/vi/vi v_sentence.c

   Fix special case of ')' when the cursor is on white-space.

   The forward sentence code has a special case to support moving to
   the start of the next sentence when it is in the middle of a empty
   line or whitespace between sentences.  However, the logic was
   incorrect and applied when the curson was on _any_ white-space.
   This change adds logic to look back and detect whether the cursor
   is actually in between two sentences.

   Based on a diff from Walter Alejandro.
VersionDeltaFile
1.10+19-10usr.bin/vi/vi/v_sentence.c
+19-101 files

OpenBSD/src vXGIzf3usr.bin/vi/vi v_sentence.c

   Prevent '(' from moving the cursor forward.

   Fixes an issue where '(' moved forward the start of the next (not
   previous) sentence when used within whitespace at the start if a line.

   From Debian bug 193498 (Tommy Pettersson) via nvi2.
VersionDeltaFile
1.9+2-2usr.bin/vi/vi/v_sentence.c
+2-21 files

OpenBSD/src UN99yqhusr.bin/vi/common delete.c

   Fix a misapplied patch in rev 1.12, the goto belongs outside the len check.
VersionDeltaFile
1.14+2-2usr.bin/vi/common/delete.c
+2-21 files

OpenBSD/src rV5FFRRregress/lib/libssl/dtls dtls_wire_test.c Makefile

   Add DTLS wire tests.

   Add tests that ensure the wire bytes for DTLS are what we expect for both
   CCS and fragmented handshake messages.
VersionDeltaFile
1.1+376-0regress/lib/libssl/dtls/dtls_wire_test.c
1.5+10-4regress/lib/libssl/dtls/Makefile
+386-42 files

OpenBSD/src JiEhcIysys/arch/sparc64/sparc64 trap.c

   Do not clear the dirty upper and lower bits when enabling the FPU in fprs

   When handling a FPU disabled trap and the FPU context is still pointing to
   curproc then all that needs to be done is enable the FPU but on sparc64 this
   needs to be done in two places. In pstate and %fprs.
   Writing FPRS_FEF into %fprs clears the DU and DL bits which marks the FPU
   state as clean (but it may not be). If the proc only reads the FPU state
   and later a lazy FPU switch is forced the FPU context is not correctly saved.
   Instead read %fprs and or FPRS_FEF into it, keeping the DU and DL bits intact.
   See also rev 1.68 for why %fprs needs to be fumbled with.

   This fixes various issues seen during ports bulk builds. Like perl tripping
   over "use 5.12.0;" with a -NaN is not a version error, various awk issues
   and even cmake failures via 'std::bad_array_new_length'.

   OK kettenis@
VersionDeltaFile
1.131+2-2sys/arch/sparc64/sparc64/trap.c
+2-21 files

OpenBSD/src iZJ4aRksys/dev/fdt dwpcie.c

   If the PCIe link is down, provide access to config space for bus 0, but
   return 0xffffffff (and ignore writes) for other busses.  This gets rid of
   the "can't initialize hardware" messages that confuse some users and
   better matches what happens on other platforms with PCIe when a slot is
   empty.

   ok jca@
VersionDeltaFile
1.61+26-14sys/dev/fdt/dwpcie.c
+26-141 files

OpenBSD/src ybMDMkylib/libcrypto/pkcs7 pk7_doit.c

   pkcs7: drop silly use of i in PKCS7_dataVerify()

   ok jsing kenjiro
VersionDeltaFile
1.67+3-4lib/libcrypto/pkcs7/pk7_doit.c
+3-41 files

OpenBSD/src GJIsxtrlib/libcrypto/pkcs7 pk7_doit.c

   pkcs7: don't use i, j for NIDs in PKCS7_dataFinal()

   Use nid for NIDs and use i only for for loops.

   ok jsing kenjiro
VersionDeltaFile
1.66+7-9lib/libcrypto/pkcs7/pk7_doit.c
+7-91 files

OpenBSD/src Yg50sfElib/libcrypto/pkcs7 pk7_doit.c

   pkcs7: don't use i and j for NIDs in PKCS7_dataDecode()

   There's no need to assign to i before the switch and j is a terrible
   name for a NID. Inline the latter and switch directly over the return
   value of OBJ_obj2nid().

   ok jsing kenjiro
VersionDeltaFile
1.65+4-6lib/libcrypto/pkcs7/pk7_doit.c
+4-61 files

OpenBSD/src 8SyNHPalib/libcrypto/pkcs7 pk7_doit.c

   pkcs7: avoid assignment to i in PKCS7_dataInit()

   We can switch over the return value of OBJ_obj2nid() rather than using i
   for an indirection.

   ok jsing kenjiro
VersionDeltaFile
1.64+2-3lib/libcrypto/pkcs7/pk7_doit.c
+2-31 files

OpenBSD/src aAryKO9lib/libcrypto/pkcs7 pk7_doit.c

   pkcs7: Simplify PKCS7_type_is_other()

   Remove unnecessary isOther and nid variables and use direct returns.
   The function should probably be removed...

   ok jsing kenjiro
VersionDeltaFile
1.63+4-12lib/libcrypto/pkcs7/pk7_doit.c
+4-121 files

OpenBSD/src 5iU89Kelib/libcrypto/sha sha256.c

   Add FIPS 180-4 references for SHA-256 constants.
VersionDeltaFile
1.34+6-1lib/libcrypto/sha/sha256.c
+6-11 files

OpenBSD/src 3rwKWY3lib/libcrypto/pkcs7 pk7_doit.c

   Simplify PKCS7_get_issuer_and_serial()

   The i variable is unused. Likewise for the first assignment to ri.
   Instead of an incomplete check that idx is in range, which still
   results in a NULL deref if idx < 0, check if ri is not NULL before
   accessing, as sk_value() checks the index correctly.

   ok jsing kenjiro
VersionDeltaFile
1.62+6-9lib/libcrypto/pkcs7/pk7_doit.c
+6-91 files

OpenBSD/src dsonjGMsys/net pipex_local.h trunklacp.c

   use __kprintf__ not __printf__ for format attributes
   avoids format warnings with clang 21 and later
   ok robert@
VersionDeltaFile
1.55+2-2sys/net/pipex_local.h
1.34+2-2sys/net/trunklacp.c
+4-42 files

OpenBSD/src IGwy4yAusr.bin/tmux window.c

   No need to stravis the window name twice.
VersionDeltaFile
1.315+2-2usr.bin/tmux/window.c
+2-21 files

OpenBSD/src iLue6llsys/arch/riscv64/dev simplebus.c, sys/arch/riscv64/include bus.h

   Implement bounce buffers for riscv64.

   ok jca@
VersionDeltaFile
1.9+256-20sys/arch/riscv64/riscv64/bus_dma.c
1.9+13-3sys/arch/riscv64/include/bus.h
1.9+4-4sys/arch/riscv64/dev/simplebus.c
1.9+5-1sys/arch/riscv64/riscv64/autoconf.c
+278-284 files

OpenBSD/src S92BCFVusr.sbin/rpki-client parser.c

   Move repo_tree_free() up to where the other repo functions live.
   OK tb@
VersionDeltaFile
1.179+21-21usr.sbin/rpki-client/parser.c
+21-211 files

OpenBSD/src tqN17waregress/usr.bin/ssh/unittests Makefile.inc

   Drop -Winline from CDIAGFLAGS it breaks on sparc64

   On sparc64 ssh/unittests/kex fails to build with:
     usr.bin/ssh/libcrux_mlkem768_sha3.h:8196: warning: inlining failed
     in call to 'libcrux_ml_kem_polynomial_ZERO_89_ea':
     --param max-inline-insns-single limit reached

   OK djm@ (long time ago) reminded by tb@
VersionDeltaFile
1.20+1-2regress/usr.bin/ssh/unittests/Makefile.inc
+1-21 files

OpenBSD/src tmpLQISusr.bin/tmux file.c server-client.c

   Kill client rather than fatalx on bad file handling messages, reported
   by Tim Zheng.
VersionDeltaFile
1.19+13-10usr.bin/tmux/file.c
1.454+7-4usr.bin/tmux/server-client.c
1.1309+4-4usr.bin/tmux/tmux.h
+24-183 files

OpenBSD/src LE1dhNousr.bin/tmux screen-redraw.c

   Redraw correctly when a popup is present above pane borders, GitHub
   issue 4997 from Manuel Einfalt.
VersionDeltaFile
1.114+13-8usr.bin/tmux/screen-redraw.c
+13-81 files

OpenBSD/src gN7NvjZsys/net pf_ioctl.c

   remove unused pf_statelim_clr()
   ok dlg@
VersionDeltaFile
1.431+1-30sys/net/pf_ioctl.c
+1-301 files

OpenBSD/src NF8D01Qsys/net art.c art.h

   remove unused art_walk()
   ok dlg@
VersionDeltaFile
1.36+1-19sys/net/art.c
1.29+1-4sys/net/art.h
+2-232 files

OpenBSD/src z79OVe6sys/dev/pci/drm/include/linux uaccess.h

   rename __copy_from_user_inatomic_nocache() to
   copy_from_user_inatomic_nontemporal() to follow changes in linux 6.18.24
VersionDeltaFile
1.8+3-2sys/dev/pci/drm/include/linux/uaccess.h
+3-21 files

OpenBSD/src klwznkssys/dev/pci/drm/i915 i915_gem.c

   x86: rename and clean up __copy_from_user_inatomic_nocache()

   From Linus Torvalds
   03fd014cd9f3a3d173740ab9c5cbede82fd6322c in linux-6.18.y/6.18.24
   5de7bcaadf160c1716b20a263cf8f5b06f658959 in mainline linux
VersionDeltaFile
1.138+1-1sys/dev/pci/drm/i915/i915_gem.c
+1-11 files

OpenBSD/src BWU6b4xsys/ddb db_input.c

   make ctrl-w remove trailing space from words too

   this makes it more consistent with what i experience with ctrl-w
   in the shell.

   ok deraadt@ claudio@
VersionDeltaFile
1.20+4-1sys/ddb/db_input.c
+4-11 files

OpenBSD/src 2V62Dzqsys/dev/pci/drm/amd/amdkfd kfd_queue.c

   drm/amdkfd: Fix queue preemption/eviction failures by aligning control stack size to GPU page size

   From Donet Tom
   647fb0dc3818733024fc96c1df1ec3af806b0256 in linux-6.18.y/6.18.24
   78746a474e92fc7aaed12219bec7c78ae1bd6156 in mainline linux
VersionDeltaFile
1.9+4-3sys/dev/pci/drm/amd/amdkfd/kfd_queue.c
+4-31 files

OpenBSD/src RkS7KTKlib/libc/time difftime.c

   Fix difftime() result when it is passed a negative value

   We need to cast the result of bitwise AND to time_t before the cast
   to double in the HI and LO macros.  Otherwise, we get a very large
   positive floating point value instead of a negative value.

   Reported by Xuntao Chi
VersionDeltaFile
1.14+3-3lib/libc/time/difftime.c
+3-31 files