NetBSD/src aBHvhrJlibexec/ld.elf_so tls.c xmalloc.c

   ld.elf_so: Fix static TLS alignment on variant II platforms.

   Only affects obscure architectures like x86, though.

   Sprinkle assertions to make sure this breaks in other ways on other
   architectures too, like variant I, or variant II with _lwp_gettcb().
   Fair's fair, right?

   XXX We should consider verifying that every Elf_Phdr::p_align is
   reasonable (i.e., is a power of two, or is zero but only if p_memsz
   is also zero), and that p_filesz <= p_memsz, in headers.c for the
   main object and in map_object.c for other objects.

   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.30+80-9libexec/ld.elf_so/tls.c
1.28+4-2libexec/ld.elf_so/xmalloc.c
+84-112 files

NetBSD/src Zj8GSypdistrib/sets/lists/base shl.mi, distrib/sets/lists/comp mi

   bind: Conditionalize libraries on MKBIND.

   PR toolchain/60468: external/mpl/bind/lib: misuse of build_install,
   missing MKBIND conditionals
VersionDeltaFile
1.1047+17-17distrib/sets/lists/base/shl.mi
1.2527+11-11distrib/sets/lists/comp/mi
1.411+7-7distrib/sets/lists/debug/shl.mi
1.318+3-1lib/Makefile
+38-364 files

NetBSD/src HUqfI31sys/arch/sun68k/sun68k pmap_sunmmu.c

   Fix pmap_kcore_hdr() for the Sun2 case.
VersionDeltaFile
1.4+10-4sys/arch/sun68k/sun68k/pmap_sunmmu.c
+10-41 files

NetBSD/src HwX7mqYsys/arch/sun68k/sun68k pmap_sunmmu.c

   On second thought, don't use __mc68010__ throughout as a proxy for
   "is a Sun-2"; it's too easy to glance-misread #ifdef vs #ifndef.
   Instead, define IS_SUN2 and IS_SUN3 macros that statically evaluate
   to the right thing and use them throughout.
VersionDeltaFile
1.3+58-50sys/arch/sun68k/sun68k/pmap_sunmmu.c
+58-501 files

NetBSD/src rIBvJRNexternal/mpl/bind/lib Makefile.subdir Makefile, lib Makefile

   bind: Wire into lib/Makefile build_install properly.

   toolchain/60468: external/mpl/bind/lib: misuse of build_install,
   missing MKBIND conditionals
VersionDeltaFile
1.1+11-0external/mpl/bind/lib/Makefile.subdir
1.317+3-3lib/Makefile
1.6+2-3external/mpl/bind/lib/Makefile
+16-63 files

NetBSD/src 8H4FRcosys/arch/sun3/conf files.sun3, sys/arch/sun3/sun3 pmap.c

   Switch Sun3 to the merged Sun2/Sun3 pmap.
VersionDeltaFile
1.191+2-2sys/arch/sun3/sun3/pmap.c
1.93+2-2sys/arch/sun3/conf/files.sun3
+4-42 files

NetBSD/src gigVpw9sys/arch/sun68k/sun68k pmap_sunmmu.c

   Merge Sun2 changes into pmap_bootstrap().
VersionDeltaFile
1.2+114-15sys/arch/sun68k/sun68k/pmap_sunmmu.c
+114-151 files

NetBSD/src G140LgBdoc CHANGES-11.0

   Tickets #388 - #391
VersionDeltaFile
1.1.2.136+27-1doc/CHANGES-11.0
+27-11 files

NetBSD/src pFYjBLClibexec/ld.elf_so xmalloc.c rtld.c

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

        libexec/ld.elf_so/rtld.c: revision 1.228
        libexec/ld.elf_so/xmalloc.c: revision 1.27

   ld.elf_so: Fix reversed sense of previous change to ASSERT macro.

   Had tested the part of the change replacing botch("p") by botch(#p);
   then didn't test the change from `if (!(p)) botch(#p)' to
   `(__predict_false(p) ?  botch(#p) : (void)0)'.  Oops.

   Now I have tested this with MALLOC_DEBUG enabled in ld.elf_so.
   PR lib/59751: dlclose is not MT-safe depending on the libraries
   unloaded


   ld.elf_so: Set _rtld_objself.refcount = 1.

   This is the object for ld.elf_so itself.  It can be opened with

    [17 lines not shown]
VersionDeltaFile
1.12.44.3+3-3libexec/ld.elf_so/xmalloc.c
1.221.2.5+3-2libexec/ld.elf_so/rtld.c
+6-52 files

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

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

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

   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.6.1+2-1external/mit/xorg/lib/driver.old.mk
1.8.2.2+2-1external/mit/xorg/lib/driver.mk
+4-22 files

NetBSD/src RMktihpusr.bin/xinstall xinstall.c

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

        usr.bin/xinstall/xinstall.c: revision 1.131

   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).

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

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

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

        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.40.1+4-4lib/libc/locale/runetable.c
1.14.4.1+3-3lib/libc/locale/iswctype_mb.c
+7-72 files

NetBSD/src AB225vAlibexec/ld.elf_so search.c

   ld.elf_so: Fix assertion: obj may be NULL _or_ OBJ_ERR (-1) here

   NULL means the object wasn't found and we should keep searching;
   OBJ_ERR means the object was found but loading it failed and we
   should stop.  Only if the object is _neither_ NULL _nor_ OBJ_ERR is
   it expected to be an object with positive refcount.

   Followup for

   PR lib/59751: dlclose is not MT-safe depending on the libraries
   unloaded
VersionDeltaFile
1.29+3-3libexec/ld.elf_so/search.c
+3-31 files

NetBSD/src JGFpyszsys/arch/sun68k/sun68k pmap_sunmmu.c

   First crack at a merged Sun2/Sun3 pmap module.  Boots multi-user on
   Sun3, still needs pmap_bootstrap() differences from Sun2 to be merged.
VersionDeltaFile
1.1+4,044-0sys/arch/sun68k/sun68k/pmap_sunmmu.c
+4,044-01 files

NetBSD/src agJWHGGsys/arch/sun3/sun3 pmap.c

   pmap_copy_page(): Make sure to invalidate tmp_vpages[1], rather than
   tmp_vpages[0] twice.
VersionDeltaFile
1.190+3-3sys/arch/sun3/sun3/pmap.c
+3-31 files

NetBSD/src 7nlIWEDlibexec/ld.elf_so Makefile

   ld.elf_so: Flip on DEBUG in current.

   This enables assertions (and the LD_DEBUG environment variable).

   We can disable it in release branches to reduce performance impact,
   but let's not have the assertions bitrot in current.

   Prompted by diagnosing fallout from:

   PR lib/59751: dlclose is not MT-safe depending on the libraries
   unloaded
VersionDeltaFile
1.156+2-2libexec/ld.elf_so/Makefile
+2-21 files

NetBSD/src qU0N3Jtlibexec/ld.elf_so rtld.c

   ld.elf_so: Set _rtld_objself.refcount = 1.

   This is the object for ld.elf_so itself.  It can be opened with
   dlopen("/usr/libexec/ld.elf_so"), and paths downstream of that assert
   that the returned object has refcount > 0 to detect use-after-free
   mistakes in rtld.  Since ld.elf_so must never be unloaded, let's just
   make sure the reference count is always positive.

   (It's conceivable that one could dlopen an object with a DT_RPATH
   entry having "/usr/libexec" and a DT_NEEDED entry having "ld.elf_so",
   causing recursive loading of ld.elf_so -- and if one then dlcloses
   the same object, it might lead to trying to free _rtld_objself.  So
   perhaps _rtld_load_object should just increment the reference count
   of _rtld_objself itself.  But this is a simpler change that already
   fixes some existing tests -- such as any rump tests -- when used with
   an ld.elf_built with -DDEBUG.)

   Followup for:


    [2 lines not shown]
VersionDeltaFile
1.228+3-2libexec/ld.elf_so/rtld.c
+3-21 files

NetBSD/src AOUIzkMlibexec/ld.elf_so xmalloc.c

   ld.elf_so: Fix reversed sense of previous change to ASSERT macro.

   Had tested the part of the change replacing botch("p") by botch(#p);
   then didn't test the change from `if (!(p)) botch(#p)' to
   `(__predict_false(p) ?  botch(#p) : (void)0)'.  Oops.

   Now I have tested this with MALLOC_DEBUG enabled in ld.elf_so.

   PR lib/59751: dlclose is not MT-safe depending on the libraries
   unloaded
VersionDeltaFile
1.27+3-3libexec/ld.elf_so/xmalloc.c
+3-31 files

NetBSD/src S2RRsTrbin/sh jobs.c

   sh: Revert the -i/-m change

   This apparently breaks the automated installs.  I will need to
   look at it more closely (and it was such a trivial little change!)
VersionDeltaFile
1.130+3-3bin/sh/jobs.c
+3-31 files

NetBSD/src gWTg69qsys/arch/sun2/sun2 pmap.c

   Remove a no-longer-relevant comment.
VersionDeltaFile
1.63+2-4sys/arch/sun2/sun2/pmap.c
+2-41 files

NetBSD/src h3qsEfSdoc CHANGES-11.0

   Tickets #377 - #387, adjust dedication
VersionDeltaFile
1.1.2.135+167-2doc/CHANGES-11.0
+167-21 files

NetBSD/src jB7cPLAexternal/bsd/unbound/etc/rc.d unbound

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

        external/bsd/unbound/etc/rc.d/unbound: revision 1.4

   /etc/rc.d/unbound: Fix order of migration and trust anchor setup.

   Add some comments explaining the order, and make sure we propagate
   various failures back to the caller.

   Based on a patch by Erik LaBine.

   PR bin/60447: unbound rc.d fails on fresh install before
   configuration migration can run
VersionDeltaFile
1.2.18.2+20-9external/bsd/unbound/etc/rc.d/unbound
+20-91 files

NetBSD/src 94qkyLhdoc 3RDPARTY

   Apply patch, requested by kre in ticket #387:

        doc/3RDPARTY

   Note update to tzdata2026cgtz.
VersionDeltaFile
1.2126.2.15+4-4doc/3RDPARTY
+4-41 files

NetBSD/src gFoOshdexternal/public-domain/tz/dist africa northamerica

   Pull up the following, requested by kre in ticket #387:

        external/public-domain/tz/dist/Makefile         up to 1.6
        external/public-domain/tz/dist/NEWS             up to 1.8
        external/public-domain/tz/dist/TZDATA_VERSION   up to 1.46
        external/public-domain/tz/dist/africa           up to 1.4
        external/public-domain/tz/dist/australasia      up to 1.13
        external/public-domain/tz/dist/europe           up to 1.6
        external/public-domain/tz/dist/leap-seconds.list up to 1.12
        external/public-domain/tz/dist/leapseconds      up to 1.12
        external/public-domain/tz/dist/northamerica     up to 1.7
        external/public-domain/tz/dist/theory.html      up to 1.6
        external/public-domain/tz/dist/version          up to 1.19
        external/public-domain/tz/dist/ziguard.awk      up to 1.1.1.12
        external/public-domain/tz/dist/zone.tab         up to 1.6
        external/public-domain/tz/dist/zone1970.tab     up to 1.7
        external/public-domain/tz/dist/zonenow.tab      up to 1.8

   Import tzdata2026cgtz
VersionDeltaFile
1.2.2.2+32-159external/public-domain/tz/dist/africa
1.4.2.3+107-14external/public-domain/tz/dist/northamerica
1.4.2.3+70-7external/public-domain/tz/dist/NEWS
1.3.2.2+17-28external/public-domain/tz/dist/Makefile
1.3.2.2+14-7external/public-domain/tz/dist/europe
1.3.2.2+9-9external/public-domain/tz/dist/theory.html
+249-2249 files not shown
+272-24415 files

NetBSD/src AcgcFaylibexec/ld.elf_so rtld.c, tests/libexec/ld.elf_so t_dlclose_thread.c

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

        tests/libexec/ld.elf_so/helper_recurdso2/Makefile: revision 1.1
        distrib/sets/lists/tests/shl.mi: revision 1.18
        tests/libexec/ld.elf_so/t_dlclose_thread.c: revision 1.4
        tests/libexec/ld.elf_so/t_dlclose_thread.c: revision 1.5
        tests/libexec/ld.elf_so/t_dlclose_thread.c: revision 1.6
        libexec/ld.elf_so/rtld.c: revision 1.227
        libexec/ld.elf_so/xmalloc.c: revision 1.26
        tests/libexec/ld.elf_so/helper_recurdso/Makefile: revision 1.1
        tests/libexec/ld.elf_so/Makefile: revision 1.36
        libexec/ld.elf_so/rtld.h: revision 1.157
        tests/libexec/ld.elf_so/helper_recurdso/h_helper_recurdso.c: revision 1.1
        tests/libexec/ld.elf_so/helper_recurdso2/h_helper_recurdso2.c: revision 1.1
        distrib/sets/lists/debug/shl.mi: revision 1.410
        libexec/ld.elf_so/reloc.c: revision 1.122

   t_dlclose_thread: Test recursive dlopen/dlclose too.


    [107 lines not shown]
VersionDeltaFile
1.221.2.4+186-33libexec/ld.elf_so/rtld.c
1.1.2.4+143-21tests/libexec/ld.elf_so/t_dlclose_thread.c
1.1.2.2+61-0tests/libexec/ld.elf_so/helper_recurdso2/h_helper_recurdso2.c
1.1.2.1+0-61tests/libexec/ld.elf_so/helper_recurdso2/h_helper_recurdso2.c
1.1.2.1+0-57tests/libexec/ld.elf_so/helper_recurdso/h_helper_recurdso.c
1.1.2.2+57-0tests/libexec/ld.elf_so/helper_recurdso/h_helper_recurdso.c
+447-17210 files not shown
+502-20516 files

NetBSD/src aQz8jcpbin/sh jobs.c

   /bin/sh - fix a comment

   The showjobs() function once (long ago) had a parameter "change"
   which caused it to only show jobs whose status had altered since the
   last call.  It has since (in 2002) had that parameter's name changed
   to "mode" and become a bit field, one of the bits of which is
   SHOW_CHANGED, which when set does what the old change parameter did.

   However, the comment that describes the function wasn't updated to match.

   Now it has been.    NFC.
VersionDeltaFile
1.129+4-4bin/sh/jobs.c
+4-41 files

NetBSD/src TE8C6P2sys/arch/sparc/conf GENERIC, sys/dev/sbus if_gem_sbus.c

   Pull up following revision(s) (requested by thorpej in ticket #385):

        sys/arch/sparc/conf/GENERIC: revision 1.277
        sys/dev/sbus/if_gem_sbus.c: revision 1.16

   Adapt the SBus config register for 32-bit SPARC systems and enable
   GEM Ethernet in the GENERIC SPARC configuration.

   From Erik LaBine.

   PR kern/60453
VersionDeltaFile
1.14.12.1+11-4sys/dev/sbus/if_gem_sbus.c
1.275.2.2+5-2sys/arch/sparc/conf/GENERIC
+16-62 files

NetBSD/src lg1hrEDsys/arch/sparc/sparc iommu.c

   Pull up following revision(s) (requested by thorpej in ticket #384):

        sys/arch/sparc/sparc/iommu.c: revision 1.103

   Add support for bus_dmamap_load_mbuf(), needed to support GEM Ethernet.

   From Erik LaBine.

   PR kern/60453
VersionDeltaFile
1.102.4.1+60-24sys/arch/sparc/sparc/iommu.c
+60-241 files

NetBSD/src LrPWwv4bin/sh sh.1 jobs.c

   /bin/sh - minor -i & -m changes

   When enabling job control (set -m) at the top level (not in any kind
   of subshell) in a non-interactive shell, sh would sometimes send itself
   a SIGTTIN (suspending itself) if it was unable to grab the controlling
   terminal.   Only interactive shells should be concerned with that,
   so an interactive sh placed in the background, trying to manipulate
   the controlling tty will simply suspend, until it is resumed in fg.
   Scripts shouldn't need to care.

   So only do controlling tty manipulation in interactive shells (-i is set).

   While here, clean up the manual description of the -i flag, setting it on
   the command line does not always make a shell interactive (the shell will
   simply clear it if it is inappropriate), but clearing it (+i) always
   prevents the shell becoming interactive.   Manipulating it later using
   'set' (which is a non-standard usage) is not recommended, and can cause
   the shell to behave in unexpected ways, so advise against attempts to
   do so (in the manual).

    [3 lines not shown]
VersionDeltaFile
1.279+13-2bin/sh/sh.1
1.128+3-3bin/sh/jobs.c
+16-52 files

NetBSD/src ddjL9nedoc CHANGES-10.2

   Tickets #1311 - #1313
VersionDeltaFile
1.1.2.115+58-1doc/CHANGES-10.2
+58-11 files