FreeBSD/src cdd5feclibexec/rc rc.subr

rc.subr: Fix a typo in check_jail()'s description

MFC after:      3 days
Event:          Berlin Hackathon 202507

(cherry picked from commit 5d5258653ba4b37c38e48443f265ee4dcedf9a50)
DeltaFile
+1-1libexec/rc/rc.subr
+1-11 files

FreeBSD/src f668b5alibexec/rc rc.subr

rc.subr: Fix a typo in check_jail()'s description

MFC after:      3 days
Event:          Berlin Hackathon 202507

(cherry picked from commit 5d5258653ba4b37c38e48443f265ee4dcedf9a50)
DeltaFile
+1-1libexec/rc/rc.subr
+1-11 files

FreeBSD/src 0abee38share/man/man9 vnode.9

vnode.9: Fix a typo in sys/tools/vnode_if.awk path name

Fixes:  e01826567938 vnode.9: Document vnode_if.awk and vnode_if.src
MFC after:      1 week
DeltaFile
+2-2share/man/man9/vnode.9
+2-21 files

FreeBSD/src d390633sys/amd64/amd64 pmap.c, sys/amd64/include pmap.h

amd64: for LA57, connect DMAP directly to PML5, currently reserving 32 slots

This removes the 4T limit on the amd64 usable phys memory.

Other large KVA consumers like large map, should be moved out of the
top PML4 entry as well.  After that, kmem on LA57 amd64 can be extended.

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D51085
DeltaFile
+71-30sys/amd64/amd64/pmap.c
+5-3sys/amd64/include/pmap.h
+76-332 files

FreeBSD/src 6799dd5sys/amd64/amd64 pmap.c

amd64 pmap: for la57, copy whole kernel pml5 table to user pmap pm_pml5 table

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D51085
DeltaFile
+5-13sys/amd64/amd64/pmap.c
+5-131 files

FreeBSD/src 25c6d47sys/amd64/include vmparam.h

amd64 pmap: add KVA map for LA57

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D51085
DeltaFile
+15-0sys/amd64/include/vmparam.h
+15-01 files

FreeBSD/src f05d399sys/amd64/amd64 pmap.c

amd64 pmap: do not hardcode 512GB

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D51085
DeltaFile
+2-1sys/amd64/amd64/pmap.c
+2-11 files

FreeBSD/src 42f1054sys/kern subr_trap.c

ast: do not dereference NULL td_proc in CTR statement

If ast is called to clean up thread, as in ast_kclear(), td_proc is
NULL.  Guard against derefencing it in the trace.

Reported by:    pho
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+3-2sys/kern/subr_trap.c
+3-21 files

FreeBSD/src 4dd828csys/amd64/amd64 pmap.c minidump_machdep.c, sys/amd64/include vmparam.h pmap.h

amd64: add kva_layout

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D51085
DeltaFile
+45-32sys/amd64/amd64/pmap.c
+10-16sys/amd64/include/vmparam.h
+12-0sys/amd64/include/pmap.h
+5-5sys/amd64/amd64/minidump_machdep.c
+8-1sys/vm/vm_kern.c
+3-2sys/amd64/include/param.h
+83-562 files not shown
+86-598 files

FreeBSD/src 8f480d0share/man/man5 style.Makefile.5

style.Makefile.5: Remove title macros, tag SPDX

Title macros are discouraged in mdoc(7) because they are not portable.
While here, remove a redundant "file". File is still in the title twice.

MFC after:      3 days
DeltaFile
+4-4share/man/man5/style.Makefile.5
+4-41 files

FreeBSD/src fbc4e90share/man/man8 nanobsd.8

nanobsd.8: Shorten title for apropos, tag SPDX

MFC after:      3 days
DeltaFile
+5-3share/man/man8/nanobsd.8
+5-31 files

FreeBSD/src bdb44a4share/man/man7 d.7

d.7: Refrain from unnecessary time travel

Fix a typo in the manual's date.

Reported by:    Gary Jennejohn <garyj at gmx.de>
Fixes:          193f2289fc9a d.7: Document the DTrace scripting language
DeltaFile
+1-1share/man/man7/d.7
+1-11 files

FreeBSD/src a320705share/man/man5 src.conf.5

src.conf.5: Regen after retiring some 32-bit architectures

Commit 4a3fb7547e6b ("powerpc: Disconnect 32-bit powerpc from make
universe") changed the default architecture lists.  i386 hasn't chanaged
as only the kernels are disabled; i386 is still included in
TARGET_MACHINE_LIST.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+18-18share/man/man5/src.conf.5
+18-181 files

FreeBSD/src b87dcd7usr.bin/find find.1

find.1: Correct HISTORY grammar typo

PR:             286292
MFC after:      3 days
Reviewed by:    ziaee
DeltaFile
+1-1usr.bin/find/find.1
+1-11 files

FreeBSD/src 23e4075sbin/bectl bectl.8

bectl.8: Describe better

+ Concise document description for consistency and apropos results
+ Improve introductory paragraph, mentioning boot loader support
+ Explain -r in "Supported Subcommands and Flags"
+ Clarify the purpose of the check subcommand
+ Add two basic examples, creating and mounting
+ Fold some long lines, correct a stray capitalization.

MFC after:      3 days
Co-authored-by: kevans

(cherry picked from commit d7baf5f70802a9045f5792a7063b2614bf17356a)
DeltaFile
+65-56sbin/bectl/bectl.8
+65-561 files

FreeBSD/src b98efcdshare/man/man1 builtin.1 Makefile

builtin.1: streamlined rewrite + document keybinds

+ clean title: one line with keywords, builtin's mlinked
+ additional search terms: FreeBSD, index
+ synopsis: builtins are documented in your shell's manual
+ clear/scoped introduction: increase straightforwardness
+ table alignment fixed, now renders nicely on MANWIDTH=59
+ keybindings: fundamentals now documented, more please?
+ improved structure and flow, and a spdx tag
+ remove info(1) from SEE ALSO

MFC after:      3 days
Discussed with: imp,jlduran
Reviewed by:    imp
Closes:         https://github.com/freebsd/freebsd-src/pull/1481

(cherry picked from commit 42df4faf7004aabb4f06acd71f860f12977db3ad)
DeltaFile
+92-177share/man/man1/builtin.1
+1-0share/man/man1/Makefile
+93-1772 files

FreeBSD/src 8c79b9dusr.bin/truncate truncate.1

truncate.1: Polish title and examples

+ describe better
+ switch examples to human readable sizes, with consistent spacing
+ `Downsize ... in 5 Megabytes` >> `Downsize ... by 5 Megabytes`
+ remove prompt from lone example with prompt for consistency
+ remove x permissions from kernel example
+ examples now fit on standard console without wrapping

While here:
+ fold a line to eliminate linter warning + tag spdx
+ add -nosplit to AUTHORS to eliminate a rendering glitch

MFC after:      3 days
Discussed with: asomers, jhb, maxim
Reviewed by:    imp (previous version)
Closes:         https://github.com/freebsd/freebsd-src/pull/1568

(cherry picked from commit 91ad27bcfc496393ba88f39ca13cdf1c59a7f487)
DeltaFile
+17-13usr.bin/truncate/truncate.1
+17-131 files

FreeBSD/src 137fcd6lib/libc/sys write.2

write.2: Add EINVAL to ERRORS

Since phk rewrote the block layer ~2 decades ago, write(2) can return
EINVAL when the target is a block device and nbytes, the write size, is
not a multiple of the sector's block size.

From the original PR:
When coming from Linux, people are surprised by the fact
that write(2) to a device must be aligned to block size.
Writing a non-aligned block onto a raw device is a case
where EINVAL is also returned but the manpage does not mention this.

MFC after:              3 days
PR:                     227185
Reported by:            riggs
Reviewed by:            imp, Pau Amma <pauamma at gundo.com>
Differential Revision:  https://reviews.freebsd.org/D51138

(cherry picked from commit bd173a540c0ead4881b0866b721955440e3b96fe)
DeltaFile
+3-0lib/libc/sys/write.2
+3-01 files

FreeBSD/src 0410aaeshare/man/man4 pf.4

pf.4: Add pf_enable to SYNOPSIS

MFC after:              3 days
Reviewed by:            Pau Amma <pauamma at gundo.com>
Reviewed by:            Felix Johnson <felix.the.red at gmail.com>
Differential Revision:  https://reviews.freebsd.org/D51117

(cherry picked from commit 65bc8e9192dd19bca3ed89586a23a74cd449f7b2)
DeltaFile
+5-1share/man/man4/pf.4
+5-11 files

FreeBSD/src d9e02d3contrib/mandoc Makefile

mandoc: Bump version string to 1.14.6s20250613

The mandoc compiler is still at version 1.14.6, but we have imported
several snapshots since the version was bumped. Append a snapshot date
string to the version to reflect this.

Requested by:   wosch
Discussed with: bapt

(cherry picked from commit af2949cd29ef453a63a6345de396be866138b051)
DeltaFile
+1-1contrib/mandoc/Makefile
+1-11 files

FreeBSD/src 241fb89contrib/mandoc mdoc.7

mdoc.7/MANUAL STRUCTURE: add HARDWARE

FreeBSD Release infrastructure has been generating the Hardware
Compatibility Notes from this section for some decades. Make this more
obvious. This does change the upstream mdoc.7 in a minimal way to
document this, but the .Dd wasn't bumped to avoid conflicts with the
next mdoc/mandoc import.

Reported by:    bz (HARDWAREs generating compatibility notes)
Reported by:    grahamperrin (order listed in fdp-primer/man)
Reviewed by:    imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1463

(cherry picked from commit d235f19d1bf1e3d9ca31822709464cc6250f44c2)
DeltaFile
+7-0contrib/mandoc/mdoc.7
+7-01 files

FreeBSD/src d0b2379contrib/mandoc mdoc.7 mdoc_validate.c

mandoc: Vendor import of upstream at 2025-06-13

Interesting changes:
+ Lb is now part of SNYOPSIS, the LIBRARY section is deprecated
+ Ft now takes multiple args, and no longer should be quoted
+ Fix a segfaut on malformed Tg markup

(cherry picked from commit 4c07abdbacf49e4ba749b8720916d8cd340a50b8)
DeltaFile
+61-48contrib/mandoc/mdoc.7
+29-8contrib/mandoc/mdoc_validate.c
+24-3contrib/mandoc/mandocdb.c
+3-4contrib/mandoc/mdoc_macro.c
+117-634 files

FreeBSD/src 9819cc2contrib/mandoc st.c, lib/libc/string memccpy.3

manuals: Align our tree with upstream C23 macro

Switch all instances of the -isoC-2024 macro to -isoC-2023 selected by
upstream. Keep -isoC-2024 defined, but deprecated, for backwards compat.

MFC after:      3 days (resolved merge conflicts w/ cdefs and memccpy.3)

(cherry picked from commit 1b6936e125382523509901a4fc5b2932ed0e742d)
DeltaFile
+1-1lib/libc/string/memccpy.3
+2-0contrib/mandoc/st.c
+3-12 files

FreeBSD/src a271d8fcontrib/mandoc roff.c mdoc_html.c

mandoc: Vendor import of upstream at 2025-04-08

Interesting changes:
+ correct legacy mandoc date typo, reported on our very own bugzilla
+ improve libmandoc manual
+ strengthen recommendations to omit macros from title lines in mdoc(7)
+ improve html5 compliance in html output
+ improve RFC linking in markdown output
+ libmandoc and mdoc manuals have been improved
+ support arithmetic operations in tbl(7) column widths for DocBook
+ define the St -isoC-2023 macro for referencing the C23 spec

Approved by:    mhorne (mentor, implicit)
Reviewed by:    imp
Discussed with: adrian, bapt, brooks
Closes:         https://github.com/freebsd/freebsd-src/pull/1689

(cherry picked from commit 80c12959679ab203459dc20eb9ece3a7328b7de5)
DeltaFile
+75-71contrib/mandoc/roff.c
+46-15contrib/mandoc/mdoc_html.c
+35-3contrib/mandoc/man.1
+35-2contrib/mandoc/mandoc.3
+21-15contrib/mandoc/tbl_layout.c
+32-3contrib/mandoc/mdoc_markdown.c
+244-10912 files not shown
+303-15018 files

FreeBSD/src 7876738contrib/mandoc lib.in

mandoc: remove duplicate libstdthreads entry

(cherry picked from commit 0fd7b4655666fce13c43d4562e5f9e54ad32145e)
DeltaFile
+0-1contrib/mandoc/lib.in
+0-11 files

FreeBSD/src e912101contrib/mandoc st.c, lib/libc/string memccpy.3

contrib/mandoc: add -isoC-2024 and -svid1 to mdoc(7)

C23 (ISO/IEC 9899:2024) is not out yet, but will be shortly.
SVID1 is needed for the history section of memccpy(3).

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47284

(cherry picked from commit 7ed159c6cc00adf6f75f9a43024f23509f5b8e5e)
DeltaFile
+2-4lib/libc/string/memccpy.3
+2-0contrib/mandoc/st.c
+4-42 files

FreeBSD/src ec76661contrib/mandoc msec.in

mandoc: drop 3p section

The 3p is an OpenBSD thing and this list of sections is otherwise
entierly customized to FreeBSD.

Reviewed by:    imp, bapt
Differential Revision:  https://reviews.freebsd.org/D47948

(cherry picked from commit 3ca117c6bb1dffaa3542f58339154a7dd166d169)
DeltaFile
+0-1contrib/mandoc/msec.in
+0-11 files

FreeBSD/src dd27694contrib/mandoc roff.c roff_escape.c

Merge mandoc snapshot 2024-09-22

(cherry picked from commit c1c95add8c80843ba15d784f95c361d795b1f593)
DeltaFile
+481-447contrib/mandoc/roff.c
+546-0contrib/mandoc/roff_escape.c
+9-385contrib/mandoc/mandoc.c
+343-0contrib/mandoc/mandoc_dbg.c
+280-0contrib/mandoc/mandoc_dbg_init.3
+150-56contrib/mandoc/mandoc.1
+1,809-88869 files not shown
+3,249-1,68975 files

FreeBSD/src ab9ee52share/man/man7 tracing.7

tracing.7: Shorten doc description for apropos

Shorten document description to fit on one line for the beautification
of apropos results, removing only the search keyword "facilities", which
I think is unlikely to cause discoverability regression.

MFC after:              No (please mfc if mfc'ing tracing.7)
Reviewed by:            0mp, bcr
Differential Revision:  https://reviews.freebsd.org/D51284
DeltaFile
+1-1share/man/man7/tracing.7
+1-11 files

FreeBSD/src 1fe7af0cddl/contrib/opensolaris/cmd/dtrace dtrace.1

dtrace.1: Document evaltime

Reviewed by:    christos, ziaee
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D51301
DeltaFile
+47-1cddl/contrib/opensolaris/cmd/dtrace/dtrace.1
+47-11 files