FreeBSD/src 9d85292. UPDATING, bin/pwait pwait.1

Bump dates

Fixes:          c8f5e6819d4d ("pwait: Optionally wait until process is reaped")
Fixes:          eddd8aa99ca8 ("pwait: Add a SIGINFO handler")
Fixes:          356d0b79cf6f ("rc.subr: Fix premature return from wait_for_pids")
DeltaFile
+1-1UPDATING
+1-1bin/pwait/pwait.1
+1-1lib/libsys/kqueue.2
+3-33 files

FreeBSD/src 356d0b7. UPDATING, libexec/rc rc.subr

rc.subr: Fix premature return from wait_for_pids

Use pwait's new -r option to wait until the target processes have not
only terminated, but also been reaped.

PR:             293183
MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D58391
DeltaFile
+6-14libexec/rc/tests/rc_subr_test.sh
+12-0UPDATING
+2-2libexec/rc/rc.subr
+20-163 files

FreeBSD/src e115066bin/pwait/tests pwait_reap.c Makefile

pwait: Test the new -r option

Test that pwait without -r reports a process as soon as it terminates,
while pwait with -r does not report it until it has been reaped.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D58385
DeltaFile
+188-0bin/pwait/tests/pwait_reap.c
+1-0bin/pwait/tests/Makefile
+189-02 files

FreeBSD/src eddd8aabin/pwait pwait.c pwait.1

pwait: Add a SIGINFO handler

On SIGINFO, print a space-separated list or remaining processes to
standard error.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D58386
DeltaFile
+29-7bin/pwait/pwait.c
+13-0bin/pwait/pwait.1
+42-72 files

FreeBSD/src c8f5e68bin/pwait pwait.c pwait.1

pwait: Optionally wait until process is reaped

If the new -r option is specified, wait until the target process not
only terminates but is reaped.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D58314
DeltaFile
+29-12bin/pwait/pwait.c
+14-3bin/pwait/pwait.1
+43-152 files

FreeBSD/src 2bacbbelib/libsys kqueue.2, lib/libsysdecode flags.c

kqueue: Add NOTE_REAP

Add a NOTE_REAP event for EVFILTER_PROC which provides a notification
when the process is reaped.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D58313
DeltaFile
+8-5sys/kern/kern_event.c
+4-7sys/sys/event.h
+8-2lib/libsys/kqueue.2
+6-3sys/kern/sys_procdesc.c
+1-1lib/libsysdecode/flags.c
+1-0sys/kern/kern_exit.c
+28-186 files

FreeBSD/src d85e97clibexec/rc/rc.d lockd statd

rc.d: fix lockd and statd flags processing after scvj

The documented flags are named differently than the script name, this
requires special handling of the flags.

The Service Jails feature requires the handling of the variable to be
differently than it was initially. The change back then did not work,
which resulted in the flags to be ignored.

This commit fixes the issue in head. This affects 15.0 and 15.1 too.

PR:             296233
Reported by:    Robert Blayzor <rblayzor at inoc.net>
Tested by:      Robert Blayzor <rblayzor at inoc.net>
Fixes:          f99f0ee14e3af81c2 - rc.d: add a service jails config to all base system services
MFC after:      1 month
MFC to: 15-stable

(cherry picked from commit d05d60e958bca778ea193932facb026c48d7ca0b)
DeltaFile
+2-1libexec/rc/rc.d/lockd
+2-1libexec/rc/rc.d/statd
+4-22 files

FreeBSD/src 407b7bclib/libsysdecode flags.c netlink.c

libsysdecode: decode combined Netlink message flags

Change sysdecode_nlm_flag() to decode Netlink message flags as a
bitmask instead of looking up a single flag value. This correctly
prints combinations of NLM_F_* flags while preserving any unknown
bits in hexadecimal.

Reported by:    androvonx95 <androvonx95 at tutamail.com>
Reviewed by:    kp
Signed-off-by:  Ishan Agrawal <iagrawal9990 at gmail.com>
Sponsored-by:   Google LLC (GSoC 2026)
DeltaFile
+8-3lib/libsysdecode/flags.c
+1-6lib/libsysdecode/netlink.c
+1-1lib/libsysdecode/sysdecode.h
+10-103 files

FreeBSD/src 5c1461alib/libsysdecode flags.c

libsysdecode: use local sysdecode.h

Replace <sysdecode.h> with "sysdecode.h" so local builds use the in-tree header
in lib/libsysdecode instead of a stale installed copy in /usr/include, avoiding
build failures after updating sysdecode.h.

Signed-off-by:  Ishan Agrawal <iagrawal9990 at gmail.com>
Sponsored-by:   Google LLC (GSoC 2026)
Reviewed by:    kp
Pull-Request:   https://github.com/freebsd/freebsd-src/pull/2338
DeltaFile
+1-1lib/libsysdecode/flags.c
+1-11 files

FreeBSD/src e3e5623sys/dev/usb/controller xhci.c

xhci: Fix packet xfer larger than 64kb

Previously, multiple frames of xfers are split into many tds. In the
refactor process, we forget to consider this. The td builder is already
allocate with enough numbers of tds. What we need to do is to fill the
normal trbs for muiltiple tds when building trbs.

PR:             297053
Tested by:      phk, oleglelchuk at gmail.com
Fixes:  e0b235ecd4fa ("xhci: Refactor xhci_generic_setup code")
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58465
DeltaFile
+121-69sys/dev/usb/controller/xhci.c
+121-691 files

FreeBSD/src 03c71edusr.bin/mkimg gpt.c scheme.c

mkimg: Add ms-basic-data alias for GPT

While preparing GPT-schemed RaspberryPi images for the NanoBSD
Reimagined GSoC 2026 project, a discrepancy was identified between
mkimg(1) and gpart(8) regarding Microsoft Basic Data partitions (GUID
!ebd0a0a2-b9e5-4433-87c0-68b6b72699c7).

Currently, mkimg(1) relies on the MBR-centric name "ntfs" to identify
this partition type under the GPT scheme.  Conversely, gpart(8)
identifies this type as "ms-basic-data".

To allow automation scripts (such as those consuming from gpart backup)
to use a common partition type across tools, add ALIAS_MS_BASIC_DATA as
a valid alias.

This is part of a larger effort to avoid a custom, MBR-based image
generation logic for embedded SoCs like the Raspberry Pi, standardizing
on GPT layouts across all supported FreeBSD embedded devices.


    [5 lines not shown]
DeltaFile
+1-0usr.bin/mkimg/gpt.c
+1-0usr.bin/mkimg/scheme.c
+1-0usr.bin/mkimg/scheme.h
+3-03 files

FreeBSD/src 28c3d54lib/libnetmap nmreq.c

libnetmap: fix extra indirection in nmreq_remove_option

Reviewed by:    zlei, vmaffione
Obtained from:  https://github.com/luigirizzo/netmap/commit/7d9177ed9a121e66bf4eaa0acb5d574e408297da
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D58151

(cherry picked from commit 141b6645204966a0e1ae10dd059c670e2a58e6e1)
DeltaFile
+1-1lib/libnetmap/nmreq.c
+1-11 files

FreeBSD/src bb8c5e4lib/libnetmap nmport.c

libnetmap: fix error path in nmport_extmem_from_file

Reviewed by:    zlei, vmaffione
Obtained from:  https://github.com/luigirizzo/netmap/commit/b52a2bcae35e56548acfb0849b248a1e4b0c0c3b
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D58150

(cherry picked from commit fcaf15e54162fe14483fdf4ac28c67c51e424441)
DeltaFile
+3-1lib/libnetmap/nmport.c
+3-11 files

FreeBSD/src 49233a1usr.bin/mkimg gpt.c scheme.c

mkimg: Add ms-basic-data alias for GPT

While preparing GPT-schemed RaspberryPi images for the NanoBSD
Reimagined GSoC 2026 project, a discrepancy was identified between
mkimg(1) and gpart(8) regarding Microsoft Basic Data partitions (GUID
!ebd0a0a2-b9e5-4433-87c0-68b6b72699c7).

Currently, mkimg(1) relies on the MBR-centric name "ntfs" to identify
this partition type under the GPT scheme.  Conversely, gpart(8)
identifies this type as "ms-basic-data".

To allow automation scripts (such as those consuming from gpart backup)
to use a common partition type across tools, add ALIAS_MS_BASIC_DATA as
a valid alias.

This is part of a larger effort to avoid a custom, MBR-based image
generation logic for embedded SoCs like the Raspberry Pi, standardizing
on GPT layouts across all supported FreeBSD embedded devices.


    [5 lines not shown]
DeltaFile
+1-0usr.bin/mkimg/gpt.c
+1-0usr.bin/mkimg/scheme.c
+1-0usr.bin/mkimg/scheme.h
+3-03 files

FreeBSD/src 57ce5falib/libnetmap nmreq.c

libnetmap: fix extra indirection in nmreq_remove_option

Reviewed by:    zlei, vmaffione
Obtained from:  https://github.com/luigirizzo/netmap/commit/7d9177ed9a121e66bf4eaa0acb5d574e408297da
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D58151

(cherry picked from commit 141b6645204966a0e1ae10dd059c670e2a58e6e1)
DeltaFile
+1-1lib/libnetmap/nmreq.c
+1-11 files

FreeBSD/src cf4bb6flib/libnetmap nmport.c

libnetmap: fix error path in nmport_extmem_from_file

Reviewed by:    zlei, vmaffione
Obtained from:  https://github.com/luigirizzo/netmap/commit/b52a2bcae35e56548acfb0849b248a1e4b0c0c3b
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D58150

(cherry picked from commit fcaf15e54162fe14483fdf4ac28c67c51e424441)
DeltaFile
+3-1lib/libnetmap/nmport.c
+3-11 files

FreeBSD/src 8840941sys/kern sys_process.c

kern_ptrace(): reduce code duplication

(cherry picked from commit 9b21a52495758294e3a50542a59bc47a0c184173)
DeltaFile
+15-10sys/kern/sys_process.c
+15-101 files

FreeBSD/src 2cbf21fsys/kern kern_sig.c

thread_stopped(): style

(cherry picked from commit 2038232e3e40cfc3dedba1a9f4a66984448eca1e)
DeltaFile
+2-2sys/kern/kern_sig.c
+2-21 files

FreeBSD/src 1e5d774sys/kern sys_process.c

kern/sys_ptrace: do not skip P2_PTRACEREQ wait for PT_CLEARSTEP/PT_GET_CHILDREN

(cherry picked from commit eca7b25c101a240472c4c274e725bc294284c827)
DeltaFile
+16-17sys/kern/sys_process.c
+16-171 files

FreeBSD/src 18ea957sys/kern kern_prot.c

getpgrp(2), getsid(2): allow to call on zombies

(cherry picked from commit 8f320c2bc473a775ea9a55d17fa61f729e593867)
DeltaFile
+8-4sys/kern/kern_prot.c
+8-41 files

FreeBSD/src c0addb9sys/compat/freebsd32 freebsd32_misc.c, sys/kern sys_process.c

ptrace(2): add PT_GET_CHILDREN

(cherry picked from commit d3b7bbee9275d5a3c58a9e75d1fffc60a9333352)
DeltaFile
+137-2sys/kern/sys_process.c
+16-0sys/compat/freebsd32/freebsd32_misc.c
+12-0sys/sys/ptrace.h
+165-23 files

FreeBSD/src 4c6c49alib/libsys ptrace.2

ptrace.2: document PT_GET_CHILDREN

(cherry picked from commit 6dbeaf1afaba52ba224f24773cbaac6317e11ff2)
DeltaFile
+55-0lib/libsys/ptrace.2
+55-01 files

FreeBSD/src 643fe6blib/libsys ptrace.2

ptrace.2: Document PT_SET_SC_RET

(cherry picked from commit f967dd04c880e9c9c68cd20de135d77b3ca1c26d)
DeltaFile
+20-0lib/libsys/ptrace.2
+20-01 files

FreeBSD/src 03c5b4dsys/compat/freebsd32 freebsd32_misc.c, sys/kern sys_process.c subr_syscall.c

ptrace(2): PT_SET_SC_RET request

(cherry picked from commit fd5faa5629aed98f4daee84063da3494c4d1eee9)
DeltaFile
+24-0sys/kern/sys_process.c
+19-0sys/compat/freebsd32/freebsd32_misc.c
+8-4sys/kern/subr_syscall.c
+2-1sys/sys/ptrace.h
+1-0sys/sys/proc.h
+54-55 files

FreeBSD/src 02b4a95sys/kern vfs_lookup.c vfs_syscalls.c

lookup: do not return vp_crossmp as dvp for mount over the reg file

(cherry picked from commit 29d1a3248a6da1ed9f1a46d7d525fb779306a90f)
DeltaFile
+30-4sys/kern/vfs_lookup.c
+8-1sys/kern/vfs_syscalls.c
+38-52 files

FreeBSD/src 3987022sys/x86/include apicvar.h, sys/x86/xen xen_arch_intr.c

x86 xen: provide the prototype for xen_arch_intr_handle_upcall() in x86/apicvar.h

(cherry picked from commit 0e5b1384df10e9b9700047cb79c347874212d2a9)
DeltaFile
+2-0sys/x86/include/apicvar.h
+0-1sys/x86/xen/xen_arch_intr.c
+2-12 files

FreeBSD/src 95439b8sys/dev/sound/pci envy24.c envy24ht.c

sound: Stop using legacy u_int types

No functional change intended.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+107-107sys/dev/sound/pci/envy24.c
+100-100sys/dev/sound/pci/envy24ht.c
+84-84sys/dev/sound/pci/maestro3.c
+65-65sys/dev/sound/pci/emu10k1.c
+49-49sys/dev/sound/pci/vibes.c
+48-48sys/dev/sound/pci/cmi.c
+453-45338 files not shown
+1,016-1,01644 files

FreeBSD/src 34ae0f7sys/cam/scsi scsi_cd.c

cam/cd: avoid integer divide fault in cdstart()

If something goes very badly (e.g. forcibly removing a medium while
the OS tries to start it), this could end up in params.blksize being 0
(and params.disksize 1).  Avoid an integer divide fault, panicking the
kernel, by bailing out before.

MFC after:      3 days
DeltaFile
+10-0sys/cam/scsi/scsi_cd.c
+10-01 files

FreeBSD/src 038a737sys/modules/mt76/core Makefile, sys/modules/mt76/mt7921 Makefile

mt76: disable debugfs due to missing piece still in review

Until D57524 is not reviewed and committed we will have a missing
function declaration which prevents us to compile (in) debugfs for
mt76 core and mt7921.  Temporary disable debugfs again.

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit c589dc4ef77d8e165e449a861c3705002ca4a762)
DeltaFile
+1-1sys/modules/mt76/core/Makefile
+1-1sys/modules/mt76/mt7921/Makefile
+2-22 files

FreeBSD/src ea8db6bsys/modules/mt76 Makefile.inc, sys/modules/mt76/core Makefile

mt76: further adjust debugfs compile time options

The debugfs options between the various modules (core and chipsets)
are not 100% de-coupled.  This means we may run into unresolveable
symbols at load time of the modules if we enable certain options
generally or for core but not for the chipset.
For now: always build the core module with debugfs support.
Migrate the CONFIG_MAC80211_DEBUGFS flag into the Makefile of each
chipset so we can individually turn it on.

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit ec17c2454bf03f954e460bfe3c95e35f638ba71e)
DeltaFile
+0-5sys/modules/mt76/Makefile.inc
+3-0sys/modules/mt76/core/Makefile
+1-0sys/modules/mt76/mt7615/Makefile
+1-0sys/modules/mt76/mt7915/Makefile
+1-0sys/modules/mt76/mt7921/Makefile
+1-0sys/modules/mt76/mt7925/Makefile
+7-51 files not shown
+8-57 files