NetBSD/src rfy8jTqexternal/gpl3/gcc/dist/gcc/config/arm arm.cc

   gcc/arm: For -mtp=soft, ensure stack alignment even in leaves.

   The option -mtp=soft, which is the default on earmv5, makes queries
   to the thread pointer, for access to static (`initial-exec')
   thread-local storage, go through the C runtime subroutine
   __aeabi_read_tp.  (For earmv>=6, we use the cp15 register via a
   single instruction.)

   Thus procedures which gcc thinks of as leaf procedures that use
   __aeabi_read_tp are not really leaf procedures -- and even though
   __aeabi_read_tp itself doesn't use the stack pointer at all,
   resolving the symbol may take a detour through the dynamic linker,
   which does rely on an aligned stack pointer.

   Without this change, code like

   __thread int x = 0;
   int *
   get_x(void)

    [92 lines not shown]
VersionDeltaFile
1.2+826-148external/gpl3/gcc/dist/gcc/config/arm/arm.cc
+826-1481 files

NetBSD/src f5cestDsys/arch/evbarm/fdt fdt_machdep.c, sys/arch/riscv/riscv riscv_machdep.c

   The 2nd argument of fdt_memory_remove_range is a size. Fix the call sites
   that get this wrong.

   Prompted by the email to port-riscv from Alex Jokela
VersionDeltaFile
1.51+4-4sys/arch/riscv/riscv/riscv_machdep.c
1.113+3-3sys/arch/evbarm/fdt/fdt_machdep.c
+7-72 files

NetBSD/src PPxwnQ6doc CHANGES

   doc: Two weeks of changes.
VersionDeltaFile
1.3282+18-1doc/CHANGES
+18-11 files

NetBSD/src BbKER3qshare/man/man4/man4.sparc64 envctrl.4

   Update the envctrl manual page to reflect changes:
   - remove history/authors because the driver has changed
   - add E250 information
VersionDeltaFile
1.6+20-16share/man/man4/man4.sparc64/envctrl.4
+20-161 files

NetBSD/src FgELzyYdistrib/sets/lists/man mi, distrib/sets/lists/manhtml mi

   Add build glue for the led.4 (generic LED framework) manual page.
VersionDeltaFile
1.755+2-2share/man/man4/Makefile
1.1838+2-1distrib/sets/lists/man/mi
1.56+2-1distrib/sets/lists/manhtml/mi
+6-43 files

NetBSD/src 8HK4j0Cshare/man/man4 led.4

   Add (belatedly) a manual page for the generic LED framework.
VersionDeltaFile
1.1+57-0share/man/man4/led.4
+57-01 files

NetBSD/src tTL2uvWsys/external/bsd/ipf/netinet fil.c

   fil.c: fix typo in a comment
VersionDeltaFile
1.39+3-3sys/external/bsd/ipf/netinet/fil.c
+3-31 files

NetBSD/src 968HTQcexternal/gpl3/gdb/dist/gdb/cli cli-style.c

   gdb: Disable emoji in output by default.

   NetBSD users may be more likely than others to be using a physical
   DEC VT420 as their console, or at the very least the standard x86
   BIOS text console while debugging the system. Both of these would
   rather display a garbled mess than an emoji.

   Besides, this is the system debugger, so we want to keep things
   usable in a minimal environment.

   Users can still re-enable emoji output with "set style emoji on"
   if they are using kalacrittyology7 with an utf-8 locale. Or uxterm
   with symbola-ttf installed (monochrome only).

   PR bin/60497 gdb prints garbled gibberish in an attempt to show
   cutesy emoji
VersionDeltaFile
1.2+576-154external/gpl3/gdb/dist/gdb/cli/cli-style.c
+576-1541 files

NetBSD/src ptarucasys/arch/riscv/riscv ipifuncs.c

   Remove unnecessary #includes
VersionDeltaFile
1.3+2-4sys/arch/riscv/riscv/ipifuncs.c
+2-41 files

NetBSD/src JpojQxoshare/man/man4 mcclock.4

   Note cobalt, shark and sparc64 mcclock attachments.  Mention MC146816.
   New line after full stop whilst here.
VersionDeltaFile
1.7+13-5share/man/man4/mcclock.4
+13-51 files

NetBSD/src yTxCFA2sys/dev/pci radeonfb.c

   turn off sync signals on both CRTCs when blanking
VersionDeltaFile
1.125+11-13sys/dev/pci/radeonfb.c
+11-131 files

NetBSD/src tYGLYkIsys/arch/virt68k/include disklabel.h

   Un-hide basically everything.
VersionDeltaFile
1.4+2-6sys/arch/virt68k/include/disklabel.h
+2-61 files

NetBSD/src bfz3tKxsys/dev/hdaudio hdaudio.c

   hdaudio(4): Apply access checks to ioctl routines.

   This way the permissions on /dev/hdaudioN actually do something.

   Sort includes while here.

   PR kern/60492: hdaudio(4): setconfig is allowed unprivileged
VersionDeltaFile
1.19+24-6sys/dev/hdaudio/hdaudio.c
+24-61 files

NetBSD/src YxXK9fzsys/netinet if_arp.c

   arp: Validate op on input, before creating any state.

   PR kern/60491: arp creates state for invalid messages
VersionDeltaFile
1.321+13-4sys/netinet/if_arp.c
+13-41 files

NetBSD/src RuqkW73sys/netinet6 nd6_nbr.c

   nd6: Redo previous avoidance of buffer overread.

   Previous change invalidated two checks of the length:

       285      if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) {
       286              nd6log(LOG_INFO, "lladdrlen mismatch for %s "
       287                  "(if %d, NS packet %d)\n",
       288                  IN6_PRINT(ip6buf, &taddr6),
       289                  ifp->if_addrlen, lladdrlen - 2);
       290              goto bad;
       291      }

   https://nxr.netbsd.org/xref/src/sys/netinet6/nd6_nbr.c?r=1.186#285

       685              if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) {
       686                      nd6log(LOG_INFO, "lladdrlen mismatch for %s "
       687                          "(if %d, NA packet %d)\n",
       688                          IN6_PRINT(ip6buf, &taddr6),
       689                          ifp->if_addrlen, lladdrlen - 2);

    [18 lines not shown]
VersionDeltaFile
1.188+19-17sys/netinet6/nd6_nbr.c
+19-171 files

NetBSD/src 9Yi7BQMsys/netinet6 nd6_nbr.c

   nd6: Avoid buffer overread of link-layer address options.

   PR kern/60488: nd6: two-byte buffer overread in source/target
   linkaddr options
VersionDeltaFile
1.187+6-4sys/netinet6/nd6_nbr.c
+6-41 files

NetBSD/src KLvJL0isys/netinet6 frag6.c

   netinet6: Plug leak and avoid arith overflow in fragment accounting.

   kern/60487: netinet6: fragment accounting leak
VersionDeltaFile
1.79+10-6sys/netinet6/frag6.c
+10-61 files

NetBSD/src HXmPu60sys/netinet tcp_syncache.c

   tcp syncache: Don't leak kernel stack data through timestamps.

   kern/60486: tcp syncache leaks 4-byte kernel stack content
VersionDeltaFile
1.8+9-2sys/netinet/tcp_syncache.c
+9-21 files

NetBSD/src xV2PDmOsys/arch/sparc64/dev vdsk.c

   sun4v vdsk: catch up with recent updates to cd(4)

   Add support for missing SCSI_MODE_SELECT_10 and  SCSI_MODE_SENSE_10.
   Verified to work in a sun4v ldom with acccess to a virtual cd.
VersionDeltaFile
1.22+20-17sys/arch/sparc64/dev/vdsk.c
+20-171 files

NetBSD/src wnAf7fzsys/dist/pf/net pf.c

   pf(4): Avoid UAF of pf mbuf tag in fragment reassembly.

   PR kern/60485: pf(4): uaf in fragment reassembly
VersionDeltaFile
1.88+20-2sys/dist/pf/net/pf.c
+20-21 files

NetBSD/src 10KzUM9sys/external/bsd/ipf/netinet fil.c, tests/ipf t_filter_exec.sh

   ipfilter: Don't choke on an ICMP6 error quoting an ICMP6 error.

   PR kern/60484: ipfilter: null pointer deref in icmp6 parsing
VersionDeltaFile
1.38+4-3sys/external/bsd/ipf/netinet/fil.c
1.10+2-2tests/ipf/t_filter_exec.sh
+6-52 files

NetBSD/src 1y3uRtAtests/ipf t_filter_exec.sh, tests/ipf/expected ipv6.3

   ipfilter: Test icmp6 packet of death.

   PR kern/60484: ipfilter: null pointer deref in icmp6 parsing
VersionDeltaFile
1.3+15-0tests/ipf/input/ipv6.3
1.9+2-2tests/ipf/t_filter_exec.sh
1.2+1-0tests/ipf/expected/ipv6.3
+18-23 files

NetBSD/src BU3mJITsys/dev/ic aic79xx.c

   aic79xx.c: fix spelling and punctuation consistency

   (Not sure why either of those terms warrant quotation marks, but the
   existing style was retained.)
VersionDeltaFile
1.71+3-3sys/dev/ic/aic79xx.c
+3-31 files

NetBSD/src le2ae13sys/arch/virt68k/include disklabel.h

   MAXPARTITIONS is required to build libc, so make it visible outside the
   kernel.
VersionDeltaFile
1.3+3-2sys/arch/virt68k/include/disklabel.h
+3-21 files

NetBSD/src kROzPG2external/gpl2/groff/tmac mdoc.local

   Welcome to 11.0 RC7
VersionDeltaFile
1.11.4.8+3-3external/gpl2/groff/tmac/mdoc.local
+3-31 files

NetBSD/src pUmFAujsys/dev/raidframe rf_disks.c

   PR kern/60477

   Use greater than zero instead of strictly one
VersionDeltaFile
1.97+3-3sys/dev/raidframe/rf_disks.c
+3-31 files

NetBSD/src xdQYkMzsys/dev/raidframe rf_disks.c

   PR kern/60477

   Use the right assertions to ensure that all IOs are suspended.
   zero indicates that IOs resume.
VersionDeltaFile
1.96+3-3sys/dev/raidframe/rf_disks.c
+3-31 files

NetBSD/src Qhqt0N2libexec/ld.elf_so tls.c

   ld.elf_so: Prune some dead TLS variant branches.

   __lwp_settcb / __lwp_gettcb_fast are used only with TLS variant I,
   never with TLS variant II.

   So say `#ifdef __HAVE_TLS_VARIANT_II' instead of `#ifndef
   __HAVE_TLS_VARIANT_I' to make it clearer, and prune all the
   __HAVE___LWP_SETTCB / __HAVE___LWP_GETTCB_FAST branches under it
   because they're unreachable.

   No functional change intended: all the deleted code should be dead.

   PR bin/60469: bin/60469: assertion "ALIGNED_P(q, obj->tlsalign)"
   failed: file "/usr/src/libexec/ld.elf_so/tls.c", line 333
VersionDeltaFile
1.34+3-18libexec/ld.elf_so/tls.c
+3-181 files

NetBSD/src 9jDC6GIlibexec/ld.elf_so tls.c

   ld.elf_so: Sprinkle assertions in _rtld_tls_module_allocate.

   No functional change intended for non-DEBUG builds: assertion changes
   only here.

   PR bin/60469: bin/60469: assertion "ALIGNED_P(q, obj->tlsalign)"
   failed: file "/usr/src/libexec/ld.elf_so/tls.c", line 333
VersionDeltaFile
1.33+16-2libexec/ld.elf_so/tls.c
+16-21 files

NetBSD/src Kzi5zpDlibexec/ld.elf_so tls.c

   ld.elf_so: Fix assertions for TLS variant I without _lwp_settcb.

   In variant I, the TLS address is always

        (uint8_t *)tcb + sizeof(struct tls_tcb) + obj->tlsoffset.

   With _lwp_settcb, (uint8_t *)tcb + sizeof(struct tls_tcb) is aligned,
   whereas without it, (uint8_t *)tcb is aligned.  Consequently, with
   _lwp_settcb, obj->tlsoffset must also be aligned, whereas without it,
   obj->tlsoffset + sizeof(struct tls_tcb) must be aligned -- and hence,
   without _lwp_settcb, obj->tlsoffset must be congruent to
   -sizeof(struct tls_tcb) modulo the alignment.

   No functional change intended for non-DEBUG builds: assertion changes
   only here.

   PR bin/60469: bin/60469: assertion "ALIGNED_P(q, obj->tlsalign)"
   failed: file "/usr/src/libexec/ld.elf_so/tls.c", line 333
VersionDeltaFile
1.32+15-4libexec/ld.elf_so/tls.c
+15-41 files