FreeBSD/src 0b17876sys/kern kern_synch.c kern_ktrace.c, sys/sys ktrace.h

ktrcsw(): should not be called when the thread is owning interlock or on sleepq

(cherry picked from commit 245157fd8a382c3989075789ee98582665f3b31d)
DeltaFile
+11-15sys/kern/kern_synch.c
+16-2sys/kern/kern_ktrace.c
+1-0sys/sys/ktrace.h
+28-173 files

FreeBSD/src 5ba503fsys/net if_lagg.c

lagg: Remove the member pr_num from struct lagg_proto

It is set but never used. Remove it to avoid confusion and save a
little space.

While here, use designated initializers to initialize the LAGG protocol
table. That improves readability, and it will be safer to initialize the
table if we introduce new protocols in the future.

No functional change intended.

Reviewed by:    glebius
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D55124
DeltaFile
+6-13sys/net/if_lagg.c
+6-131 files

FreeBSD/src a622030sys/net if_lagg.c

lagg: Make the none protocol a first-class citizen

All the other protocols have corresponding start and input routines,
which are used in the fast path. Currently the none protocol is
treated specially. In the fast path it is checked to indicate whether
a working protocol is configured. There are two issues raised by this
design:

1. In production, other protocols are commonly used, but not the
none protocol. It smells like an overkill to always check it in the
fast path. It is unfair to other commonly used protocols.

2. PR 289017 reveals that there's a small window between checking the
protocol and calling lagg_proto_start(). lagg_proto_start() is possible
to see the none protocol and do NULL deferencing.

Fix them by making the none protocol a first-class citizen so that it
has start and input routines just the same as other protocols. Then we
can stop checking it in the fast path, since lagg_proto_start() and

    [13 lines not shown]
DeltaFile
+33-9sys/net/if_lagg.c
+33-91 files

FreeBSD/src 7fa4ccbcontrib/mandoc main.c mdoc.7

mandoc: Vendor import of upstream at 2025-09-26

Interesting changes:
+ mandoc db: Improve case sorting, found by our very own markj
+ history: Add macros for version 8 and 10 AT&T Unix
+ linter: Warn on blank lines in man(7) like mdoc(7)
+ manuals: Improve precision, man(7) syntax table, and roff(7) specifics
+ manuals: Fix PDF/PS footer regression detailed in our PR: 289786

Approved by:    re (cperciva)
PR:             289786
MFC after:      3 days

(cherry picked from commit 59fc2b0166f71c791113379d16b8cef7039f289d)
(cherry picked from commit f763f12ed5eba2c95385dd2f93fc47a66dfa927c)
DeltaFile
+10-42contrib/mandoc/main.c
+23-12contrib/mandoc/mdoc.7
+31-4contrib/mandoc/man.options.1
+9-7contrib/mandoc/mandoc.1
+4-3contrib/mandoc/dba.c
+3-3contrib/mandoc/term_ps.c
+80-713 files not shown
+84-749 files

FreeBSD/src e261ea9contrib/mandoc roff_term.c

mandoc: Improve width calculation for GCC compat

Avoid implicitly converting a potentially negative page offset
to size_t and then back to int.  While this was not a bug and the end
result was portably correct, Alexander Ziaee@ privately reported to me
that the GCC 14 in the FreeBSD Jenkins CI felt uneasy about it.

For clarity and readability, rewrite the truncation statement
to not mix signed and unsigned types, to not use explicit casts,
and make handling of the lower and upper cutoff more similar
to each other.

Approved by:    re (cperciva)
Fixes:  6410c1b51637 (mandoc: vendor import of upstream at 2025-07-27)
MFC after:              3 days
Reported by:            ivy
Reviewed by:            ivy
Differential Revision:  https://reviews.freebsd.org/D52127


    [2 lines not shown]
DeltaFile
+3-2contrib/mandoc/roff_term.c
+3-21 files

FreeBSD/src 8039d22contrib/mandoc tbl_term.c catman.8

mandoc: Vendor import of upstream at 2025-07-27

Groff Compat Edition -- Interesting changes:
+ italics in section/subsection headers are now also bold, like groff
+ display "LOCAL" in response to invalid section numbers, like groff
+ tbl(7) rendering has been tweaked to be more like groff
+ scaling has been improved to better render poorly generated manuals
+ display "UNTITLED" in response to invalid man(7) titles, like groff
+ improve mandocd error handling of broken pipes
+ manual footers now always show NAME(SECTION) on the right, like groff

Approved by:    re (cperciva)
MFC after:      3 days

(cherry picked from commit 06410c1b51637e5e1f392d553b5008948af58014)
(cherry picked from commit a1f4ccd6c79470eb0180f4d9a012b24c267d2574)
DeltaFile
+165-122contrib/mandoc/tbl_term.c
+216-28contrib/mandoc/catman.8
+205-26contrib/mandoc/catman.c
+108-93contrib/mandoc/term.c
+148-47contrib/mandoc/roff.7
+89-62contrib/mandoc/man.7
+931-37827 files not shown
+1,368-75733 files

FreeBSD/src d720738usr.sbin/cxgbetool cxgbetool.8

cxgbetool.8: Fix some minor mechanical issues

+ Tag SPDX
+ Macros should not appear in titles, write a hopefully better title
+ Nm needs to be on it's own line in SYNOPSIS, fold it so this page
  does not appear in unrelated search results (test case `apropos fw`)
+ Remove Ns's that do nothing and generate linter errors
+ Move list initializers to where they render, correcting linter errors

Unresolved:
This page produces an error when rendered due to the macros table.
I don't know how to fix that yet, but I'm interested in learning!

Reviewed by:            mhorne
Approved by:            mhorne (mentor)
Differential Revision:  https://reviews.freebsd.org/D50320

(cherry picked from commit 8f25fac9ce2339ab5599e3af0ef7c6a1ea098aab)
DeltaFile
+103-74usr.sbin/cxgbetool/cxgbetool.8
+103-741 files

FreeBSD/src fe2e293usr.bin/top top.1

top.1: Fix incorrect default value for -s option

The default delay between screen updates was incorrectly transfered
from roff(7) register that was used in previous version of man page.

Reviewed by:            ziaee
Fixes:                  9d6cce02a78c (initial pass to freebsdize)
Differential Revision:  https://reviews.freebsd.org/D51503

(cherry picked from commit 6a41fd466701db71da443e1b87b31d463d99d056)
DeltaFile
+1-1usr.bin/top/top.1
+1-11 files

FreeBSD/src 42bbc08usr.sbin/efitable efitable.8

efitable.8: Nits

+ tag spdx
+ uncapitalize beginning of Nd, these should not be capitalized
+ add bars to show that long options XOR short options
+ remove stray paragraph marker for linter complaints

(cherry picked from commit 65e8951711934cbb2fa1d0d836705c59770039c0)
DeltaFile
+6-5usr.sbin/efitable/efitable.8
+6-51 files

FreeBSD/src 33cc749usr.sbin/watch watch.8

watch.8: Align option list

(cherry picked from commit 9187f64a74698736a5686971b3cfbcb226cb098c)
DeltaFile
+1-1usr.sbin/watch/watch.8
+1-11 files

FreeBSD/src 9b5fbeebin/uuidgen uuidgen.1

uuidgen.1: Correct SYNOPSIS, alphabetize options

Group options that can be used together accordingly in SYNOPSIS.
While here, tag SPDX and fix a parenthetical typo in EXAMPLES.

MFC after:      3 days

(cherry picked from commit abed9ab6eaad625ab9059d9799694876a4ae5b07)
DeltaFile
+9-8bin/uuidgen/uuidgen.1
+9-81 files

FreeBSD/src e300952bin/uuidgen uuidgen.1

uuidgen(1): Add EXAMPLES to manual page

Approved by:            manpages@ (gbe@)
Reviewed by:            gbe@, pauamma
Differential Revision:  https://reviews.freebsd.org/D43494

(cherry picked from commit 6e74b603fc021761c0a20e08f58b674f45ad5f04)
DeltaFile
+24-0bin/uuidgen/uuidgen.1
+24-01 files

FreeBSD/src 090fd9fusr.sbin/adduser rmuser.sh

rmuser.sh: Improve prompt consistency with adduser

While here, improve userlist error message.

PR:                     289399
MFC after:              3 days
Reviewed by:            kbowling, rgrimes
Approved by:            kbowling, rgrimes (src)
Reported by:            michaeldexter, rgrimes
Differential Revision:  https://reviews.freebsd.org/D52464

(cherry picked from commit fc68f8aac623b5494484adfa41ac600415609870)
DeltaFile
+3-3usr.sbin/adduser/rmuser.sh
+3-31 files

FreeBSD/src f763f12contrib/mandoc main.c man.options.1

mandoc: Vendor import of upstream at 2025-09-26

Interesting changes:
+ mandoc db: Improve case sorting, found by our very own markj
+ history: Add macros for version 8 and 10 AT&T Unix
+ linter: Warn on blank lines in man(7) like mdoc(7)
+ manuals: Improve precision, man(7) syntax table, and roff(7) specifics
+ manuals: Fix PDF/PS footer regression detailed in our PR: 289786

PR:             289786
MFC after:      3 days

(cherry picked from commit 59fc2b0166f71c791113379d16b8cef7039f289d)
DeltaFile
+10-42contrib/mandoc/main.c
+31-4contrib/mandoc/man.options.1
+23-12contrib/mandoc/mdoc.7
+9-7contrib/mandoc/mandoc.1
+4-3contrib/mandoc/dba.c
+3-3contrib/mandoc/term_ps.c
+80-713 files not shown
+84-749 files

FreeBSD/src 0d066d2contrib/mandoc roff_term.c

mandoc: Improve width calculation for GCC compat

Avoid implicitly converting a potentially negative page offset
to size_t and then back to int.  While this was not a bug and the end
result was portably correct, Alexander Ziaee@ privately reported to me
that the GCC 14 in the FreeBSD Jenkins CI felt uneasy about it.

For clarity and readability, rewrite the truncation statement
to not mix signed and unsigned types, to not use explicit casts,
and make handling of the lower and upper cutoff more similar
to each other.

Fixes:  6410c1b51637 (mandoc: vendor import of upstream at 2025-07-27)
MFC after:              3 days
Reported by:            ivy
Reviewed by:            ivy
Differential Revision:  https://reviews.freebsd.org/D52127

(cherry picked from commit 93bc3d83a11a1dbebd264616d63af3dd32cc1c8c)
DeltaFile
+3-2contrib/mandoc/roff_term.c
+3-21 files

FreeBSD/src a1f4ccdcontrib/mandoc tbl_term.c catman.8

mandoc: Vendor import of upstream at 2025-07-27

Groff Compat Edition -- Interesting changes:
+ italics in section/subsection headers are now also bold, like groff
+ display "LOCAL" in response to invalid section numbers, like groff
+ tbl(7) rendering has been tweaked to be more like groff
+ scaling has been improved to better render poorly generated manuals
+ display "UNTITLED" in response to invalid man(7) titles, like groff
+ improve mandocd error handling of broken pipes
+ manual footers now always show NAME(SECTION) on the right, like groff

MFC after:      3 days

(cherry picked from commit 06410c1b51637e5e1f392d553b5008948af58014)
DeltaFile
+165-122contrib/mandoc/tbl_term.c
+216-28contrib/mandoc/catman.8
+205-26contrib/mandoc/catman.c
+108-93contrib/mandoc/term.c
+148-47contrib/mandoc/roff.7
+89-62contrib/mandoc/man.7
+931-37827 files not shown
+1,368-75733 files

FreeBSD/src a8ac0e6share/man/man4 mmcsd.4

mmcsd.4: s/DESCRIPTION/HARDWARE + HISTORY + SPDX

This manual only describes a tiny amount suitable for the HW Relnotes.
Remove the description section and replace it with a hardware section
which will appear there.

MFC after:      3 minutes
Reported by:    ivy
History Ref:    5bcb64f20afff21be511cc5 (Add mmc and mmcsd)

(cherry picked from commit 0c1c81c479bef8d3e67f93ea00fc5d34ccf5af33)
DeltaFile
+9-2share/man/man4/mmcsd.4
+9-21 files

FreeBSD/src 0dec63dusr.sbin/bsdinstall bsdinstall.8

bsdinstall.8: Minor maintenance

Replace CD-ROMs with "discs, USBs, or network boot environments"
to both modernize aesthetic and also nudge youths to think at scale.
Since I'm disrupting the flow of these lines anyway, expand the VM
acronym because I think this is one of the first manuals people will
be looking at.

Reset list alignment to seven characters. It was at 19 characters,
and that was not enough to align them all, wasting many extra lines
by crunching all the words over. Seven actually bought us some lines
from six due to avg item size. Tag SPDX.

MFC after:      3 days
Discussed with: ivy, zi

(cherry picked from commit 81d9e08a4df42079d5e163b5991d5d6f3a28d4f0)
DeltaFile
+11-8usr.sbin/bsdinstall/bsdinstall.8
+11-81 files

FreeBSD/src 875445ashare/man/man4 aacraid.4

aacraid.4: Improve HARDWARE introductory sentance

To improve HW relnotes

MFC after:      3 days

(cherry picked from commit 20a8d06034791c8bb2cc733e4fe4fa1bc60273ec)
DeltaFile
+3-2share/man/man4/aacraid.4
+3-21 files

FreeBSD/src d01001fshare/man/man4 aacraid.4

aacraid.4: Fix document description + tag SPDX

The document description previously just stated the name of the driver.
Replace this with the name of the controller families and specs that
it supports, in a similar fashion to other RAID drivers.

MFC after:      3 days

(cherry picked from commit d5d1e05efbedf67f1ef8e8428f9107401e369a0b)
DeltaFile
+5-2share/man/man4/aacraid.4
+5-21 files

FreeBSD/src f1fe712share/man/man4 umass.4

umass(4): Update to include pointers to quirks

umass(4), while much improved, still sometimes need quirks. Add a
pointer to usb_quirk(4) and usbconfig(8).

Sponsored by:           Netflix

(cherry picked from commit 687ab0dc54a926092548310d71afdbe386150838)
DeltaFile
+23-2share/man/man4/umass.4
+23-21 files

FreeBSD/src 3cdb401share/man/man4 umass.4

umass.4: Modernize driver loading instructions

+ consolidate kernel configuration in SYNOPSIS
+ explain driver autoloading in DESCRIPTION
+ s/port/interface/ because of internal USBs
+ fix flow of remaining example

MFC after:      1 day

(cherry picked from commit d8a4843cb76ec1b7da8d5defafb7eef9a6cc1c21)
DeltaFile
+23-33share/man/man4/umass.4
+23-331 files

FreeBSD/src 8094ef1share/man/man4 umass.4

umass.4: Remove some extra lines which snuck in

Fixes:          70993c2fbe1ac (umass.4: Add HISTORY, HARDWARE, and SPDX)
MFC with:       70993c2fbe1ac (umass.4: Add HISTORY, HARDWARE, and SPDX)

(cherry picked from commit 34a2b5b09afe2a2fa3672f448d522b4665db9272)
DeltaFile
+0-3share/man/man4/umass.4
+0-31 files

FreeBSD/src 220d2e5share/man/man4 umass.4

umass.4: Add HISTORY, HARDWARE, and SPDX

While here, break a long line that agitates the linter.

Fixes:          cc16f1b9d9261f18 (Add umass.c)
MFC after:      1 hour
Discussed with: imp, ivy

diff --git a/sys/dev/usb/FILES b/sys/dev/usb/FILES

(cherry picked from commit 70993c2fbe1acb68f45bea5fc5fa086650876e23)
DeltaFile
+27-3share/man/man4/umass.4
+27-31 files

FreeBSD/src 5f61442stand/lua cli.lua.8

cli.lua.8: Reflow literal comments

Reflow comments in literal text blocks
so this manual is legible at MANWIDTH 78.

MFC after:      1 day

(cherry picked from commit de36d0dbaeaf05e9bf949fdf22b560c34b2c0d74)
DeltaFile
+10-8stand/lua/cli.lua.8
+10-81 files

FreeBSD/src d31dc79lib/geom/shsec gshsec.8

gshsec.8: Fix list alignment, tag spdx

MFC after:      3 days

(cherry picked from commit 05d48584607221922539bb6917c9c118236d78d5)
DeltaFile
+5-2lib/geom/shsec/gshsec.8
+5-21 files

FreeBSD/src e714779sbin/ifconfig ifconfig.8

ifconfig.8: Mention max name length

PR:             289113
MFC after:      3 days

(cherry picked from commit 832cd05905980d0f6547bf02745b054c1f4af1eb)
DeltaFile
+3-0sbin/ifconfig/ifconfig.8
+3-01 files

FreeBSD/src 6b1ae32usr.bin/cut cut.1

cut.1: Align option list and tag spdx

MFC after:      3 days

(cherry picked from commit 16f37d97b9500a4fe2d0719161025515d477a5cd)
DeltaFile
+4-1usr.bin/cut/cut.1
+4-11 files

FreeBSD/src ac567c2share/man/man4 sbp.4

sbp.4: Add a hardware section, fix markup nits

+ tag SPDX
+ add sysctl to apropos database
+ fix markup of examples and reflow a overly long line
+ add a hardware section for hw relnotes

MFC after:      3 days

(cherry picked from commit dee8e38f52266d9b2fa837607ff3a78f240a806d)
DeltaFile
+17-6share/man/man4/sbp.4
+17-61 files

FreeBSD/src 7cc574cshare/man/man4 mx25l.4

mx25l.4: Add n25q64 to hardware list

MFC after:      3 days
Fixes:          76735c74398923a (flash: Add "n25q64" to mx25l driver)

(cherry picked from commit 595fcd71a89e8c2d9039528d58b073f5ca712b68)
DeltaFile
+2-0share/man/man4/mx25l.4
+2-01 files