NetBSD/src Q2wakUCsys/sys param.h

   sys/param.h: Welcome to 11.99.8, courtsey of struct proc reordering.

   PR kern/60653: posix_spawn(3) causes incorrect stack base information

   XXX kernel ABI revbump -- NOT FOR PULLUP
VersionDeltaFile
1.747+2-2sys/sys/param.h
+2-21 files

NetBSD/src rSyjIZKsys/kern kern_fork.c, sys/sys proc.h

   struct proc: Put p_stackbase in the [p_startcopy,p_endcopy) range.

   It is inherited by the child because the child has exactly the same
   memory layout as the parent.

   Cleanup after:

   PR kern/60653: posix_spawn(3) causes incorrect stack base information

   XXX kernel ABI revbump -- NOT FOR PULLUP
VersionDeltaFile
1.236+2-10sys/kern/kern_fork.c
1.375+2-2sys/sys/proc.h
+4-122 files

NetBSD/src i88tSFosys/kern kern_fork.c, tests/kernel t_signal_and_sp.c

   fork(2), vfork(2): Copy the parent's stack base pointer to the child.

   Don't just leak whatever random stack pointer some recycled struct
   proc had!

   TBD: Move p_stackbase in struct proc so this is covered by the memcpy
   above, in a separate commit so we can pull this one up without any
   change to the layout of struct proc.

   PR kern/60653: posix_spawn(3) causes incorrect stack base information
VersionDeltaFile
1.24+2-10tests/kernel/t_signal_and_sp.c
1.235+10-2sys/kern/kern_fork.c
+12-122 files

NetBSD/src L83yvZVsys/compat/linux32/arch/aarch64 linux32_exec_machdep.c, sys/kern kern_exec.c exec_subr.c

   execve(2): Set p_stackbase in execve_runproc, not execve_loadvm.

   execve_loadvm must not have side effects on the running process for
   two reasons:

   1. If execve(2) fails, it has to be able to back out and return to
      the calling process.  For example, the shell will execute the
      first of a series of candidate paths that works when it searches
      $PATH, and if one fails, it has to be able to move on to try the
      next.

   2. The caller may be the _parent_ process -- this is the case when
      we're in posix_spawn.

   Instead, it must be set in execve_runproc, after we're committed to
   the exec and can't back out -- and we're definitely operating on the
   process that is executing a new image, not on its parent!

   p_stackbase and its assignment in exec_setup_stack, a subroutine of

    [18 lines not shown]
VersionDeltaFile
1.23+2-31tests/kernel/t_signal_and_sp.c
1.93+2-4sys/kern/exec_subr.c
1.3+2-4sys/compat/linux32/arch/aarch64/linux32_exec_machdep.c
1.535+3-2sys/kern/kern_exec.c
+9-414 files

NetBSD/src VQhNL4ztests/kernel Makefile

   t_signal_and_sp: Link against libpthread unconditionally now.

   Required by new test cases added for:

   PR kern/60653: posix_spawn(3) causes incorrect stack base information
VersionDeltaFile
1.100+2-2tests/kernel/Makefile
+2-21 files

NetBSD/src N6fQqqtlib/libc/sys chflags.2

   chflags.2: Grammar.
VersionDeltaFile
1.29+2-2lib/libc/sys/chflags.2
+2-21 files

NetBSD/src jTkV5rwdistrib/sets/lists/tests mi, tests/kernel Makefile h_getstack.c

   Test various methods of getting the process's stack base and size.

   And test the effect of fork, vfork, failed execve, and posix_spawn on
   them.

   PR kern/60653: posix_spawn(3) causes incorrect stack base information
VersionDeltaFile
1.22+582-2tests/kernel/t_signal_and_sp.c
1.1+244-0tests/kernel/getstack.c
1.1+44-0tests/kernel/getstack.h
1.1+39-0tests/kernel/h_getstack.c
1.99+7-1tests/kernel/Makefile
1.1429+2-1distrib/sets/lists/tests/mi
+918-41 files not shown
+920-57 files

NetBSD/src LL4tVKcsys/kern exec_script.c kern_exec.c

   exec: Free struct exec_package::ep_emul_arg in more error paths.

   We should really formalize the destruction path for these temporary
   exec data structures; these error branches are all tangled messes of
   spaghetti.

   PR kern/60657: panic: kernel diagnostic assertion "epp->ep_emul_arg
   == NULL" failed: file
   "/home/riastradh/netbsd/current/src/sys/kern/kern_exec.c", line 535

   Test case forthcoming (it would panic the testbed) as part of

   PR kern/60653: posix_spawn(3) causes incorrect stack base information

   which is how I stumbled upon this.
VersionDeltaFile
1.534+27-2sys/kern/kern_exec.c
1.86+11-2sys/kern/exec_script.c
+38-42 files

NetBSD/src VI1buQWsys/ufs/lfs lfs_vfsops.c

   Move lfs_free_orphans() later in the mount sequence to avoid deadlock.
VersionDeltaFile
1.401+5-5sys/ufs/lfs/lfs_vfsops.c
+5-51 files

NetBSD/src PCWnpjjsys/dev/fdt fdt_pinctrl.c

   fdt_pinctrl: don't skip pinctrl entries

   Per the DT-bindings, pinctrl-n is a list of phandles, so a phandle every four bytes. If pinctrl-cells is more than one, the current code skips some phandles in the list since it advances by 4*pinctrl-cells bytes per entry.

   This part of the code should not need to touch pinctrl-cells at all. pinctrl-cells is only relevant for the pinmux entries *inside* the pin controller, not for pin controller consumers.

   This fixes the spi pinctrls on the am18xx.
VersionDeltaFile
1.11+4-4sys/dev/fdt/fdt_pinctrl.c
+4-41 files

NetBSD/src gFAuIbysys/arch/evbarm/conf GENERIC_V5

   evbarm/GENERIC_V5: enable pinctrl-single
VersionDeltaFile
1.13+4-3sys/arch/evbarm/conf/GENERIC_V5
+4-31 files

NetBSD/src wik3W9jsys/dev/fdt pinctrl_single.c

   pinctrl_simple: support bit-per-mux

   pinctrl-single,bit-per-mux is an alternate mode some devicetrees use.

   This enables using pinctrl_simple on the TI am18xx.
VersionDeltaFile
1.7+50-16sys/dev/fdt/pinctrl_single.c
+50-161 files

NetBSD/src TFjSJkVdoc CHANGES-11.1

   Tickets #443 - #445
VersionDeltaFile
1.1.2.10+19-1doc/CHANGES-11.1
+19-11 files

NetBSD/src 2sIYAr3sys/arch/x86/x86 identcpu.c

   Pull up following revision(s) (requested by andvar in ticket #445):

        sys/arch/x86/x86/identcpu.c: revision 1.143

   Temporarily disable SMAP for CPUVENDOR_IDT vendor CPUs (if available).

   SMAP feature causes a supervisor page fault during boot on KX-7000 CPUs.
   port-amd64/60641
VersionDeltaFile
1.138.2.3+9-2sys/arch/x86/x86/identcpu.c
+9-21 files

NetBSD/src evjj19sdoc CHANGES-10.2

   Ticket #1334
VersionDeltaFile
1.1.2.127+8-1doc/CHANGES-10.2
+8-11 files

NetBSD/src JEt1rgZsys/arch/x86/x86 identcpu.c, usr.sbin/cpuctl/arch i386.c

   Pull up following revision(s) (requested by andvar in ticket #1334):

        sys/arch/x86/x86/identcpu.c: revision 1.142
        usr.sbin/cpuctl/arch/i386.c: revision 1.149

   Decode L2 cache associativity for VIA CPUs using the AMD cache lookup table for
   the 0x80000006 CPUID function associativity value.

   Use `cpuid leaf 4' to get cache parameters for Zhaoxin and late VIA CPU models.

   VIA datasheets mention that associativity is stored as a decimal value. However,
   in practice, it is encoded the AMD way and does not store the actual value.

   Using the raw value leads to an incorrect CPU colors calculation, causing a
   panic on KX-7000 (since the result is not a power of two) and incorrect CPU
   colors values on other CPU models (e.g. as visible in `vmstat -s').

   Decoding value using the AMD cache lookup table produces correct values in all
   cases I have tested or verified using CPUID dumps available online.

    [31 lines not shown]
VersionDeltaFile
1.133.2.5+34-15usr.sbin/cpuctl/arch/i386.c
1.123.4.5+25-7sys/arch/x86/x86/identcpu.c
+59-222 files

NetBSD/src 6ZhvJOnsys/arch/x86/x86 identcpu.c, usr.sbin/cpuctl/arch i386.c

   Pull up following revision(s) (requested by andvar in ticket #444):

        sys/arch/x86/x86/identcpu.c: revision 1.142
        usr.sbin/cpuctl/arch/i386.c: revision 1.149

   Decode L2 cache associativity for VIA CPUs using the AMD cache lookup table for
   the 0x80000006 CPUID function associativity value.

   Use `cpuid leaf 4' to get cache parameters for Zhaoxin and late VIA CPU models.

   VIA datasheets mention that associativity is stored as a decimal value. However,
   in practice, it is encoded the AMD way and does not store the actual value.

   Using the raw value leads to an incorrect CPU colors calculation, causing a
   panic on KX-7000 (since the result is not a power of two) and incorrect CPU
   colors values on other CPU models (e.g. as visible in `vmstat -s').

   Decoding value using the AMD cache lookup table produces correct values in all
   cases I have tested or verified using CPUID dumps available online.

    [31 lines not shown]
VersionDeltaFile
1.148.2.1+34-15usr.sbin/cpuctl/arch/i386.c
1.138.2.2+25-7sys/arch/x86/x86/identcpu.c
+59-222 files

NetBSD/src EG21gP2sys/dev/ic bcmgenet.c

   Pull up following revision(s) (requested by joe in ticket #443):

        sys/dev/ic/bcmgenet.c: revision 1.25

   PR kern/60592

   properly move bits to ensure unicast bit and locally administered
   bits were rightly set.
VersionDeltaFile
1.22.2.1+8-6sys/dev/ic/bcmgenet.c
+8-61 files

NetBSD/src nCaCaMcsys/ufs/lfs lfs.h lfs_extern.h

   Remove the last vestiges of the freelist ordering code.  Addresses an issue
   observed in testing, also reported in PR kern/60523.
VersionDeltaFile
1.155+25-215sys/ufs/lfs/lfs_alloc.c
1.400+5-11sys/ufs/lfs/lfs_vfsops.c
1.132+2-3sys/ufs/lfs/lfs_extern.h
1.220+1-2sys/ufs/lfs/lfs.h
+33-2314 files

NetBSD/src Cn6DS1wsys/dev/ic sc16is7xxvar.h sc16is7xx.c


   Stop reusing sc_frequency as the workqueue arg.  In 11.99.3 or so,
   doing that wasn't a problem, but now it appears to be trouble doing
   that.  Just provide a dedicated variable.  The argument doesn't really
   matter to this use case, but it can't be something used for something
   else either.
VersionDeltaFile
1.6+4-3sys/dev/ic/sc16is7xx.c
1.3+2-1sys/dev/ic/sc16is7xxvar.h
+6-42 files

NetBSD/src G4vtbzEdoc CHANGES-10.2

   Tickets #1330 - #1332
VersionDeltaFile
1.1.2.126+20-1doc/CHANGES-10.2
+20-11 files

NetBSD/src s6fq9Wcusr.bin/xinstall xinstall.c

   Pull up following revision(s) (requested by kre in ticket #1330):

        usr.bin/xinstall/xinstall.c: revision 1.131 (patch)

   PR bin/58577  - install(1) -d issues

   Fix issues where "install -d" (with no directory) simply
   exit(0)s.   That one is kind of marginal, installing nothing
   when nothing is needed could be treated as OK, but the man
   page does indicate in the SYNOPSIS that with -d, at least
   one directory is needed (it says nothing at all about that
   in the text).

   Second, after creating a directory, if a later operation
   (chown, chmod) fails, that is not success, a warning was
   issued (good), a bad metalog was being created (bad).

   That is clearly a bug (though probably doesn't happen
   very often).

    [29 lines not shown]
VersionDeltaFile
1.126.6.1+25-12usr.bin/xinstall/xinstall.c
+25-121 files

NetBSD/src QWKDERXlib/libc/locale iswctype_mb.c runetable.c

   Pull up following revision(s) (requested by kre in ticket #1331):

        lib/libc/locale/runetable.c: revision 1.30
        lib/libc/locale/iswctype_mb.c: revision 1.15

   PR lib/59067 (wctrans got error member)

   Patches from the OP (ru_j217) and from RVP - see the PR

   This looks to be just correcting what appear to be simple
   errors in the code.
VersionDeltaFile
1.29.36.1+4-4lib/libc/locale/runetable.c
1.13.38.1+3-3lib/libc/locale/iswctype_mb.c
+7-72 files

NetBSD/src wgkQjpbexternal/mit/xorg/lib driver.old.mk driver.mk

   Pull up following revision(s) (requested by kre in ticket #1332):

        external/mit/xorg/lib/driver.old.mk: revision 1.3
        external/mit/xorg/lib/driver.mk: revision 1.10 (patch)

   PR xsrc/59858 (locale fixes for xsrc)

   From RVP - see the PR

   Oversimplifying: this causes Mesa to use LC_NUMERIC=C when using
   strtod() to parse stuff (ie: the radix char (decimal point) is '.',
   regardless of the user's locale).
VersionDeltaFile
1.2.2.1+2-1external/mit/xorg/lib/driver.old.mk
1.4.8.1+2-1external/mit/xorg/lib/driver.mk
+4-22 files

NetBSD/src x1TSBS9sys/nfs nfs_var.h nfs_export.c

   nfs: On reflection, just clamp the export_args buffer to 64 KiB.

   Keep it simple, just make sure userland doesn't trigger contiguous
   kva allocation of more than 64 KiB.

   PR kern/60645: nfssvc(2): arithmetic overflow in input array sizing
VersionDeltaFile
1.170+4-49sys/nfs/nfs_syscalls.c
1.65+2-9sys/nfs/nfs_export.c
1.99+1-2sys/nfs/nfs_var.h
+7-603 files

NetBSD/src fVdMCSpsbin/mount mount.8

   mount(8) - document the -o rw option.

   No idea how this one has been absent all this time, and not missed.
VersionDeltaFile
1.96+7-1sbin/mount/mount.8
+7-11 files

NetBSD/src 7ykN6eysbin/mount mount.8 mount.c

   mount(8) - add -W option (like df -W)

   Add a -W option to mount, to show wedge names as labels (NAME=xyzzy)
   instead of /dev/dkN (and if given twice, both forms), similar to the
   -W option in df(1).
VersionDeltaFile
1.109+38-13sbin/mount/mount.c
1.95+22-3sbin/mount/mount.8
+60-162 files

NetBSD/src iN9BRqSsys/nfs nfs_syscalls.c

   nfs: Work around missing VM_MIN/MAX_KERNEL_ADDRESS in rump.

   Let's get the builds unbroken before making this perfect.

   PR kern/60645: nfssvc(2): arithmetic overflow in input array sizing
VersionDeltaFile
1.169+3-6sys/nfs/nfs_syscalls.c
+3-61 files

NetBSD/src E3xReL5sys/uvm uvm_fault.c

   Kernels ALL/i386 and ALL/amd64 warn "'ticket' may be used uninitialized"
   at line 244, uvmfault_amapcopy(): "uvm_wait("fltamapcopy", ticket);".

   Restructure to reflect the logic better and keep GCC quiet.

   Ok: Taylor R Campbell

   PR kern/58964: uvm: missing wakeup on uvmexp.free
   PR kern/60029: panic: cpu0: softints stuck for 16 seconds
VersionDeltaFile
1.241+11-10sys/uvm/uvm_fault.c
+11-101 files

NetBSD/src 4ARDWxvsys/nfs nfs_syscalls.c

   nfs: Work around missing VM_MIN/MAX_KERNEL_ADDRESS on amd64 rump.

   PR kern/60645: nfssvc(2): arithmetic overflow in input array sizing
VersionDeltaFile
1.168+5-3sys/nfs/nfs_syscalls.c
+5-31 files