24120 Commits

Author SHA1 Message Date
Gordon Bergling 8a13adf80c d.7: Correct a few typos in the manual page
- s/occurance/occurrence/
- s/Univeristy/University/

MFC after:	5 days
2026-06-14 11:36:36 +02:00
Gordon Bergling 89234ff7bd umass.4: Correct a typo in the manual page
- s/Sotrage/Storage/

MFC after:	5 days
2026-06-14 11:34:06 +02:00
Mateusz Piotrowski 4ef1a73c22 style.mdoc.5: Document Nd style
The Nd macro takes the rest of the line as an argument,
so there is no need for extra quoting.

MFC after:	3 days
2026-06-13 12:57:05 +02:00
Aymeric Wibo ee13bfb694 amdsmu(4): Small improvements
Suggested by:	olce
Sponsored by:	The FreeBSD Foundation
2026-06-11 17:21:52 -04:00
Aymeric Wibo 4733b4dca5 amdsmu(4): Add manpage
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D57366
2026-06-11 16:43:05 -04:00
Siva Mahadevan b61ab2d693 src.opts.mk: enable OPENSSL_KTLS by default on riscv64
1e649491b8 enabled KERN_TLS in
riscv/conf/GENERIC, but didn't enable OPENSSL_KTLS.

This passes all testcases in the sys/kern/ssl_sendfile suite and
fixes CI failures seen here:
https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16606/testReport/sys.kern/ssl_sendfile/

PR:	293810
Fixes:	1e649491b8
MFC after:	3 days
Reviewed by:	gallatin, ngie
Differential Revision:	https://reviews.freebsd.org/D57316
2026-06-10 19:30:52 -04:00
Kit Dallege 473fa0f7a1 re(4): document jumbo frame support for 8168/8111 chips
The man page only mentioned jumbo frame support for the 8169, 8169S,
and 8110S chips. The 8168 and 8111 family also support jumbo frames,
with varying MTU limits depending on the chip revision (6K for C
variants, 9K for D and later). Update the documentation to reflect
the actual driver capabilities.

PR: 160399
Signed-off-by: Kit Dallege <xaum.io@gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2097
2026-06-10 06:35:04 -06:00
Kit Dallege f8c8875add diskless(8): remove references to deleted clone_root script
The clone_root script was removed from the tree in commit
7736786b08 but the diskless(8) man page still referenced it
in two places. Remove both references.

PR: 292231
Signed-off-by: Kit Dallege <xaum.io@gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2101
2026-06-10 06:35:04 -06:00
Mark Johnston 6bd97b5f37 tests.7: Remove an unused configuration variable
No existing tests require it, and I cannot understand what kinds of test
scenarios are supposed to require it.  Just remove it.

While here, improve the documentation of test variables a bit.

Reviewed by:	ngie
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56604
2026-06-09 21:00:23 +00:00
Dag-Erling Smørgrav 2ab18d3286 examples: Update COPTFLAGS in make.conf
We've been using -O2 for about fifteen years.

Reported by:	Jan Stary <hans@stare.cz>
MFC after:	1 week
2026-06-09 13:33:01 +02:00
Mateusz Piotrowski c0ec8ffb46 stats: Reference zpool-iostat(8) instead of zpool(8)
MFC after:	3 days
2026-06-09 10:40:42 +02:00
Gleb Smirnoff 256fa87c9f netgraph: remove remnants of IPPROTO_DIVERT
Fixes:	8624f4347e
2026-06-08 09:35:07 -07:00
Ed Maste c2631d1623 arch.7: Restore (non-SPE) 32-bit powerpc to MD tables
powerpc is still relevant for lib32.  powerpcspe cannot use lib32 so
remains removed.

Reported by:	Minsoo Choo <minsoo@minsoo.io>
Reviewed by:	Minsoo Choo <minsoo@minsoo.io>
Sponsored by:	The FreeBSD Foundation
Fixes: 2ea49bb595 ("arch.7: Remove 32-bit powerpc from tables")
Differential Revision: https://reviews.freebsd.org/D57473
2026-06-05 16:17:36 -04:00
Ed Maste 2ea49bb595 arch.7: Remove 32-bit powerpc from tables
Most 32-bit architecture support has been deprecated for FreeBSD 16.

Reviewed by:	des
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57472
2026-06-05 12:35:25 -04:00
Ed Maste 5805fadd0d arch.7: arch.7: Add wchar_t signedness
Most architectures have the same signedness for char and wchar_t, but
powerpc has the unusual combination of unsigned char and signed wchar_t.

Reviewed by:	des, jhb, markj
Sponsored by:	The FreeBSD Foundation
2026-06-05 12:25:43 -04:00
Dag-Erling Smørgrav b5a96894f6 rc: Bail if /dev/null is not a device
On startup, check that /dev/null exists and is a character device.
Otherwise, one of two things will happen: either /dev is a writable
directory and we will immediately create /dev/null as a regular file
and dump garbage into it, or it does not and we will spit out a stream
of error messages about failing to create /dev/null.

PR:		295782
MFC after:	1 week
Reviewed by:	jhb, emaste
Differential Revision:	https://reviews.freebsd.org/D57447
2026-06-05 17:53:29 +02:00
Olivier Certner 1876f629b9 style.9: Fix a typo (missing word)
Fixes:          af2c7d9f64 ("style.9: Encourage style changes when doing significant modifications")
MFC after:      1 day
Sponsored by:   The FreeBSD Foundation
2026-06-01 09:40:11 +02:00
Faraz Vahedi c115aad996 assert.3: Update as per C23
Signed-off-by:	Faraz Vahedi <kfv@kfv.io>
Reviewed by:	fuz
MFC after:	1 month
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2203
2026-05-30 15:43:52 +02:00
Olivier Certner 39818654ae mac_do.4: Document executable paths, default jail values and consistency
While here, fix the bug of mentioning 'enable' as a possible value for
the 'mac.do' jail parameter whereas it is 'new' instead.

Reviewed by:    bapt
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/38
2026-05-29 17:40:25 +02:00
Christos Margiolis 8e804f3dd6 sound: Retire unused hw.snd.vpc_mixer_bypass
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Pull Request:	https://ron-dev.freebsd.org/FreeBSD/src/pulls/18
2026-05-27 17:32:11 +02:00
Christos Margiolis 98a62ccab6 pcm.4: Document dev.pcm.%d.eq*
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Pull Request:	https://ron-dev.freebsd.org/FreeBSD/src/pulls/15
2026-05-27 17:27:11 +02:00
Christos Margiolis a0011c74f8 sound: Expose EQ by default
The dev.pcm.%d.eq* sysctls and mixer "bass" and "treble" controls are
exposed only if hint.pcm.%d.eq is set. However, there is no good reason
why we shouldn't at least expose the controls, and let the user
enable/disable/bypass equalization through the sysctl.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Pull Request:	https://ron-dev.freebsd.org/FreeBSD/src/pulls/15
2026-05-27 17:27:11 +02:00
John Baldwin 2893bb741b cpu_thread_new_kstack: Introduce new MD callback
Previously, the cpu_thread_alloc callback was invoked each time a
kernel stack was allocated for a thread.  This included thread
creation, but it was also invoked if a recycled thread had to allocate
a new kstack.  This means that cpu_thread_alloc could be called
multiple times for a single thread, but cpu_thread_free is only called
once.  Not only that, but the cpu_thread_alloc callback can't tell if
it is being invoked on a new thread object, or a recycled thread.
Calling *_alloc multiple times on an object is also atypical for
kernel APIs.

As a result of this confusion, amd64 was potentially leaking an XSAVE
buffer each time a new kstack was allocated for an existing thread,
since cpu_thread_alloc for amd64 always allocated a new XSAVE buffer.
In practice, this edge case is probably rare.  A process object needs
to be recycled where either the new or old process is a kernel process
with a non-default kernel stack size.

Nevertheless, to ease the confusion, redefine cpu_thread_alloc to only
be called once when a new thread is allocated.  The new callback,
cpu_thread_new_kstack is invoked each time a kstack is allocated for a
thread, including both at thread creation time and if a recycled
thread allocates a new kstack.  The new callback should set any fields
whose value is dependent on td_kstack (e.g. the user frame in
td_frame, or td_pcb if the PCB is allocated on the kstack).

Reviewed by:	kib, andrew (arm changes)
Sponsored by:	AFRL, DARPA
Pull Request:	https://ron-dev.freebsd.org/FreeBSD/src/pulls/23
2026-05-27 09:45:22 -04:00
Aymeric Wibo 071d82d997 acpi.4: Update sysctl descriptions with new stype names
Sponsored by:	The FreeBSD Foundation
2026-05-27 09:44:44 +01:00
Alan Somers 14b8531c4c padlock: Restore padlock_rng to the amd64 build
Revert 88a53301e1 and d1ca01059d .  They removed padlock_rng from the
amd64 build under the mistaken belief that this device was available on
32-bit processors only.  But it's also available on the 64-bit Via Nano,
Nano X2, and some Zhaoxin CPUs.

PR:		295517
Fixes:		88a53301e1 ("padlock.4: only install on i386")
Fixes:		d1ca01059d ("padlock(4)/nehemiah: move i386-only entropy")
MFC after:	1 week
Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D57215
2026-05-26 15:43:57 -06:00
Alex Richardson 004b5935a6 bsd.sys.mk: suppress some clang warnings for C++ for >= 19
I just tried building with system clang on one of my Linux systems which
happens to be version 19, and these warning suppressions are needed for
that version too: same errors as in the original commit.

Reviewed by:	imp
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D56874
2026-05-26 12:37:06 -07:00
Mark Johnston 895a0ae67f divert: Define semantics for SO_REUSEPORT_LB on divert sockets
Allow SO_REUSEPORT_LB to be set on divert sockets.  If set, then bind()
will add the socket to a "load-balancing group".  When a divert-to rule
matches a port with an associated group, the corresponding state ID is
used to select a specific socket from the group.  Packets without an
associated state are simply forwarded to the first socket in the group.
For now I only pass a state ID from pf, as I couldn't see a useful
identifier on the ipfw side.

This implementation is simple but has a caveat, that being that if
sockets are added to the group while flows are being processed, the size
of the group will change and this changes the mapping of state IDs to
sockets.  So, to get a consistent mapping, the divert socket application
must bind all of its sockets before any traffic is diverted by the
firewall.

Reviewed by:	glebius
MFC after:	1 month
Sponsored by:	OPNsense
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D56563
2026-05-26 16:04:54 +00:00
Bjoern A. Zeeb 11d69a4558 LinuxKPI: 802.11: add support for suspend/resume
Add support for automatic suspend/resume as we know it for wireless.
The problem is that the PCI driver which would normally gets the code
is the LinuxKPI PCI framework/Linux wireless driver, which we cannot
ammend or generally add extra suspend/resume code to.
A further problem is that with growing support, the LinuxKPI 802.11
(mac80211) layer also is involved in suspend/resume for WoWLAN (not
yet supported) meaning that we need to hook the suspend/resume
framework into that as well.  Unlike Linux we do not have a general
suspend/resume "hook" we can hang into and we need to tie this one
to the hardware so cannot indepedently (after the driver one) run it.

The solution for FreeBSD, in order to not mangle the Linux native
drivers and get extra maintanace overhead, is to add a bus child
which inherits the general framework and thus is 2 lines + #includes
for each driver extra to add to.

The general suspend/resume framework lives in LinuxKPI (linuxkpi_80211_pm)
and imitates the normal suspend/resume path overloading it (there is
a slight code/logic duplication from the PCI code).
Given we are passed the LinuxKPI p(ci)dev, we can go and peel out the
net80211 ic from the native bsddev and that way get access to the
wireless stack.  We then call into LinuxKPI 802.11 in order to do
the suspend/resume dance there, and, if needed also call the
official suspend/resume routine from the device driver after
(reverse for resume).
If any in this fails, suspend will be blocked as we will return the
error (no different to any native driver could do).

The LinuxKPI 802.11 suspend/resume code has the initial code for
doing a WoWLAN suspend (one could change the sysctl) but other bits
like access to ifnet flags etc. has to be sorted out before we can
go and support that.
The default code path calles into net80211 to clear everything
like native wireless drivers do.  The one thing we need to do in
addition is to remove the vif devices from the firmware and restore
them prior to net80211 resume.
We also check for a possible HW SCAN to still be runinng on resume
and warn as that may cause problems though the scan should be stopped
before suspend (we may still get a callback).  You can easily see
these problems if you suspend/resume without stopping the wlan.

Enable the PM framework for iwlwifi in the module Makefile to
be able to use all this; others can follow as tested.

In case anyone has problems with this, they can change the sysctl
back to 0 until we can figure out any further problems.
The linuxkpi_wlan.4 man page got adjusted to document this.

Sponsored by:	The FreeBSD Foundation
Tested on:	Dell XPS 13 (AX200), Lenovo TP X270 (AX210)
MFC after:	3 days
PR:		263632
2026-05-24 01:15:02 +00:00
Michael Osipov f30b1df048 mrsas.4: Use Broadcom/LSI consistently
Reviewed by:	ziaee (via IRC)
MFC after:	immediately
Differential Revision:	https://reviews.freebsd.org/D57211
2026-05-23 22:11:16 +02:00
Martin Cracauer 03c410ba17 man: Stop referring to non-existing manpage strlcpy(9)
Reviewed by: ziaee, mhorne, kevans
2026-05-21 16:08:08 -04:00
Olivier Certner 21df76d01f mac_do.4: Jail parameter takes 'new', not 'enable'; uid_t/gid_t are 32-bit
MFC after:	1 minute
Sponsored by:   The FreeBSD Foundation
2026-05-21 21:18:48 +02:00
Siva Mahadevan 02ef0b6d76 universe: allow moving build logs to UNIVERSE_LOGDIR
This allows `make universe` or `make tinderbox`
to build from a read-only src tree.

Reviewed by:	ziaee, imp, delphij
Approved by:	lwhsu (mentor), emaste (mentor)
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D55566
2026-05-21 10:16:48 -04:00
Pouria Mousavizadeh Tehrani b9a246a917 rtnetlink.4: Add RTA_PRIORITY
Add metric implementation of netlink to manual.

Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D56324
2026-05-21 00:25:04 +03:30
Alexander Ziaee 9096a8b1c8 crypto driver manuals: Add crypto to search index
While here, tag spdx and sync the drivers in crypto(4)/SEE ALSO.

MFC after:		2 days (add back hifn)
Differential Revision:	https://reviews.freebsd.org/D57060
2026-05-20 09:25:54 -04:00
Mateusz Piotrowski d04da19acb d.7: Document no support for ddi_pathnam(), getmajor(), and getminor()
MFC after:	3 days
2026-05-20 14:36:40 +02:00
Sergey A. Osokin 9958d0f1dc bsd-family-tree: add OpenBSD 7.9 2026-05-19 10:33:30 -04:00
John Baldwin ffcf5e3566 pci: Add is_pci_device helper function
This returns true if a given device is a PCI device (child of a PCI
bus).

Reviewed by:	bz, kib
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D56996
2026-05-18 14:50:39 -04:00
Dag-Erling Smørgrav 2af70d7a38 tcp: Make RFC 6191 support configurable
Add a default-on per-VIMAGE sysctl for RFC 6191 connection recycling.
This makes it possible to merge the change to older branches where it
can be switched off by default to minimize risk.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	Modirum MDPay
Reviewed by:	pouria, marius.h_lden.org, tuexen
Differential Revision:	https://reviews.freebsd.org/D57045
2026-05-18 16:50:14 +02:00
Mateusz Piotrowski 30f500e97b p9fs.4: MLINK to virtio_p9fs.4
Technically, virtio_p9fs is an emulated device that masquerades
as a p9fs mount, but it does not make sense to have two separate manual
pages.

Reviewed by:	bnovkov, dfr
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D57013
2026-05-18 11:12:12 +02:00
Konstantin Belousov 56bc43f5d0 locking.9: warn about using sleepable lock address as a sleep channel
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D57012
2026-05-17 22:55:23 +03:00
Bjoern A. Zeeb 0a2f7683bf man: iwlwifi/rtw88/rtw89: update man pages for Linux v7.0 based updates
For all:
- harmonize Copyright/license section according to style.9 and used
  SPDX only.
- mention that the current generation of the driver is based on
  Linux version 7.0.
- make linuxkpi.4 and linuxkpi_wlan.4 .Xr as the man pages do exist
  these days.

iwlwifi: update the card/chipset names supported (while we still can)
iwlwififw: leave a comment only that we can no longer update the
  man page and it will be removed in the future.
rtw88: update supported chipsets and add note to BUGS sections
rtw89: update supported chipsets and add note to BUGS sections

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	ziaee
Differential Revision: https://reviews.freebsd.org/D57019
2026-05-15 18:38:52 +00:00
Christos Margiolis 9354e204f5 sound: Force-disable hw.snd.compat_linux_mmap by default
Eventually this hack will be removed, so start by disabling it by
default.

Sponsored by:	The FreeBSD Foundation
MFC after:	12 months
Reviewed by:	emaste
Pull Request:	https://ron-dev.freebsd.org/FreeBSD/src/pulls/29
2026-05-15 17:08:11 +02:00
Christos Margiolis b9c10eeb38 sound: Improve hw.snd.compat_linux_mmap
- Reject PROT_EXEC in all cases when Linux support is not compiled in.
- Define sysctl only when Linux support is compiled in.
- Document better.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	emaste
Pull Request:	https://ron-dev.freebsd.org/FreeBSD/src/pulls/29
2026-05-15 17:08:11 +02:00
Alexander Ziaee bcd50fe5c3 style.mdoc: Explain why not to abuse Nm
MFC after:		3 days
Reviewed by:		0mp
Differential Revision:	https://reviews.freebsd.org/D55299
2026-05-15 08:50:42 -04:00
Mateusz Piotrowski ae0fd05a33 p9fs.4: Cross-reference mount(8)
MFC after:	3 days
2026-05-15 12:13:20 +02:00
Ed Maste f6178451ee src.opts.mk: Comment about CTF & DTRACE relationship
WITH_CTF enables building userland components with CTF, and not the ctf*
tools as one might expect.  The tools are actually included with the
DTRACE knob.  Add a comment where the dependency is handled, as this has
caused confusion.

Reported by:	ivy
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56977
2026-05-13 09:37:58 -04:00
Mateusz Piotrowski 03bc95b060 dtrace_dtmalloc.4: Document the DTrace dtmalloc provider
MFC after:	1 week
Discussed with:	christos, markj, ziaee
Differential Revision:	https://reviews.freebsd.org/D51396
2026-05-12 20:03:11 +02:00
Raphael 'kena' Poss e26b5e0749 spkr.4: Reflect latest changes and add history
- speaker(4) was recently modernized to lock the driver per-playback
  instead of per-open. Update the man page to explain this change.

- added a reference to MML and SMX in the historical context to make
  it easier for users to find additional documentation online.

Signed-off-by:	Raphael Poss <knz@thaumogen.net>
Reviewed by:	ziaee
Closes:		https://github.com/freebsd/freebsd-src/pull/2183
2026-05-11 23:14:16 -04:00
Kyle Evans 92f623e4a9 rge: add the Intel Killer E5000 PCI ID
This and the E3000 are both handled by the r8169 driver in Linux, and
reportedly this is infact just a straight re-brand of the RTL8126.

Tested by:	"Sinetek" on Discord
Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D56917
2026-05-11 10:26:03 -05:00
Mateusz Piotrowski 076e448391 uio.9: Document uiomove_fromphys()
Reviewed by:	kib
Discussed with:	markj, royger
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D54070
2026-05-08 11:05:57 +02:00