NetBSD/src i3KQnb5distrib/sets/lists/base md.ofppc

   add eeprom
VersionDeltaFile
1.19+2-1distrib/sets/lists/base/md.ofppc
+2-11 files

NetBSD/src 9vRfq95usr.sbin/eeprom Makefile

   build eeprom on ofppc
VersionDeltaFile
1.20+3-3usr.sbin/eeprom/Makefile
+3-31 files

NetBSD/src 7b3pJOHsys/kern vfs_bio.c

   vfs_bio: retry fresh buffer allocation if recycling fails

   getnewbuf() uses buf_lotsfree() to choose whether to
   allocate a fresh buffer before trying BQ_AGE and BQ_LRU.

   If fresh allocation is skipped and no buffer can actually be
   recycled, it sleeps on needbuffer_cv even when the buffer cache
   is still below its high water mark.

   In that situation, a thread which could release a buffer may
   itself need another buffer, resulting in a deadlock.

   To avoid this, if recycling finds no usable buffer and bufmem is
   still below bufmem_hiwater, make one more PR_NOWAIT fresh allocation
   attempt before sleeping.  See PR kern/60584 for details.

   Worth to pullup to netbsd-11.
VersionDeltaFile
1.309+23-2sys/kern/vfs_bio.c
+23-21 files

NetBSD/src lgspOLmusr.bin/make make.1 meta.c

   make: allow for a lot more unique temp files
VersionDeltaFile
1.227+3-3usr.bin/make/meta.c
1.670+3-3usr.bin/make/main.c
1.396+2-2usr.bin/make/make.1
+8-83 files

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

   atari: Fix 68030 SRP setup across kernel relocation

   protorp[1] is currently updated after the kernel has been copied to
   TT-RAM in RELOC_KERNEL case.  The following PMOVE reads the ST-RAM
   copy while the MMU is disabled, so this happens to work when enabling
   the MMU.  After the MMU is enabled, however, protorp refers to the
   relocated copy, where protorp[1] still contains its old value.

   Fortunately, this is not currently fatal because later uses of
   protorp overwrite protorp[1] with the root table address before
   loading the root pointer.  However, any writes to global variables
   after relocation leave the reloacated kernel state inconsistent.

   Set protorp[1] before copying the kernel so that the relocated copy
   also contains the root table address.  This matches the ordering used
   by amiga.

   The PMOVE inline asm also specifies only the address of protorp as an
   input, even though it reads both words of the SRP prototype from memory.

    [2 lines not shown]
VersionDeltaFile
1.122+11-6sys/arch/atari/atari/atari_init.c
+11-61 files

NetBSD/src KoQtVJSusr.sbin/npf/npfctl npfctl.c

   npfctl.c: correct typographic convention for optional argument

   (While here, add missing RCSID.)
VersionDeltaFile
1.71+4-2usr.sbin/npf/npfctl/npfctl.c
+4-21 files

NetBSD/src 0jmnJRNsys/dev/pci pucdata.c

   sys/dev/pci/pucdata.c: add entry for Intel C3000 HS UART.
VersionDeltaFile
1.120+11-2sys/dev/pci/pucdata.c
+11-21 files

NetBSD/src v6dnkoHshare/man/man4 run.4

   run.4: Some devices from my eBay pile
VersionDeltaFile
1.5+4-2share/man/man4/run.4
+4-21 files

NetBSD/src InkOk2Qsys/dev/isa pcppi.c

   pcppi(4): Don't detach at shutdown.

   No reason was ever given for detaching this at shutdown; if there's
   some important resource to release, it can be done in a pmf hook, but
   otherwise it interferes with other functionality.

   PR kern/60735: BEEP_ONHALT fails on i386
VersionDeltaFile
1.49+3-3sys/dev/isa/pcppi.c
+3-31 files

NetBSD/src ruWWXrJdistrib/i386/cdroms Makefile.cdrom

   Hook bootxx_hd9660 in as generic-bootimage, to enable booting ISO from
   hard drive-style media (if the platform firmware isn't too picky).
VersionDeltaFile
1.48+2-2distrib/i386/cdroms/Makefile.cdrom
+2-21 files

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