NetBSD/src D6RXJF2common/lib/libc/arch/x86_64/string memchr.S

   amd64 memchr(3): Fix accidental spaces instead of tab.

   PR lib/60744: memchr(3) is busticated
VersionDeltaFile
1.8+3-3common/lib/libc/arch/x86_64/string/memchr.S
+3-31 files

NetBSD/src f7UqBrpcommon/lib/libc/arch/x86_64/string memchr.S, tests/lib/libc/string t_memchr.c

   amd64 memchr(3): Fix case when ptr + len wraps around address space.

   While here, give meaningful names to the various internal labels.

   PR lib/60744: memchr(3) is busticated
VersionDeltaFile
1.7+53-14common/lib/libc/arch/x86_64/string/memchr.S
1.7+2-10tests/lib/libc/string/t_memchr.c
+55-242 files

NetBSD/src VurUFh3sys/arch/atari/atari atari_init.c

   atari: Fix fatal 68030 MMU TC initialization bug

   ATARITT kernels from NetBSD 11.0 and -current fail to boot on my
   Atari TT030.

   The inline asm that loads TC specifies only `"a" (&tc)` as an input,
   so the compiler may eliminate the initialization of tc as a dead store.
   Then the generated code loads an uninitialized value from the stack
   into TC.

   Add an `"m" (tc)` input operand to the inline asm so that the compiler
   knows that the asm reads tc from memory.

   Tested with both NetBSD 11.0 and -current on Atari TT030 and
   must be pulled up to netbsd-11.
VersionDeltaFile
1.121+3-3sys/arch/atari/atari/atari_init.c
+3-31 files

NetBSD/src M9Zz2BWtests/lib/libc/string t_memchr.c

   t_memchr: Sprinkle a few more NUL byte tests.

   PR lib/60744: memchr(3) is busticated
VersionDeltaFile
1.6+26-3tests/lib/libc/string/t_memchr.c
+26-31 files

NetBSD/src U4OvCH9sys/netipsec key.c

   ipsec: Nix wrong assertion added in key.c rev. 1.288.

   On LP32 platforms, the xpl0 pointer may not be 64-bit aligned itself;
   we just require all the _internal_ structures inside that buffer to
   be 64-bit aligned.

   Should fix various ipsec tests mostly on LP32 platforms.

   PR kern/60669: netipsec key_sp2msg buffer overrun
VersionDeltaFile
1.291+2-3sys/netipsec/key.c
+2-31 files

NetBSD/src fw1CY4tsys/external/bsd/drm2/dist/drm/i915/gem i915_gem_pages.c

   i915: Fix null pointer deref in i915_gem_object_get_dma_address.

   Matches the Linux code in the #else this way.

   PR kern/60755: i915drmkms crashes on Intel Bay Trail GPU making the
   machine rebooting
VersionDeltaFile
1.8+4-3sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_pages.c
+4-31 files

NetBSD/src ZNbkV3Dsys/compat/linux/common linux_inotify.c

   compat_linux inotify(2): Re-check number of entries in loop.

   Might have changed between two calls to inotify_readdir.

   XXX Should maybe not do two calls to inotify_readdir!  Can we hold
   the vnode lock or use a fixed temporary buffer size or something?

   PR kern/60756: compat_linux inotify(2): TOCTOU and locking shenanigans
VersionDeltaFile
1.11+3-3sys/compat/linux/common/linux_inotify.c
+3-31 files

NetBSD/src MIa8XSxsys/compat/linux/common linux_inotify.c

   compat_linux inotify(2): strcpy -> strlcpy

   PR kern/60756: compat_linux inotify(2): TOCTOU and locking shenanigans
VersionDeltaFile
1.10+10-5sys/compat/linux/common/linux_inotify.c
+10-51 files

NetBSD/src E1MS3NRsys/compat/ultrix ultrix_misc.c

   compat_ultrix: Fix shmat/shmdt confusion.

   Also omit needless initializer while here, which was added to pacify
   a gcc12 warning without actually fixing the problem the warning
   should have alerted us to.

   kern/60753: compat_ultrix shmsys(2): busted shmdt
VersionDeltaFile
1.130+4-4sys/compat/ultrix/ultrix_misc.c
+4-41 files

NetBSD/src kJlMLpzsys/rump/kern/lib/libsys_cygwin rump_cygwin_compat.c, sys/rump/kern/lib/libsys_linux linux_rump.c

   rump libsys_*: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.5+4-3sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c
1.4+4-3sys/rump/kern/lib/libsys_cygwin/rump_cygwin_compat.c
1.6+3-2sys/rump/kern/lib/libsys_linux/linux_rump.c
+11-83 files

NetBSD/src 9ynQTGesys/kern sys_epoll.c kern_time.c

   kern: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.5+3-2sys/kern/sys_epoll.c
1.233+3-2sys/kern/kern_time.c
1.554+3-2sys/kern/init_main.c
+9-63 files

NetBSD/src Z0gVN1Hsys/compat/ultrix ultrix_ioctl.c ultrix_pathname.c

   compat_ultrix: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.129+15-3sys/compat/ultrix/ultrix_misc.c
1.41+6-2sys/compat/ultrix/ultrix_pathname.c
1.41+3-2sys/compat/ultrix/ultrix_ioctl.c
+24-73 files

NetBSD/src quMysUpsys/compat/sunos sunos_ioctl.c sunos_misc.c, sys/compat/sunos32 sunos32_ioctl.c sunos32_misc.c

   compat_sunos: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.178+15-2sys/compat/sunos/sunos_misc.c
1.87+13-2sys/compat/sunos32/sunos32_misc.c
1.37+4-2sys/compat/sunos32/sunos32_ioctl.c
1.72+4-2sys/compat/sunos/sunos_ioctl.c
+36-84 files

NetBSD/src onFcDIjsys/compat/freebsd freebsd_misc.c freebsd_ipc.c

   compat_freebsd: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.18+14-2sys/compat/freebsd/freebsd_ipc.c
1.36+4-2sys/compat/freebsd/freebsd_misc.c
+18-42 files

NetBSD/src 2JSh4TUsys/compat/common kern_ipc_10.c, sys/compat/netbsd32 netbsd32_lwp.c netbsd32_fs.c

   compat: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.238+149-2sys/compat/netbsd32/netbsd32_netbsd.c
1.67+21-2sys/compat/netbsd32/netbsd32_compat_43.c
1.96+14-2sys/compat/netbsd32/netbsd32_fs.c
1.4+14-2sys/compat/netbsd32/netbsd32_compat_10_sysv.c
1.24+13-2sys/compat/netbsd32/netbsd32_lwp.c
1.27+13-2sys/compat/common/kern_ipc_10.c
+224-1223 files not shown
+314-5629 files

NetBSD/src smMmMs3sys/compat/linux/common linux_misc.c linux_file.c, sys/compat/linux32/common linux32_uid16.c linux32_sched.c

   compat_linux, compat_linux32: Always zero syscall args on stack.

   This is an attempt to systematically eliminate a class of stack
   garbage bugs:

   PR kern/60750: compat_linux: stack garbage mistakes
VersionDeltaFile
1.45+24-3sys/compat/linux32/common/linux32_unistd.c
1.33+19-2sys/compat/linux32/common/linux32_socket.c
1.137+19-2sys/compat/linux/common/linux_file.c
1.10+17-3sys/compat/linux32/common/linux32_sched.c
1.3+13-4sys/compat/linux32/common/linux32_uid16.c
1.268+14-2sys/compat/linux/common/linux_misc.c
+106-1630 files not shown
+263-8536 files

NetBSD/src BYa2nPcsys/compat/linux/common linux_sched.c

   compat_linux __prctl(2): Use self, not stack garbage lwpid.

   PR kern/60750: compat_linux: stack garbage mistakes
VersionDeltaFile
1.88+9-4sys/compat/linux/common/linux_sched.c
+9-41 files

NetBSD/src 63NnfzQsys/compat/netbsd32 netbsd32_ipc.c

   compat32 semop: Fix leak on timeout copyin.

   PR kern/60752: compat32: memory leak in netbsd32_do_semop error
   branch
VersionDeltaFile
1.24+9-10sys/compat/netbsd32/netbsd32_ipc.c
+9-101 files

NetBSD/src CffGwpxsys/compat/linux/common linux_uid16.c

   compat_linux setgroups16(2): Fix array copyin sizing.

   PR kern/60750: compat_linux: stack garbage mistakes
VersionDeltaFile
1.5+4-3sys/compat/linux/common/linux_uid16.c
+4-31 files

NetBSD/src 7gTyOICsys/compat/common uipc_syscalls_43.c, sys/compat/netbsd32 netbsd32_compat_43.c

   compat: Fix successive-copyout chained error branches.

   PR kern/60749: compat: successive copyout error branch mistakes
VersionDeltaFile
1.52+4-5sys/compat/common/uipc_syscalls_43.c
1.66+5-3sys/compat/netbsd32/netbsd32_compat_43.c
+9-82 files

NetBSD/src EJAAINKsys/compat/linux/common linux_socket.c

   compat_linux recv(m)msg(2): Fix mistakes in error branches.

   1. If copying out the cmsghdr _succeeds_, we want to copy out the
      cmsg data -- not if copying out the cmsghdr _fails_.

   2. If any part of the BSD cmsg to Linux cmsg conversion or copyout
      _fails_, we must pass the whole mbuf chain to free_control_mbuf to
      close all the file descriptors in it -- otherwise, they would leak
      because the user process has no idea it has been given the fds.

   3. Add missing `if (error)' before `return error' in recvmmsg(2)
      branch for copying in timeout.

   Found while reviewing code nearby:

   PR kern/60748: compat_linux: possible integer truncation/overflow
   issues in socket syscalls
VersionDeltaFile
1.162+9-6sys/compat/linux/common/linux_socket.c
+9-61 files

NetBSD/src y4Jy2ansys/compat/linux/common linux_socket.c

   compat_linux recv(m)msg(2): Tighten arithmetic bounds.

   And avoid overflow test idioms that involve doing the overflow.

   PR kern/60748: compat_linux: possible integer truncation/overflow
   issues in socket syscalls
VersionDeltaFile
1.161+27-7sys/compat/linux/common/linux_socket.c
+27-71 files

NetBSD/src s6JDdOpsys/arch/news68k/dev nwb225reg.h fbbm.c

   news68k: fix botched patch (sorry)
VersionDeltaFile
1.2+0-963sys/arch/news68k/dev/fbbm.c
1.2+0-82sys/arch/news68k/dev/nwb225reg.h
+0-1,0452 files

NetBSD/src IEvoLkEsys/arch/arm/apple apple_pcie.c, sys/arch/arm/include pci_machdep.h

   Make Arm and RISC-V ports share sys/dev/fdt/pcihost_fdt.[ch]

   NFCI.
VersionDeltaFile
1.1+691-0sys/dev/fdt/pcihost_fdt.c
1.1+101-0sys/dev/fdt/pcihost_fdtvar.h
1.19+71-11sys/arch/arm/include/pci_machdep.h
1.11+35-37sys/arch/arm/pci/pci_msi_machdep.c
1.3+37-12sys/arch/riscv/include/pci_machdep.h
1.7+23-25sys/arch/arm/apple/apple_pcie.c
+958-8537 files not shown
+1,130-26743 files

NetBSD/src wSbSYH2doc CHANGES

   CHANGES: note about news68k wsdisplay(9) support for NWB-225 framebuffer
VersionDeltaFile
1.3296+3-1doc/CHANGES
+3-11 files

NetBSD/src nfbIhu5sys/arch/news68k/conf GENERIC_TINY INSTALL, sys/arch/news68k/dev kb.c nwb225reg.h

   news68k: add wsdisplay(9) support for NWB-225 framebuffer console

   In its 27th year in the NetBSD source tree, news68k finally
   gets wsdisplay(9) support for its native framebuffer console.
   Character output is implemented directly by the driver and
   does not rely on PROM routines.

   Add fbbm(4) driver for the NWB-225 framebuffer used on NWS-1750.

   The NWB-225 does not provide a CPU-accessible linear framebuffer
   so we cannot use MI rasops(9) to support wscons(9).  Instead,
   implement wsdisplay_emulops directly with the board's ROP engine,
   using VRAM-to-VRAM copy, constant fill, and host-to-VRAM write
   operations for cursor handling, scrolling, erasing, and putchar.

   The ROP programming sequences and function encodings were taken
   from NEWS-OS binaries and the NWS-1750 PROM, and checked against
   the ROP command model documented in the Sony NWS-15x0 service manual.


    [14 lines not shown]
VersionDeltaFile
1.1+2,066-0sys/arch/news68k/dev/fbbm.c
1.1+189-0sys/arch/news68k/dev/nwb225reg.h
1.10+26-21sys/arch/news68k/dev/kb.c
1.144+34-3sys/arch/news68k/news68k/machdep.c
1.68+18-8sys/arch/news68k/conf/INSTALL
1.95+11-5sys/arch/news68k/conf/GENERIC_TINY
+2,344-376 files not shown
+2,383-5912 files

NetBSD/src W2kjhtVdoc CHANGES-11.1

   Tickets #484 - #486
VersionDeltaFile
1.1.2.15+30-1doc/CHANGES-11.1
+30-11 files

NetBSD/src fxJE9tNshare/man/man4/man4.sparc64 envmon.4 envmon.4, sys/arch/sparc64/dev envmon_ebusreg.h envmon_ebusreg.h

   Pull up following revision(s) (requested by jdc in ticket #486):

        distrib/sets/lists/man/mi: revision 1.1844
        sys/arch/sparc64/conf/files.sparc64: revision 1.173
        sys/arch/sparc64/conf/GENERIC: revision 1.256
        distrib/sets/lists/manhtml/mi: revision 1.61
        sys/arch/sparc64/dev/envmon_ebus.c: revision 1.1
        sys/arch/sparc64/dev/envmon_ebusreg.h: revision 1.1
        share/man/man4/man4.sparc64/envmon.4: revision 1.1
        share/man/man4/man4.sparc64/envmon.4: revision 1.2
        share/man/man4/man4.sparc64/Makefile: revision 1.13

   Add a driver for the "env-monitor" sensor found on Sun U25/U45 and V215/V245.

   On the Ultra machines, the sensor reports the front panel temperature.

   On the Fire machines, the sensor reports the front fan tray fan speeds,
   the fan fault indicator, the front panel temperature, the keyswitch indicators,
   and controls the front and rear status LED's.

    [13 lines not shown]
VersionDeltaFile
1.1.2.1+0-757sys/arch/sparc64/dev/envmon_ebus.c
1.1.2.2+757-0sys/arch/sparc64/dev/envmon_ebus.c
1.1.2.1+0-127sys/arch/sparc64/dev/envmon_ebusreg.h
1.1.2.2+127-0sys/arch/sparc64/dev/envmon_ebusreg.h
1.2.2.1+0-79share/man/man4/man4.sparc64/envmon.4
1.2.2.2+79-0share/man/man4/man4.sparc64/envmon.4
+963-9635 files not shown
+981-97011 files

NetBSD/src a5DJwAssys/dev/i2c pcf8574.c pcagpio.c

   Pull up following revision(s) (requested by jdc in ticket #485):

        sys/dev/i2c/pcf8574.c: revision 1.11
        sys/dev/i2c/pcf8574.c: revision 1.12
        sys/dev/i2c/pcagpio.c: revision 1.14
        sys/dev/i2c/pcagpio.c: revision 1.15
        sys/dev/i2c/pcagpio.c: revision 1.16

   Add sysmon support for indicator pins (mostly taken from pcf8574).

   The Sun V245 uses a PCA9555 for the disk present indications.

   Set the "active high" flag on the correct pin.

   Make prev_state the correct size (only used when debug defined).

   Split out the logic for handling indicators, alerts and timeouts, rather
   than having special values in the properties.


    [3 lines not shown]
VersionDeltaFile
1.13.2.1+128-6sys/dev/i2c/pcagpio.c
1.10.18.1+51-17sys/dev/i2c/pcf8574.c
+179-232 files

NetBSD/src m7MxvWhshare/man/man4 mk48txx.4, sys/conf files

   Pull up following revision(s) (requested by jdc in ticket #484):

        share/man/man4/mk48txx.4: revision 1.17
        sys/conf/files: revision 1.1324
        sys/dev/ic/mk48txxvar.h: revision 1.8
        sys/dev/ic/mk48txx.c: revision 1.30

   Add mk48txx support for:
     monitoring the battery low flag (via envstat)
     stopping/starting the clock oscillator (via sysmon)
VersionDeltaFile
1.28.34.1+142-3sys/dev/ic/mk48txx.c
1.16.62.1+42-3share/man/man4/mk48txx.4
1.7.100.1+9-1sys/dev/ic/mk48txxvar.h
1.1315.2.1+2-2sys/conf/files
+195-94 files