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

FreeBSD/src 1093a06usr.bin/top top.1

top.1: Document the THR column

MFC after:              3 days
Fixes:                  32efd26355e2 (Add a THR column)
Reviewed by:            bcr
Differential Revision:  https://reviews.freebsd.org/D50754

(cherry picked from commit 602e423db1661a316c2e97d229e14cb20c57f835)
DeltaFile
+2-1usr.bin/top/top.1
+2-11 files

FreeBSD/src 9ade902usr.bin/sed sed.1

sed.1: Adjust examples to fit in one line + SPDX

Examples were previously overflowing at MANWIDTH 80. Keep the same
complexity but use shorter phrases to make them easier to read. Tag
SPDX while here.

MFC after:              3 days
Reviewed by:            bcr
Discussed with:         emaste
Differential Revision:  https://reviews.freebsd.org/D50867

(cherry picked from commit 3cb2a7e01e13c866d7c4bb55da8f229233c0cd7c)
DeltaFile
+7-4usr.bin/sed/sed.1
+7-41 files

FreeBSD/src 3fd38a6share/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

(cherry picked from commit 8f480d0075263ff354212ce0558ee811ce62ff09)
DeltaFile
+5-5share/man/man5/style.Makefile.5
+5-51 files

FreeBSD/src 6a2f1e3sbin/nvmecontrol nvmecontrol.8

nvmecontrol.8: Explain non-operational power modes

`nvmecontrol power -l ...` lists the available power modes.
Non-operational modes are marked with an asterisk. While here,
add <device-id | namespace-id> to the "nvmecontrol power" synopsis.

MFC after:              3 days
Reviewed by:            dab, imp, michaelo, ziaee
Differential Revision:  https://reviews.freebsd.org/D58480

(cherry picked from commit 868158f7fd2a172ef22f1b6b682cc1d38e54cf63)
DeltaFile
+5-1sbin/nvmecontrol/nvmecontrol.8
+5-11 files

FreeBSD/src 70c87c0cddl/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 2cdb856share/man/man5 pf.conf.5

pf.conf.5: Fix typo

Fix small typo in pf.conf(5)

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

(cherry picked from commit bbc2d15857b8c44cf8558bf00663b508d421c94c)
DeltaFile
+1-1share/man/man5/pf.conf.5
+1-11 files

FreeBSD/src 5650618cddl/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 279fdaashare/man/man4 rtw89.4 rtw88.4

iwlwifi.4, rtw88.4, rtw89.4: Fix xref typos

MFC after:      3 days
Reviewed by:    bz, ziaee
Fixes:  0a2f7683bf0c ("man: iwlwifi/rtw88/rtw89: update man pages for Linux v7.0 based updates")
Differential Revision:  https://reviews.freebsd.org/D57720

(cherry picked from commit d036b3b348d3f7be21f79461d7ad48e97b088ba8)
DeltaFile
+2-2share/man/man4/rtw89.4
+2-2share/man/man4/rtw88.4
+2-2share/man/man4/iwlwifi.4
+6-63 files

FreeBSD/src c553a42share/man/man4 padlock.4

padlock.4: Update slightly for 64-bit hardware

- Change the document description to "Via and Zhaoxin CPU crypto driver"
- Add a HARDWARE section mentioning these in the hardware release note

This manual still needs desperate help, but just this little bit could
have saved a lot of confusion. I'd write more if I had information.

PR:             295517
Fixes:          14b8531c4ccb8 (Restore padlock_rng the the amd64 build)
MFC after:      3 days (to 15 only)
Reviewed by:    bcr, asomers
Differential Revision:  https://reviews.freebsd.org/D57920

(cherry picked from commit 380c6f59c4f87dbc45a67983d927700ca7e22be2)
DeltaFile
+13-2share/man/man4/padlock.4
+13-21 files

FreeBSD/src 200de1busr.sbin/rtadvd rtadvd.c

rtadvd(8): Fix RA flag inconsistency messages

During flag inconsistency report, we handle rai->rai_otherflg
as a bool, but the value is 0x40. Make it a simple number comparison.

PR:             295995
Reviewed by:    markj, Faraz Vahedi <kfv at kfv.io>
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D58672
DeltaFile
+4-4usr.sbin/rtadvd/rtadvd.c
+4-41 files