OpenBSD/src DMuKikPsys/kern subr_xxx.c, sys/sys systm.h

   remove unused enoioctl()
   ok claudio@
VersionDeltaFile
1.20+1-11sys/kern/subr_xxx.c
1.179+1-2sys/sys/systm.h
+2-132 files

OpenBSD/src n33vN1ssys/nfs nfs_vnops.c nfs_var.h

   change nfs_ioctl() from a macro with enoioctl() to a proper function
   this was the only use of enoioctl()
   ok claudio@
VersionDeltaFile
1.210+8-1sys/nfs/nfs_vnops.c
1.67+1-3sys/nfs/nfs_var.h
+9-42 files

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

   wycheproof: skip BLS test vectors to prepare for update
VersionDeltaFile
1.202+3-1regress/lib/libcrypto/wycheproof/wycheproof.go
+3-11 files

OpenBSD/src RzBXIQtsys/arch/octeon/dev if_cnmac.c

   sys/cnmac: support SoftLRO

   This work based on previous work of Janne Johansson

   OK: visa@
VersionDeltaFile
1.87+27-2sys/arch/octeon/dev/if_cnmac.c
+27-21 files

OpenBSD/src UigZNv0share/man/man4 openprom.4

   Mention powerpc64 and riscv64 support
VersionDeltaFile
1.3+8-4share/man/man4/openprom.4
+8-41 files

OpenBSD/src NC7HMFkshare/man/man4 iic.4

   Mention smtiic(4)
VersionDeltaFile
1.136+5-2share/man/man4/iic.4
+5-21 files

OpenBSD/src DbOsQ6Gshare/man/man4 gpio.4

   Mention sfgpio(4) and smtgpio(4)
VersionDeltaFile
1.30+4-2share/man/man4/gpio.4
+4-21 files

OpenBSD/src 4GOlCRDsys/arch/octeon/dev octpcie.c

   sys/octeon: fix PCIe config tag layout

   Octeon PCIe config-space MMIO uses a 12-bit register field; function,
   device, and bus begin at bits 12, 15, and 20.

   octpcie_make_tag() and octpcie_decompose_tag() used the conventional PCI
   tag layout instead, so config accesses to non-zero device or function
   numbers used the wrong MMIO offset.

   On SRX300 this breaks enumeration of the second Broadcom switch function
   at 0:0:1, which reads back garbage until the tag layout is corrected.

   OK: kettenis@, visa@
VersionDeltaFile
1.3+5-5sys/arch/octeon/dev/octpcie.c
+5-51 files

OpenBSD/src 73BzYuUsys/netinet tcp_input.c

   A packet with a FIN flag needs to act as a barrier in tcp_flush_queue.

   Once a FIN packet is received all following data should simply be
   discarded.  tcp_input handels this FIN but for that tcp_reass() needs
   to properly return TH_FIN when a FIN is processed in tcp_flush_queue.
   This reassembly was not quite correct. Unexpected data directly following
   the FIN packet was also reassembled and the FIN was actually lost.

   The failure to return TH_FIN caused the regression in the previous fix.
   tcp_input() passes some FIN packets through reassembly even though they
   are in sequence and the queue is empty.

   tcp_flush_queue() needs to treat packets with TH_FIN set as a barrier
   and stop reassembly after processing this last packet. This ensures that
   tcp_reass() returns TH_FIN to tcp_input which then changes the state of
   the session. It also ensures that only data up to the FIN packet are
   passed to userland.

   Reported by Xint Code
   OK sashan@
VersionDeltaFile
1.468+2-2sys/netinet/tcp_input.c
+2-21 files

OpenBSD/src VadSK19sys/kern subr_xxx.c, sys/sys systm.h

   the enosys() stub has not been used for decades
   ok jsg jca
VersionDeltaFile
1.19+1-13sys/kern/subr_xxx.c
1.178+1-2sys/sys/systm.h
+2-152 files

OpenBSD/src L9aleXiusr.sbin/rad frontend.c

   Fix PREF64 option corruption if DNSSL is also set

   On octeon (but not amd64) setting both a NAT64 prefix and a search domain
   causes the former ICMPv6 option to be corrupted due to how it is added last
   in the Router Advertisement packet, following too much zero padding.

   Bytes after the DNSSL option are zeroed up the next 8-byte boundary to
   align options inside the packet.

   Instead of checking alignment of the pointer address somewhere inside the
   packet buffer that lives on the stack, which is thus architecture specific,
   use their offset, i.e. see how many bytes were already written, in order to
   zero-fill what is left between last search domain and next 8-byte boundary.

   This makes RAs byte-identical between octeon and amd64 and prevents rad(8)
   from sending the kind of invalid packets that clients like slaacd(8) and
   gelatod(8) (from ports) need 029_v6daemons for.

   OK florian
VersionDeltaFile
1.58+2-2usr.sbin/rad/frontend.c
+2-21 files

OpenBSD/src AnYdFoPdistrib/sets/lists/comp md.loongson

   sync
VersionDeltaFile
1.56+0-2distrib/sets/lists/comp/md.loongson
+0-21 files

OpenBSD/src duqrh1Tlibexec/spamd spamd.c

   Fix handing of multi-line blacklist error strings in spamd.conf

   When appending the blacklist error string, spamd splits the message
   on a newline and continues the message on a new line.  There was
   a bug where the current pointer was incremented too far, which
   resulted in the message being truncated at the newline instead
   of continued.

   For very long blacklist messages (around 8K) in spamd.conf, this
   could result in heap corruption.  However, this is very unlikely
   in practice.

   OK jsg@

   Reported by and fix from Dhiraj Mishra
VersionDeltaFile
1.165+9-9libexec/spamd/spamd.c
+9-91 files

OpenBSD/src RxsyQouusr.sbin/ntpd ntpd.c

   newer gcc is so smart to point out that settime_deadline may be used
   uninitialized. of course it is wrong. sprinkle a "= 0" to shut it up.
   pointed out by bcook, discussed with, gcc confronted by and ok claudio bcook
VersionDeltaFile
1.144+2-2usr.sbin/ntpd/ntpd.c
+2-21 files

OpenBSD/src bGMTOTZusr.sbin/ntpd ntp.c

   newer gcc thinks it's smart (do they call it AI yet?) and points out
   peercount may be used unitialized. of course it is utterly wrong.
   move peercount = 0 initialization 2 lines up to shut gcc up
   pointed out by bcook, dicussed with, gcc-checked by and ok bcook claudio
VersionDeltaFile
1.182+2-2usr.sbin/ntpd/ntp.c
+2-21 files

OpenBSD/src YWSUdS3usr.sbin/ntpd control.c

   in control_check(), rename struct sockaddr_un sun to sa - for consistency
   with control_init() just underneath, and because "sun" causes problems for
   portable on solaris
   pretty much from bcook's portable repo, but another name, ok bcook
VersionDeltaFile
1.28+6-6usr.sbin/ntpd/control.c
+6-61 files

OpenBSD/src FCC8LIhusr.sbin/ntpd ntp_dns.c

   we use clock_gettime() here and thus shall explicitely include time.h
   from bcook's portable repo, ok bcook
VersionDeltaFile
1.37+2-1usr.sbin/ntpd/ntp_dns.c
+2-11 files

OpenBSD/src pjyDuyvsys/dev/ic qwz.c

   Enable nwid scanning by doing two things:

   1. Disable the 802.11d scanning command for now, since it causes a firmware
      error for which we currently have no solution.  This isn't a critical
      feature, and we can progress without it until we find a solution.

   2. Send the HTT software ring setup messages for the receive rings, otherwise
      the firmware never initializes its RXDMA pipeline, and delivers no frames
      to the host.  For that we did port over the
      ath12k_dp_rxdma_ring_sel_config_wcn7850() and ath12k_dp_rx_htt_setup()
      functions from the linux driver.

   Tested and ok kettenis@, kirill@
VersionDeltaFile
1.25+85-1sys/dev/ic/qwz.c
+85-11 files

OpenBSD/src RfrXUhWlibexec/tradcpp macro.c

   expand_domacro() handled a defined() with the wrong argument count via
   an error path that doesn't drain es->args

   OK jsg
VersionDeltaFile
1.5+1-0libexec/tradcpp/macro.c
+1-01 files

OpenBSD/src DFINAHJsys/net pf_if.c

   PFI_FLAG_SKIP may be lost when interface disappears and then reappears

   if 'set skip on ...' in pf.conf(5) refers to interface (or interface group)
   which is yet to be created in system, then all is good.

   However if the interface (or interface group) exists in system at the time
   when pf.conf(5) is being loaded to pf(4) the effect of skip flag might get
   lost. The scenario for tap0 interface goes as follows:

   tap0 (and tap interface) exist in system and is known to pf(4), meaning
   'pfctl -sI' reports tap0 and tap.

   pf.conf with 'set skip on tap' is loaded. The pf(4) sets the flag on
   `kif` instance without obtaining a reference to keep it in table
   until skip flag (PFI_FLAG_SKIP) is reset.

   tap0 interface is removed from system (ifconfig tap0 destroy),
   the tap0 is removed from system and also corresponding kif instance
   is removed from pf(4). kif is forgotten together with flag settings. If tap0

    [13 lines not shown]
VersionDeltaFile
1.113+16-2sys/net/pf_if.c
+16-21 files

OpenBSD/src eycBTRfregress/lib/libcrypto/pkcs7 pkcs7test.c

   pkcs7test: factor main into a helper so we can add some unit tests easily
VersionDeltaFile
1.6+13-3regress/lib/libcrypto/pkcs7/pkcs7test.c
+13-31 files

OpenBSD/src 2Jt23D4distrib/notes/riscv64 prep

   Remove the bootcmd hint for now

   On this jupiter box, U-Boot's bootcmd can't be interrupted on the serial
   console by pressing any key, Ctrl+C or ESC, even though the official
   docs say it should be possible by pressing any key.

   sigh
VersionDeltaFile
1.11+1-8distrib/notes/riscv64/prep
+1-81 files

OpenBSD/src T3SRD7Mdistrib/notes/riscv64 prep

   Better wording and typo fix for the Spacemit K1 boards
VersionDeltaFile
1.10+5-6distrib/notes/riscv64/prep
+5-61 files

OpenBSD/src 3tls1sIdistrib/notes/riscv64 hardware

   Mention some Spacemit K1 boards that kettenis added support for

   BananaPi F3, Orange Pi RV2, and Milk-V Jupiter
VersionDeltaFile
1.5+4-1distrib/notes/riscv64/hardware
+4-11 files

OpenBSD/src 7BRWOLKdistrib/notes/riscv64 prep

   Add post-install hints for boards without distro_bootcmd (like BPi F3/Jupiter)

   The default bootcmd is useless on these boards, so suggest some simple
   default boot command.
VersionDeltaFile
1.9+7-0distrib/notes/riscv64/prep
+7-01 files

OpenBSD/src Ax5vXUOdistrib/notes/riscv64 prep

   Document specifics for spacemit K1-based boards

   Orange Pi RV2, BananaPi F3, and Milk-V Jupiter
   Requested by deraadt
VersionDeltaFile
1.8+15-0distrib/notes/riscv64/prep
+15-01 files

OpenBSD/src wRBwZJkdistrib/notes/riscv64 prep

   Move hw-specific parts at the end of this file
VersionDeltaFile
1.7+12-13distrib/notes/riscv64/prep
+12-131 files

OpenBSD/src f8ckbbZsys/arch/octeon/dev cn30xxuart.c

   sys/octeon: preserve bootloader console baud

   The SRX300 console runs at 9600 baud under U-Boot; OpenBSD forced 115200
   during console handoff, which garbled output immediately after early
   memory setup and made a live kernel look dead.

   Here, I read the programmed UART divisor instead and derive comconsrate
   from it, so the kernel preserves the bootloader console configuration.

   OK: visa@
VersionDeltaFile
1.14+24-8sys/arch/octeon/dev/cn30xxuart.c
+24-81 files

OpenBSD/src CEOXBMMsys/arch/octeon/dev octeon_intr.c

   sys/octeon: accept linux,phandle for IRQs

   SRX300 firmware DT describes the CIU root and several CIB interrupt
   controllers with linux,phandle, but omits phandle.

   octeon_intr_register() consumed only the latter; the controllers
   therefore never entered the interrupt controller registry, and every
   later interrupt-parent lookup for CIB, AHCI, and xHCI failed.

   Thus, dev/ofw/fdt lookup code already treats phandle and linux,phandle
   as equivalent; so the Octeon interrupt layer should do the same when
   registering interrupt controllers.

   OK: kettenis@, visa@
VersionDeltaFile
1.26+3-1sys/arch/octeon/dev/octeon_intr.c
+3-11 files

OpenBSD/src rciq5iSusr.bin/vi/common screen.c

   vi: fix indent by trailing extra space

   from Walter Alejandro Iglesias
VersionDeltaFile
1.15+3-3usr.bin/vi/common/screen.c
+3-31 files