NetBSD/src EFoiHpMsys/uvm uvm_km.c

   uvm_km_pgremove: pmap_update before freeing pages

   Update the commentary in uvm_km_free to reflect this reality while here

   Reviewd by skrll@

   PR kern/60376
VersionDeltaFile
1.168+6-4sys/uvm/uvm_km.c
+6-41 files

NetBSD/src nAQ89UJdoc CHANGES-9.5

   Remove entries for #2018 and #2019, they have been undone temporarily.
VersionDeltaFile
1.1.2.105+1-23doc/CHANGES-9.5
+1-231 files

NetBSD/src f6Ckb8Dexternal/cddl/osnet/dist/lib/libuutil/common uu_avl.c uu_list.c, lib/libc/gen arc4random.c

   Undo ticket #2018 for now, needs more work
VersionDeltaFile
1.59.16.2+2-16lib/libc/stdlib/malloc.c
1.1.1.2.4.2+0-12external/cddl/osnet/dist/lib/libuutil/common/uu_avl.c
1.1.1.1.48.2+0-12external/cddl/osnet/dist/lib/libuutil/common/uu_list.c
1.4.4.2+1-6external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c
1.1.1.1.48.2+0-2external/cddl/osnet/dist/lib/libuutil/common/libuutil_impl.h
1.31.18.2+1-1lib/libc/gen/arc4random.c
+4-496 files

NetBSD/src G7OxhMYsys/kern uipc_usrreq.c, tests/net/net t_unix.c

   Undo ticket #2019 for now, needs more work
VersionDeltaFile
1.18.2.2+3-94tests/net/net/t_unix.c
1.194.2.4+2-2sys/kern/uipc_usrreq.c
+5-962 files

NetBSD/src DqQmmDgtests/lib/libc/locale t_mbstowcs.c t_mbrtowc.c

   t_mbstowcs: Mark UTF-8 test cases xfail.

   mbrtowc fails to reject invalid (legacy 5/6-byte) UTF-8.

   Need to split this test up into:

   1. correctly decoding the valid inputs
   2. correctly rejecting the invalid inputs

   Also don't stop at the first failing test in t_mbrtowc; keep going to
   test everything, for better diagnostics at the end in the test
   report.

   As with t_mbrtowc, this should be split into multiple parts, TBD.

   PR lib/60369: mbrtowc, mbrlen have wrong return value for some
   invalid byte sequences: Invalid sequence
VersionDeltaFile
1.4+33-13tests/lib/libc/locale/t_mbstowcs.c
1.4+4-3tests/lib/libc/locale/t_mbrtowc.c
+37-162 files

NetBSD/src qXdoLbCsys/dev mm.c

   mm(4): Only grant kva exposure if user opens /dev/kmem.

   Don't apply the same to /dev/null, /dev/zero, or anything else.

   PR kern/60374: opening /dev/null exposes kva
VersionDeltaFile
1.26+6-3sys/dev/mm.c
+6-31 files

NetBSD/src wAChPHzsys/compat/netbsd32 netbsd32_socket.c

   compat32: Fix accidental use of error branch in recvmsg(2).

   Avoids use-after-free / double-free.

   PR kern/60373: compat32: kernel use-after-free in recvmsg
VersionDeltaFile
1.57+4-3sys/compat/netbsd32/netbsd32_socket.c
+4-31 files

NetBSD/src SrVi9krdoc CHANGES-9.5

   Tickets #2014 - #2022, #2004
VersionDeltaFile
1.1.2.104+85-1doc/CHANGES-9.5
+85-11 files

NetBSD/src 75uQnYXlib/libnvmm libnvmm.c

   Pull up following revision(s) (requested by nia in ticket #2004):

        lib/libnvmm/libnvmm.c: revision 1.21 (patch)

   libnvmm(3): Check return value of malloc.

   adapted from a patch by Aaron LI at DragonflyBSD, commit id
   7c543ef0a3b08473f10dcc066e531c459fbc3879
VersionDeltaFile
1.14.4.2+11-4lib/libnvmm/libnvmm.c
+11-41 files

NetBSD/src G56XgMOsys/uvm uvm_km.c

   Pull up following revision(s) (requested by kbowling in ticket #2022):

        sys/uvm/uvm_km.c: revision 1.167

   uvm_km_pgremove_intrsafe: drain TLB shootdown before freeing pages

   Call pmap_update(pmap_kernel()) between pmap_kremove and the page
   free so the shootdown completes first.

   Reviewed by skrll@
VersionDeltaFile
1.146.4.1+3-2sys/uvm/uvm_km.c
+3-21 files

NetBSD/src ybldGCndoc CHANGES-10.2

   Tickets #1273 - #1274, #1276 - #1292
VersionDeltaFile
1.1.2.103+2,986-1doc/CHANGES-10.2
+2,986-11 files

NetBSD/src zJiji9ksys/uvm uvm_km.c

   Pull up following revision(s) (requested by kbowling in ticket #1292):

        sys/uvm/uvm_km.c: revision 1.167

   uvm_km_pgremove_intrsafe: drain TLB shootdown before freeing pages

   Call pmap_update(pmap_kernel()) between pmap_kremove and the page
   free so the shootdown completes first.

   Reviewed by skrll@
VersionDeltaFile
1.162.4.2+3-2sys/uvm/uvm_km.c
+3-21 files

NetBSD/src hIaHxcvdoc CHANGES-11.0

   Tickets #313 - #315, #317, #318, #325, #326, #328 - #334,
   #338 - #343, #345
VersionDeltaFile
1.1.2.107+601-1doc/CHANGES-11.0
+601-11 files

NetBSD/src Sn51iGdsys/uvm uvm_km.c

   Pull up following revision(s) (requested by kbowling in ticket #345):

        sys/uvm/uvm_km.c: revision 1.167

   uvm_km_pgremove_intrsafe: drain TLB shootdown before freeing pages

   Call pmap_update(pmap_kernel()) between pmap_kremove and the page
   free so the shootdown completes first.

   Reviewed by skrll@
VersionDeltaFile
1.166.2.1+3-2sys/uvm/uvm_km.c
+3-21 files

NetBSD/src V9vkyB9distrib/sets/lists/debug mi, distrib/sets/lists/tests mi

   lua(4): Fix and test some issues.

   - Require read permission for LUAINFO.
   - Require write permission for all others:
     . LUACREATE
     . LUADESTROY
     . LUALOAD
     . LUAREQUIRE
   - Don't panic in LUAINFO if there's zero states.
   - Add missing sys/stdbool.h in sys/lua.h.

   This is not a real test suite for lua.kmod -- it doesn't verify the
   module does anything useful; it just verifies that _if_ you go out of
   your way to load the experimental kernel module, it doesn't enable
   unprivileged users to wreak havoc with /dev/lua.

   PR misc/60375: lua.kmod enables local privilege escalation
VersionDeltaFile
1.1+233-0tests/kernel/t_lua.c
1.29+13-1sys/modules/lua/lua.c
1.10+3-1sys/sys/lua.h
1.1422+2-1distrib/sets/lists/tests/mi
1.97+2-1tests/kernel/Makefile
1.514+2-1distrib/sets/lists/debug/mi
+255-56 files

NetBSD/src tgpDYL5usr.sbin/sysinst msg.mi.es msg.mi.en

   Pull up following revision(s) (requested by nia in ticket #343):

        usr.sbin/sysinst/msg.mi.es: revision 1.51
        usr.sbin/sysinst/msg.mi.en: revision 1.61
        usr.sbin/sysinst/msg.mi.fr: revision 1.54
        usr.sbin/sysinst/msg.mi.pl: revision 1.57

   sysinst(8): fix typo in recent addition to msg files
VersionDeltaFile
1.44.2.4+2-2usr.sbin/sysinst/msg.mi.es
1.54.2.4+2-2usr.sbin/sysinst/msg.mi.en
1.48.2.3+2-2usr.sbin/sysinst/msg.mi.fr
1.50.2.4+2-2usr.sbin/sysinst/msg.mi.pl
+8-84 files

NetBSD/src RmI74I4distrib/sets/lists/debug mi, distrib/sets/lists/tests mi

   Pull up following revision(s) (requested by riastradh in ticket #2021):

        distrib/sets/lists/tests/mi: revision 1.1404
        libexec/ld.elf_so/headers.c: revision 1.76
        tests/libexec/ld.elf_so/t_dladdr.c: revision 1.1
        tests/libexec/ld.elf_so/t_dladdr.c: revision 1.2
        tests/libexec/ld.elf_so/Makefile: revision 1.31
        distrib/sets/lists/debug/mi: revision 1.493

   dl_addr(3): Add some automatic tests.

   XXX Should also test the libc stubs, maybe move this into
   tests/lib/libc/dlfcn and test both static and (for MKPIC=yes)
   dynamic, but this'll do for now.
   PR lib/59567: dladdr(3) doesn't work properly especially when main
   executable is loaded at high memory address


   dladdr(3): Fix determination of object address intervals.

    [26 lines not shown]
VersionDeltaFile
1.2.6.2+171-0tests/libexec/ld.elf_so/t_dladdr.c
1.2.6.1+0-171tests/libexec/ld.elf_so/t_dladdr.c
1.65.2.3+8-4libexec/ld.elf_so/headers.c
1.10.2.3+4-1tests/libexec/ld.elf_so/Makefile
1.818.2.10+2-1distrib/sets/lists/tests/mi
1.285.2.12+2-1distrib/sets/lists/debug/mi
+187-1786 files

NetBSD/src v84pRynetc MAKEDEV.tmpl

   MAKEDEV: Set default perms on /dev/lua to 0600.

   Otherwise unprivileged users can submit Lua code into the kernel, if
   lua.kmod is loaded (which doesn't happen by default, not even
   autoloaded on demand).

   PR misc/60375: lua.kmod enables local privilege escalation
VersionDeltaFile
1.239+2-2etc/MAKEDEV.tmpl
+2-21 files

NetBSD/src ci93zdQdistrib/sets/lists/debug mi, distrib/sets/lists/tests mi

   Pull up following revision(s) (requested by riastradh in ticket #1291):

        distrib/sets/lists/tests/mi: revision 1.1404
        libexec/ld.elf_so/headers.c: revision 1.76
        tests/libexec/ld.elf_so/t_dladdr.c: revision 1.1
        tests/libexec/ld.elf_so/t_dladdr.c: revision 1.2
        tests/libexec/ld.elf_so/Makefile: revision 1.31
        distrib/sets/lists/debug/mi: revision 1.493

   dl_addr(3): Add some automatic tests.

   XXX Should also test the libc stubs, maybe move this into
   tests/lib/libc/dlfcn and test both static and (for MKPIC=yes)
   dynamic, but this'll do for now.
   PR lib/59567: dladdr(3) doesn't work properly especially when main
   executable is loaded at high memory address


   dladdr(3): Fix determination of object address intervals.

    [26 lines not shown]
VersionDeltaFile
1.2.4.2+171-0tests/libexec/ld.elf_so/t_dladdr.c
1.2.4.1+0-171tests/libexec/ld.elf_so/t_dladdr.c
1.70.2.2+8-4libexec/ld.elf_so/headers.c
1.12.4.3+3-1tests/libexec/ld.elf_so/Makefile
1.1238.2.22+2-1distrib/sets/lists/tests/mi
1.394.2.18+2-1distrib/sets/lists/debug/mi
+186-1786 files

NetBSD/src wlUZZh8usr.bin/mail mail.1

   Pull up following revision(s) (requested by riastradh in ticket #2020):

        usr.bin/mail/mail.1: revision 1.70

   mail(1): document "list" command

   Provide courtesy xrefs to "headers" and "z".
   PR bin/59671
VersionDeltaFile
1.65.2.3+11-1usr.bin/mail/mail.1
+11-11 files

NetBSD/src wTVaOjNusr.bin/mail mail.1

   Pull up following revision(s) (requested by riastradh in ticket #1290):

        usr.bin/mail/mail.1: revision 1.70

   mail(1): document "list" command

   Provide courtesy xrefs to "headers" and "z".
   PR bin/59671
VersionDeltaFile
1.69.2.1+11-1usr.bin/mail/mail.1
+11-11 files

NetBSD/src ZYerIliusr.bin/mail mail.1

   Pull up following revision(s) (requested by riastradh in ticket #342):

        usr.bin/mail/mail.1: revision 1.70

   mail(1): document "list" command

   Provide courtesy xrefs to "headers" and "z".
   PR bin/59671
VersionDeltaFile
1.69.6.1+11-1usr.bin/mail/mail.1
+11-11 files

NetBSD/src T2H6QQQsys/kern uipc_usrreq.c, tests/net/net t_unix.c

   Pull up following revision(s) (requested by riastradh in ticket #2019):

        tests/net/net/t_unix.c: revision 1.26
        tests/net/net/t_unix.c: revision 1.27
        tests/net/net/t_unix.c: revision 1.28
        sys/kern/uipc_usrreq.c: revision 1.208

   t_unix: Sort includes.
   No functional change intended.
   Preparation for:
   PR kern/59220: accept(2): null pointer deref


   t_unix: Make existing tests more reliable by exiting in child.
   Returning into atf in the child is not helpful.
   Preparation for adding a test for:
   PR kern/59220: accept(2): null pointer deref



    [17 lines not shown]
VersionDeltaFile
1.18.2.1+96-5tests/net/net/t_unix.c
1.194.2.3+4-4sys/kern/uipc_usrreq.c
+100-92 files

NetBSD/src j4QGM1lsys/kern uipc_usrreq.c, tests/net/net t_unix.c

   Pull up following revision(s) (requested by riastradh in ticket #1289):

        tests/net/net/t_unix.c: revision 1.26
        tests/net/net/t_unix.c: revision 1.27
        tests/net/net/t_unix.c: revision 1.28
        sys/kern/uipc_usrreq.c: revision 1.208

   t_unix: Sort includes.
   No functional change intended.
   Preparation for:
   PR kern/59220: accept(2): null pointer deref


   t_unix: Make existing tests more reliable by exiting in child.
   Returning into atf in the child is not helpful.
   Preparation for adding a test for:
   PR kern/59220: accept(2): null pointer deref



    [17 lines not shown]
VersionDeltaFile
1.25.2.1+97-6tests/net/net/t_unix.c
1.203.4.1+4-4sys/kern/uipc_usrreq.c
+101-102 files

NetBSD/src A3rgkM3external/cddl/osnet/dist/lib/libuutil/common uu_list.c uu_avl.c, lib/libc/gen arc4random.c

   Pull up following revision(s) (requested by riastradh in ticket #2018):

        external/cddl/osnet/dist/lib/libuutil/common/uu_list.c: revision 1.2
        lib/libc/gen/arc4random.c: revision 1.51
        external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c: revision 1.5
        lib/libbsdmalloc/malloc.c: revision 1.13
        external/cddl/osnet/dist/lib/libuutil/common/uu_avl.c: revision 1.2
        external/cddl/osnet/dist/lib/libuutil/common/libuutil_impl.h: revision 1.2
        lib/libc/stdlib/malloc.c: revision 1.61
        (all via patch)

   arc4random(3): Use mutex_init, not mutex_unlock, in child post-fork.

   Using mutex_unlock may try to wake a thread that doesn't exist in the
   child, which could lead to trouble such as crash or deadlock.  But
   since the child is single-threaded, it is safe to just reinitialize
   the mutex memory anyway.

   PR lib/59237: postfork mutex audit: mutex_init, not mutex_unlock

    [24 lines not shown]
VersionDeltaFile
1.59.16.1+16-2lib/libc/stdlib/malloc.c
1.1.1.1.48.1+12-0external/cddl/osnet/dist/lib/libuutil/common/uu_list.c
1.1.1.2.4.1+12-0external/cddl/osnet/dist/lib/libuutil/common/uu_avl.c
1.4.4.1+6-1external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c
1.31.18.1+3-3lib/libc/gen/arc4random.c
1.1.1.1.48.1+2-0external/cddl/osnet/dist/lib/libuutil/common/libuutil_impl.h
+51-66 files

NetBSD/src 1cHs5wqexternal/cddl/osnet/dist/lib/libuutil/common uu_avl.c uu_list.c, lib/libbsdmalloc malloc.c

   Pull up following revision(s) (requested by riastradh in ticket #1288):

        external/cddl/osnet/dist/lib/libuutil/common/uu_list.c: revision 1.2
        lib/libc/gen/arc4random.c: revision 1.51
        external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c: revision 1.5
        lib/libbsdmalloc/malloc.c: revision 1.13
        external/cddl/osnet/dist/lib/libuutil/common/uu_avl.c: revision 1.2
        external/cddl/osnet/dist/lib/libuutil/common/libuutil_impl.h: revision 1.2
        lib/libc/stdlib/malloc.c: revision 1.61

   arc4random(3): Use mutex_init, not mutex_unlock, in child post-fork.

   Using mutex_unlock may try to wake a thread that doesn't exist in the
   child, which could lead to trouble such as crash or deadlock.  But
   since the child is single-threaded, it is safe to just reinitialize
   the mutex memory anyway.

   PR lib/59237: postfork mutex audit: mutex_init, not mutex_unlock
   libbsdmalloc: Use mutex_init, not mutex_unlock, in child post-fork.

    [23 lines not shown]
VersionDeltaFile
1.60.6.1+10-3lib/libc/stdlib/malloc.c
1.1.1.2.12.1+12-0external/cddl/osnet/dist/lib/libuutil/common/uu_avl.c
1.1.1.1.56.1+12-0external/cddl/osnet/dist/lib/libuutil/common/uu_list.c
1.4.12.1+6-1external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c
1.2.106.3+3-3lib/libbsdmalloc/malloc.c
1.33.2.2+3-3lib/libc/gen/arc4random.c
+46-101 files not shown
+48-107 files

NetBSD/src wt9NVaQexternal/cddl/osnet/dist/lib/libuutil/common uu_avl.c uu_list.c, lib/libbsdmalloc malloc.c

   Pull up following revision(s) (requested by riastradh in ticket #341):

        external/cddl/osnet/dist/lib/libuutil/common/uu_list.c: revision 1.2
        lib/libc/gen/arc4random.c: revision 1.51
        external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c: revision 1.5
        lib/libbsdmalloc/malloc.c: revision 1.13
        external/cddl/osnet/dist/lib/libuutil/common/uu_avl.c: revision 1.2
        external/cddl/osnet/dist/lib/libuutil/common/libuutil_impl.h: revision 1.2
        lib/libc/stdlib/malloc.c: revision 1.61

   arc4random(3): Use mutex_init, not mutex_unlock, in child post-fork.

   Using mutex_unlock may try to wake a thread that doesn't exist in the
   child, which could lead to trouble such as crash or deadlock.  But
   since the child is single-threaded, it is safe to just reinitialize
   the mutex memory anyway.

   PR lib/59237: postfork mutex audit: mutex_init, not mutex_unlock
   libbsdmalloc: Use mutex_init, not mutex_unlock, in child post-fork.

    [23 lines not shown]
VersionDeltaFile
1.60.10.1+10-3lib/libc/stdlib/malloc.c
1.1.1.2.16.1+12-0external/cddl/osnet/dist/lib/libuutil/common/uu_avl.c
1.1.1.1.60.1+12-0external/cddl/osnet/dist/lib/libuutil/common/uu_list.c
1.4.16.1+6-1external/cddl/osnet/dist/lib/libuutil/common/uu_misc.c
1.50.2.1+3-3lib/libc/gen/arc4random.c
1.11.2.2+3-3lib/libbsdmalloc/malloc.c
+46-101 files not shown
+48-107 files

NetBSD/src lW5u4UMdistrib/sets/lists/comp mi, lib/libbsdmalloc malloc.c bsdmalloc.3

   Pull up following revision(s) (requested by riastradh in ticket #1286):

        lib/libbsdmalloc/bsdmalloc.3: revision 1.1
        lib/libbsdmalloc/bsdmalloc.3: revision 1.2
        lib/libbsdmalloc/bsdmalloc.3: revision 1.3
        distrib/sets/lists/base/shl.mi: revision 1.952
        tests/lib/libc/stdlib/t_posix_memalign.c: revision 1.8
        lib/libbsdmalloc/malloc.c: revision 1.3
        lib/libbsdmalloc/malloc.c: revision 1.4
        lib/libbsdmalloc/malloc.c: revision 1.5
        lib/libbsdmalloc/malloc.c: revision 1.10
        lib/libbsdmalloc/malloc.c: revision 1.6
        lib/libbsdmalloc/malloc.c: revision 1.11
        lib/libbsdmalloc/malloc.c: revision 1.7
        lib/libbsdmalloc/malloc.c: revision 1.8
        lib/libbsdmalloc/malloc.c: revision 1.9
        lib/libbsdmalloc/shlib_version: revision 1.2
        distrib/sets/lists/debug/shl.mi: revision 1.313
        distrib/sets/lists/comp/mi: revision 1.2434

    [61 lines not shown]
VersionDeltaFile
1.2.106.2+140-33lib/libbsdmalloc/malloc.c
1.3.6.2+86-0lib/libbsdmalloc/bsdmalloc.3
1.3.6.1+0-86lib/libbsdmalloc/bsdmalloc.3
1.5.10.2+11-24tests/lib/libc/stdlib/t_posix_memalign.c
1.4.42.1+10-4lib/libbsdmalloc/Makefile
1.2425.2.14+4-1distrib/sets/lists/comp/mi
+251-1483 files not shown
+257-1539 files

NetBSD/src ZHA6IJWlib/libbsdmalloc malloc.c

   Pull up following revision(s) (requested by riastradh in ticket #1287):

        lib/libbsdmalloc/malloc.c: revision 1.12

   ensure the lock is released for all returns in malloc
VersionDeltaFile
1.2.106.1+8-7lib/libbsdmalloc/malloc.c
+8-71 files

NetBSD/src WIAlPyGlib/libbsdmalloc malloc.c

   Pull up following revision(s) (requested by riastradh in ticket #340):

        lib/libbsdmalloc/malloc.c: revision 1.12

   ensure the lock is released for all returns in malloc
VersionDeltaFile
1.11.2.1+8-7lib/libbsdmalloc/malloc.c
+8-71 files