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
xclipboard: update to 1.1.6.
Alan Coopersmith (8):
Print usage message for unknown arguments
Add -help and -version options
Improve man page formatting
man pages: fix warnings from `mandoc -T lint` and `groff -rCHECKSTYLE=10`
gitlab CI: drop the ci-fairy check-mr job
Strip trailing whitespace from source files
meson: Add option to build with meson
xclipboard 1.1.6
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
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]
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
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!)
xmodmap: update to 1.0.12.
Alan Coopersmith (13):
gitlab CI: stop requiring Signed-off-by in commits
Remove "All rights reserved" from Oracle copyright notices
Assume target platforms have strncasecmp now
Use _strnicmp() instead of strncasecmp() on Windows
Accept --help & --version as aliases to -help & -version
Improve man page text & formatting
Strip trailing whitespace from source files
parse_keysym: handle possible NULL return from copy_to_scratch()
gitlab CI: drop the ci-fairy check-mr job
handle.c: handle -Wuse-after-free warning from gcc 15
meson: Add option to build with meson
meson: include headers when checking for functions
xmodmap 1.0.12
Bjarni Ingi Gislason (1):
xmodmap.1: Some editorial changes for this man page [Debian bug #1094313]
xwininfo: update to 1.1.7.
Alan Coopersmith (9):
-help should exit(0) not (1)
Accept --help & --version as aliases to -help & -version
Improve man page formatting
man page: fix warnings from `mandoc -T lint` and `groff -rCHECKSTYLE=10`
gitlab CI: drop the ci-fairy check-mr job
configure: remove local copy of config.rpath
meson: Add option to build with meson
meson: include headers when checking for functions
xwininfo 1.1.7
Santiago Mola (3):
Fix memory leak in Display_Window_Id
Fix memory leak in Select_Window
Use stdbool.h
積丹尼 Dan Jacobson (1):
Update xwininfo.man for #2
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
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
/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.
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
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
/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]
Pull up following revision(s) (requested by riastradh in ticket #1313):
sys/arch/xen/xen/xbd_xenbus.c: revision 1.136
xbd(4): Don't assert about indirect blocks if not supported.
PR port-xen/60448: xl suspend: panic: kernel diagnostic assertion
"incnt == __arraycount(sc->sc_indirect)" failed
Pull up following revision(s) (requested by riastradh in ticket #383):
sys/arch/xen/xen/xbd_xenbus.c: revision 1.136
xbd(4): Don't assert about indirect blocks if not supported.
PR port-xen/60448: xl suspend: panic: kernel diagnostic assertion
"incnt == __arraycount(sc->sc_indirect)" failed
Pull up following revision(s) (requested by kbowling in ticket #380):
sys/netinet/tcp_timer.h: revision 1.31
sys/netinet/tcp_subr.c: revision 1.300
tcp: set initial RTO to 1s per RFC 6298
Lower TCPTV_SRTTDFLT from 3s to 1s and adjust the t_rttvar seed in
tcp_tcpcb_template() so the pre-measurement TCP_REXMTVAL() equals
TCPTV_SRTTDFLT (was 2*TCPTV_SRTTDFLT). Active opens and SYN|ACK
retransmits now start at 1s and back off 1, 2, 4, ... per RFC 6298
sections 2.1 and 5.5. Post-first-sample RTO is unchanged.
Pin tcp_msl_remote_threshold to its previous numeric default (3*PR_SLOWHZ)
so the SRTTDFLT change does not move an unrelated TIME_WAIT-shortening
tunable.
This is conceptually https://reviews.freebsd.org/D18941 which we ran at a
large CDN, modified for NetBSD's stack.
Pull up following revision(s) (requested by riastradh in ticket #1312):
sys/kern/kern_event.c: revision 1.153
kqueue(2): Fix null pointer deref under memory pressure.
PR kern/60436: kqueue(2): random kernel null pointer deref in
EVFILT_PROC NOTE_TRACK
Pull up following revision(s) (requested by riastradh in ticket #379):
sys/kern/kern_event.c: revision 1.153
kqueue(2): Fix null pointer deref under memory pressure.
PR kern/60436: kqueue(2): random kernel null pointer deref in
EVFILT_PROC NOTE_TRACK