FreeBSD/src 2733e05usr.bin/lorder/tests lorder_test.sh

tests/lorder_test: Update test case description from copy/paste

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 5a674a0694836616eaaff448345823594742ad76)
DeltaFile
+1-1usr.bin/lorder/tests/lorder_test.sh
+1-11 files

FreeBSD/src 625a7ebusr.bin/lorder/tests lorder_test.sh

tests/lorder_test: Update test case description from copy/paste

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 5a674a0694836616eaaff448345823594742ad76)
DeltaFile
+1-1usr.bin/lorder/tests/lorder_test.sh
+1-11 files

FreeBSD/src ffdac50cddl/contrib/opensolaris/lib/libdtrace/common dt_consume.c

libdtrace: Fix dt_print_sym() not printing symbols in non-oformat mode

dt_print_sym() fills the symbol string via snprintf() in non-oformat
mode but the guarding `dtp->dt_oformat != 0 &&` for the dt_printf()
call causes the symbol is computed but never emitted.

This fixes tests:

- common.profile-n.t_dtrace_contrib.tst_sym_ksh
- common.profile-n.t_dtrace_contrib.tst_func_ksh

Reviewed by:    markj
Fixes:          93f27766a7e1 ("dtrace: Add the 'oformat' libdtrace option")
MFC after:      3 days
Event:          Halifax Hackathon 202606
Location:       Room 208, Computer Science Building, Dalhousie University
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57895

(cherry picked from commit 8e61d8707f8a10acc143210089fea2502a3f2922)
DeltaFile
+1-1cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c
+1-11 files

FreeBSD/src e6b49d7cddl/contrib/opensolaris/lib/libdtrace/common dt_consume.c

libdtrace: Fix dt_print_sym() not printing symbols in non-oformat mode

dt_print_sym() fills the symbol string via snprintf() in non-oformat
mode but the guarding `dtp->dt_oformat != 0 &&` for the dt_printf()
call causes the symbol is computed but never emitted.

This fixes tests:

- common.profile-n.t_dtrace_contrib.tst_sym_ksh
- common.profile-n.t_dtrace_contrib.tst_func_ksh

Reviewed by:    markj
Fixes:          93f27766a7e1 ("dtrace: Add the 'oformat' libdtrace option")
MFC after:      3 days
Event:          Halifax Hackathon 202606
Location:       Room 208, Computer Science Building, Dalhousie University
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57895

(cherry picked from commit 8e61d8707f8a10acc143210089fea2502a3f2922)
DeltaFile
+1-1cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c
+1-11 files

FreeBSD/src 424d07clibexec/rc/rc.d bthidd

rc.d/bthidd: Correct load_kld invocations

Pass a single module name to load_kld for kbdmux and vkbd, allowing
bthidd_prestart to load both modules successfully.

Fixes:          cfe1962a1925 (rc: Fix improper use of load_kld)
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit b5fe1bc5c6e4b483aacadddd8bdf37aa12c89982)
DeltaFile
+2-2libexec/rc/rc.d/bthidd
+2-21 files

FreeBSD/src d690bf8libexec/rc/rc.d bthidd

rc.d/bthidd: Correct load_kld invocations

Pass a single module name to load_kld for kbdmux and vkbd, allowing
bthidd_prestart to load both modules successfully.

Fixes:          cfe1962a1925 (rc: Fix improper use of load_kld)
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit b5fe1bc5c6e4b483aacadddd8bdf37aa12c89982)
DeltaFile
+2-2libexec/rc/rc.d/bthidd
+2-21 files

FreeBSD/src 51acd75bin/sleep sleep.1

sleep: Fix man page about IGINFO output

Reviewed by:    des
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D58483

(cherry picked from commit 24983c4e9f9934282e8d81381095da819ad97c63)
DeltaFile
+2-4bin/sleep/sleep.1
+2-41 files

FreeBSD/src fc0d50abin/sleep sleep.1

sleep: Fix man page about IGINFO output

Reviewed by:    des
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D58483

(cherry picked from commit 24983c4e9f9934282e8d81381095da819ad97c63)
DeltaFile
+2-2bin/sleep/sleep.1
+2-21 files

FreeBSD/src 3c5c55btests/sys/kern Makefile procdesc.c

tests/sys/kern: Skip capsicum procdesc tests when capability mode is unavailable

pdwait's capsicum/enotcap and procdesc's pdopenpid_capmode enter capability mode.
Require security_capability_mode (and security_capabilities for enotcap) so the
cases skip cleanly on kernels built without CAPABILITIES instead of failing.

Approved by:    asomers, gallatin
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D58545
DeltaFile
+7-0tests/sys/kern/pdwait.c
+4-0tests/sys/kern/procdesc.c
+2-0tests/sys/kern/Makefile
+13-03 files

FreeBSD/src 0fb06dabin/sh input.h eval.c

bin/sh: Fix history long line truncation/corruption

When reading from standard input with editline history enabled, increase
buffer size to accomodate long lines so that history is recorded
correctly. Cleanup el_gets() handling avoiding potentially dangerous
retention of pointers to editline buffers across calls.  Ensure struct
parsefile objects are properly zero initialised when created. Remove
push argument from setinputstring() and simplify logic as it was always
called with a value of one and as was written was potentially dangerous
if ever called with a value of zero.

This commit does not fix long lines when history is enabled but editing
is not (e.g. if there is no terminal).

MFC after:      3 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2028
Signed-off-by: Kristofer Peterson <kris at tranception.com>
(cherry picked from commit 95e4fce8f0c4fc6bf828288b1d63faf0f1300198)
DeltaFile
+70-72bin/sh/input.c
+2-2bin/sh/parser.c
+1-1bin/sh/input.h
+1-1bin/sh/eval.c
+74-764 files

FreeBSD/src 4dc1962usr.sbin/bhyve iov.c

bhyve: Fix assignment of *niov2 in split_iov()

niov2 returns the number of entries in the iovec starting at offset
"offset".  Here we are unconditionally setting it to 1, which of course
isn't right.

Fixes:          a28cf86c4171 ("bhyve/virtio: Rework iovec handling functions for efficiency and clarity")
Reported by:    Claude and Ada Logics
Reviewed by:    Hans Rosenfeld <rosenfeld at grumpf.hope-2000.org>
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58625
DeltaFile
+1-1usr.sbin/bhyve/iov.c
+1-11 files

FreeBSD/src b60835acddl/usr.bin/ctfmerge ctfmerge.1

ctfmerge.1: Fix uniqlabel typos

The flag is -D, but it was written as a second -d. Add a period too.

MFC after:      3 days

(cherry picked from commit 4f293e32e4529617dd05bd64fd3c22a57a56a355)
DeltaFile
+2-2cddl/usr.bin/ctfmerge/ctfmerge.1
+2-21 files

FreeBSD/src 2b0f4a7cddl/usr.bin/ctfmerge ctfmerge.1

ctfmerge.1: Import ENVIRONMENT from NetBSD

Import the ENVIRONMENT section from NetBSD, minus the variable that our
ctfmerge does not have. Alphabetize them, polish grammar and alignment,
and add the variables to the man database. While here, remove whitespace
from the end of some lines to quiet linter.

MFC after:      3 days
PR:             291186
Co-authored-by: Alexander Ziaee <ziaee at FreeBSD.org>
Obtained from:  NetBSD (christos <christos at NetBSD.org>, 8a0c0d8)
Differential Revision:  https://reviews.freebsd.org/D54054

(cherry picked from commit 32cf24b725fdf899fb642c47004b69fcfae9b9db)
DeltaFile
+49-27cddl/usr.bin/ctfmerge/ctfmerge.1
+49-271 files

FreeBSD/src 7f5315ausr.sbin/iovctl iovctl.8

iovctl.8: Fix missing xref section number

MFC after:      3 days

(cherry picked from commit 17085d8eb1207aa925ca5eeda1d5ba132f1dd163)
DeltaFile
+1-1usr.sbin/iovctl/iovctl.8
+1-11 files

FreeBSD/src 2df31b1share/man/man4 ice.4

ice.4: Zap registered mark from document descr

Document descriptions for device drivers always contain registered
trademarks of the manufacturers, but this is not a place for the
registered mark symbol. While here, remove another useless symbol,
the hyphen in the first line comment.

MFC after:      3 days

(cherry picked from commit 6720975ba0c5b821ea0e889457737a3e2692125a)
DeltaFile
+2-2share/man/man4/ice.4
+2-21 files

FreeBSD/src 655b5bbshare/man/man4 nda.4

nda.4: Add a HARDWARE section, tag SPDX

The description likely also needs some love.

MFC after:              1 hour
Co-authored-by:         ziaee (typed up imps suggestion, tagged spdx)
Differential Revision:  https://reviews.freebsd.org/D52866

(cherry picked from commit f19aea89abd8964bf96d134c2bd6e127464c79f6)
DeltaFile
+11-1share/man/man4/nda.4
+11-11 files

FreeBSD/src b359e50share/man/man4 sdhci.4

sdhci.4: Improve HARDWARE for HW Relnotes + SPDX

MFC after:              1 hr
Discussed with:         ivy, olce
Co-authored-by:         ziaee (typed up imps suggestion, tagged spdx)
Differential Revision:  https://reviews.freebsd.org/D52860

(cherry picked from commit bc433a0b7b046b0412777e0f3cc8f18a233af8ff)
DeltaFile
+24-20share/man/man4/sdhci.4
+24-201 files

FreeBSD/src bff7d59share/man/man4 ahd.4 ahc.4

ahc.4,ahd.4: Improve HARDWARE + tag SPDX

Add some context for the Hardware Relnotes, and tag SPDX while here.

MFC after:      3 days

(cherry picked from commit 2c2a2b8281be2f4270fd98eda743a3a8c2f36949)
DeltaFile
+4-6share/man/man4/ahc.4
+4-2share/man/man4/ahd.4
+8-82 files

FreeBSD/src 30f26e6share/man/man4 aac.4

aac.4: Improve HARDWARE introductory sentance

For the improvement of the hardware release notes. While here, tag SPDX.

MFC after:      3 days

(cherry picked from commit 17be686a39a07958f61e42c4b5c797bb1d1e9895)
DeltaFile
+7-3share/man/man4/aac.4
+7-31 files

FreeBSD/src 84c20e2share/man/man4 mpr.4

mpr.4: Improve HARDWARE introductory sentance

Add context for inclusion in Hardware Release Notes.

MFC after:      3 days

(cherry picked from commit c856f327fa6ccf1c5b9e4f531581fa2a0d83c3e0)
DeltaFile
+2-2share/man/man4/mpr.4
+2-21 files

FreeBSD/src 8812968share/man/man4 cdceem.4

cdceem.4: Clean description for apropos, tag spdx

CDCEEM is already defined in the document name, no need to list it in
parentheticals a second time in the document description. This brings
the apropos listing down to one line on the one true standard console.

MFC after:      3 days

(cherry picked from commit 89bc43a1ea9b23cac9cb94f0b684d5655c9a90e4)
DeltaFile
+5-2share/man/man4/cdceem.4
+5-21 files

FreeBSD/src 936bb5c. ObsoleteFiles.inc, contrib/kyua/doc kyuafile.5.in

vnet.9: Rename vnet.9/vimage.9 to VNET.9/VIMAGE.9

Fix crossreferences to VNET(9) by correcting it's capitalization.

MFC after:      3 days
Reviewed by:    enji, ziaee
Closes:         https://github.com/freebsd/freebsd-src/pull/1848

(cherry picked from commit 3049b2f5115b3b4aed202274e866f360fa2560d1)
(cherry picked from commit 8f7a4d7949d83c13a7451cba7626950d182dfc5d)
(cherry picked from commit 08d41d8803d9dd49b709518e8f2ce292b59e9828)
DeltaFile
+0-471share/man/man9/vnet.9
+471-0share/man/man9/VNET.9
+2-2share/man/man9/Makefile
+4-0ObsoleteFiles.inc
+1-1contrib/kyua/doc/kyuafile.5.in
+478-4745 files

FreeBSD/src d79c05ashare/man/man4 Makefile

man4/Makefile: Add a reminder about architectures

MFC after:              3 days
Suggested by:           emaste
Reviewed by:            bcr
Differential Revision:  https://reviews.freebsd.org/D51464

(cherry picked from commit b4a560d34f23b8a8cf86591371579475ab0617e7)
DeltaFile
+8-0share/man/man4/Makefile
+8-01 files

FreeBSD/src dfdd8aflib/libsys pdfork.2

pddupfd.2: fix errno value returned for non-procdesc argument

Noted  and reviewed by: lwhsu
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58666
DeltaFile
+4-4lib/libsys/pdfork.2
+4-41 files

FreeBSD/src e8b9b6bsys/kern kern_sig.c kern_exit.c, sys/sys procdesc.h

pdkill(2), pdgetpid(2): return EBADF if the file type is not procdesc

For pdwait(2) and pddupfd(2), the returned error is kept EINVAL.

PR:     297293
Reviewed by:    lwhsu, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58666
DeltaFile
+6-4sys/kern/sys_procdesc.c
+2-2sys/sys/procdesc.h
+2-1sys/kern/kern_sig.c
+2-1sys/kern/kern_exit.c
+12-84 files

FreeBSD/src 6bbe833share/man/man4 gpio.4

gpio.4: Remove non-existent gpioc from synopsis

MFC after:      3 days
Reported by:    maxfx, kevans

(cherry picked from commit 0e17080395e8c5e6990d0c61f709dbab432eb683)
DeltaFile
+4-2share/man/man4/gpio.4
+4-21 files

FreeBSD/src 252ca3fshare/man/man9 VFS.9

VFS.9: Remove obsolete reference to VFS_INIT(9)

MFC after:              3 days
Reviewed by:            ziaee
Differential Revision:  https://reviews.freebsd.org/D52173

(cherry picked from commit b6a1c91b7177565115691d0cd57b412b615ae3cc)
DeltaFile
+0-1share/man/man9/VFS.9
+0-11 files

FreeBSD/src 152064c. ObsoleteFiles.inc, lib/libsysdecode sysdecode_abi_to_freebsd_errno.3 sysdecode.3

sysdecode_syscallnames.3: s/names/name/

The sysdecode_syscallname function was accidentally documented as being
plural. Move it to reflect it's actual name, and adjust all references.

PR:                     278383
Reviewed by:            ziaee
Reported by:            mhorne (initial commit forgot to remove old)
Differential Revision:  https://reviews.freebsd.org/D51002

(cherry picked from commit 739c4905dd5a35db8542b91cb46f04cc7b0484af)
(cherry picked from commit 4ba91e076ee84101112d8296785098ae31dac35e)
DeltaFile
+0-66lib/libsysdecode/sysdecode_syscallnames.3
+66-0lib/libsysdecode/sysdecode_syscallname.3
+3-0ObsoleteFiles.inc
+1-1lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3
+1-1lib/libsysdecode/sysdecode.3
+1-1lib/libsysdecode/Makefile
+72-696 files

FreeBSD/src f76adcdshare/man/man4 sume.4 smartpqi.4

man4: Use arch specifier of Dt consistently

Use the mdoc(7) arch specifier in the document title for all remaining
manuals reflecting drivers which are only for one architecture. Most are
in architecture specific folders, but amd64 only manuals are denoted in
`man4/Makefile`.

These display at the top of the manual [0] without taking up extra lines
and are useful in any case, however I hope to use these in the Hardware
Release Notes, where architecture specificity is difficult to maintain.

[0] Example: https://man-dev.freebsd.org/boot

MFC after:              3 days
Reviewed by:            0mp
Discussed with:         emaste, imp, mhorne
Differential Revision:  https://reviews.freebsd.org/D51264

(cherry picked from commit 8c9937df84e6cc7f1a98054fe34f01f2810f90a4)
DeltaFile
+1-1share/man/man4/sume.4
+1-1share/man/man4/smartpqi.4
+1-1share/man/man4/sfxge.4
+1-1share/man/man4/qlxge.4
+1-1share/man/man4/qlxgbe.4
+1-1share/man/man4/qlxgb.4
+6-637 files not shown
+43-4343 files

FreeBSD/src ddd842eshare/man/man4 snd_uaudio.4

snd_uaudio.4: Rework SYNOPSIS, add HARDWARE, SPDX

+ Rework synopsis for consistency, adding sysctls
+ Add a HARDWARE section for HW relnotes
+ tag SPDX

MFC after:              3 days
Reviewed by:            christos, pauamma
Differential Revision:  https://reviews.freebsd.org/D51240

(cherry picked from commit 701072154af0881ef395736a06d09ffa47cfc096)
DeltaFile
+21-15share/man/man4/snd_uaudio.4
+21-151 files