Commit Graph

23915 Commits

Author SHA1 Message Date
Mark Johnston 93075bdb81 net: Remove the IFF_RENAMING flag
This used to be needed when interface renames were broadcast using the
ifnet_departure_event eventhandler, but since commit 349fcf079c
("net: add ifnet_rename_event EVENTHANDLER(9) for interface renaming"),
it has no purpose.  Remove it.

Reviewed by:	pouria, zlei
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D55171
2026-02-10 13:45:06 +00:00
Baptiste Daroussin 8d4c1043bb usb_vendors: update to 2025.12.13 2026-02-10 14:38:48 +01:00
Bjoern A. Zeeb 3f4213f00a rtw88: remove more references to rtw88fw
When I removed the Realtek rtww8x firmware from base I missed to
add rtw88fw.4 to ObsoleteFiles.inc [1].
While adding this, also remove a leftover reference in rtw88.4.

Reported by:	Herbert J. Skuhra (herbert gojira.at) [1]
Fixes:		cf94672363
MFC after:	3 days
2026-02-10 13:36:06 +00:00
Baptiste Daroussin 1acfc913e6 pci_vendors: update to 2026-02-10 2026-02-10 14:33:42 +01:00
Kalevi Kolttonen e4b1dc4328 Fix typo in build(7) man page
Signed-off-by: Kalevi Kolttonen <kalevi@kolttonen.fi>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2009
2026-02-08 13:58:45 -07:00
Alexander Ziaee c59f12da11 accf_*.9: Rewrite broken synopsis
These manuals abused the name macro for every line of kernel cfg as well
as an example command to show the module name which was mixed in without
separation. This bugs the whatis database into thinking that `INET` and
`kldload` are names for this page, and violates best practice by mixing
commands and configuration in a continuous example.

Rewrite to use the kernel configuration macro, Cd, and show the module
name via an example configuration in rc.conf, according to the spec and
established practice. Do not bump the date because these markup errors
are not a content change.

MFC after:	3 days
2026-02-07 16:54:59 -05:00
David Marker 525d00dcf4 vmrun.sh: add option for sharing directory via p9fs to bhyve
Reviewed by:	markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D55100
2026-02-07 21:29:04 +00:00
Joseph Mingrone deb3c9dc54 development.7: Refer to new port name for git-arc
The git-arc script was moved from devel/freebsd-git-devtools to
devel/freebsd-git-arc.

Reviewed by:	ziaee
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55128
2026-02-06 23:33:46 -04:00
Alexander Ziaee 8c40c7bb36 committers-ports: Belatedly add jwb
PR:		292962
MFC after:	3 days
2026-02-05 09:16:22 -05:00
Alexander Ziaee e54a1ef4eb builtin.1: Command list maintenance
+ link to return(1) like the other exclusive builtins
+ fix alphabetical sorting of list in rendered manual

MFC after:	3 days
2026-02-04 22:40:39 -05:00
Aymeric Wibo 9d4bad45e2 EVENTHANDLER.9: EVENTHANDLER_REGISTER never fails
Since ecdf4409f9 ("Rework the eventhandler locking [...]"),
EVENTHANDLER_REGISTER() can never return NULL.

Suggested by:	olce
Reviewed by:	olce, ziaee, zlei
Approved by:	olce, zlei
Fixes:	ecdf4409f9 ("Rework the eventhandler locking [...]")
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D55014
2026-02-03 15:56:40 +01:00
Alexander Ziaee a97ed3a39c vt.4: Sprinkle mdoc macros
Now that we have angle bracket characters for all common display sizes,
sprinkle in the correct macros for the structures in this page. While
here, fix a mdoc typo, a linter warning, and switch a parenthetical to
a much smoother appositive.

MFC after:	3 days
Fixes:		7cd6da268a (vt.4: Style pass)
2026-02-01 10:52:54 -05:00
Alexander Ziaee 1f5795b642 INDEX.fonts: Minor maintenance
+ Mention relevance of this file in the vt manual screen.font entry
+ The vidfont manual is in section one, not eight
+ Remove leftover blank line from freebsd tag removal

MFC after:	3 days
2026-01-31 19:27:37 -05:00
Christos Margiolis b9289743f4 src.opts: Remove MK_SOUND artifact
Fixes:		f74f891581 ("src.opts: Introduce MK_SOUND")
PR:		291853
Sponsored by:	The FreeBSD Foundation
MFC after:	4 days
2026-01-30 18:14:28 +02:00
Timo Völker 574d46b25a epair: add VLAN_HWTAGGING
Add capability VLAN_HWTAGGING to the epair interface and enable it by
default.
When sending a packet over a VLAN interface that uses an epair
interface, the flag M_VLANTAG and the ether_vtag (which contains the
VLAN ID and/or PCP) are set in the mbuf to inform the hardware that
the VLAN header has to be added. The sending epair end does not need
to actually add a VLAN header. It can just pass the mbuf with this
setting to the other epair end, which receives the packet. The
receiving epair end can just pass the mbuf with this setting to the
upper layer. Due to this setting, the upper layer believes that there
was a VLAN header that has been removed by the interface.
If the packet later leaves the host, the outgoing physical interface
can add the VLAN header in hardware if it supports VLAN_HWTAGGING.
If not, the implementation of Ethernet or bridge adds the VLAN header
in software.

Reviewed by:		zlei, tuexen
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D52465
2026-01-30 11:54:33 +01:00
Maxim Konovalov c443f5d1c2 intro.9: grammar 2026-01-30 04:51:24 +00:00
Maxim Konovalov 7f537f4ba8 intro.9: deduplicate vm_page Xrs
PR:		292820
Submitted by:	Kraytonian
MFC after:	1 week
2026-01-30 04:48:56 +00:00
Jessica Clarke ba56760a47 Revert "src.opts.mk: Enable LLDB by default globally"
This breaks the riscv64 build; clearly the version we have in-tree is
not new enough to work. That or our build system needs tweaking. Either
way, we're not ready for this, and enabling it without testing was
misguided.

This reverts commit c59a47dc6c.
2026-01-30 01:11:13 +00:00
Konstantin Belousov 0730a05cd3 tuning.7: document schedulers knobs
Reviewed by:	emaste, olce, ziaee
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54951
2026-01-30 00:43:45 +02:00
Artem Bunichev eb0fc67c45 src.conf.5: Cross-reference uname(1) manual page
Reviewed by:		emaste, ziaee
Differential Revision:	https://reviews.freebsd.org/D54688
2026-01-29 12:44:46 -05:00
Ed Maste c59a47dc6c src.opts.mk: Enable LLDB by default globally
Previously it was enabled for all architectures except but RISC-V.
Upstream made significant progress on RISC-V support over the last
year[1], and although there's still some FreeBSD-specific work to do we
can start building it now.

[1] https://jonasdevlieghere.com/post/lldb-2025/

Sponsored by:	The FreeBSD Foundation
2026-01-28 18:13:52 -05:00
John Baldwin 6fb87a1a60 bsd.sys.mk: Silence a few GCC warnings for C++
These warnings were already marked with -Wno-error=, but they trigger
so many false positives in libc++ headers to be utterly useless for
C++ code, so disable them entirely for C++.

Reviewed by:	imp, dim
Differential Revision:	https://reviews.freebsd.org/D54867
2026-01-27 13:39:05 -05:00
Roman Bogorodskiy b01763b2b2 bhyve: make BHYVE_SNAPSHOT amd64-only
Build fails with BHYVE_SNAPSHOT enabled on non-amd64,
so add it to BROKEN_OPTIONS for these arches.

PR:			292686
Reviewed by:		emaste, markj
MFC after:		3 days
Sponsored by:		The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54873
2026-01-27 17:55:17 +01:00
Mark Johnston 120c0bb833 divert: Update divert.4 to mention pf
pf's divert-to action can be used to pass packets to a divert socket,
but divert.4 didn't mention this, only referencing ipfw.  Try to make
the text a bit more general.

Reviewed by:	igoro, kp, glebius
MFC after:	2 weeks
Sponsored by:	OPNsense
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D54848
2026-01-27 14:04:48 +00:00
Jonathan T. Looney fb4b0c9119 witness: Provide facility to print detailed lock tree
When witness(4) detects lock order reversals (LORs), it prints
information about the stack trace which caused the LOR. If available,
it can also print information about the first stack trace which
established the other lock ordering. However, it only does this for
"simple" LORs where the two locks in question were directly locked
in the opposite order. When the lock order was established through
a more complex pattern of intermediate locks, WITNESS only prints
the stack trace where it detected the LOR.

This commit provides new functionality to provide more verbose
information about the lock chain(s) which established the lock
ordering. The new functionality can be disabled by setting the
debug.witness.trace sysctl/tunable to 1. The new functionality
is also available through the debug.witness.badstacks sysctl,
which has been modified to always show the more verbose
information.

Reviewed by:	markj, glebius (previous version), kib (previous version)
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D54785
MFC after:	1 month
2026-01-26 20:22:57 +00:00
Jose Luis Duran fe962e33d8 METALOG: Order keyword entries
To facilitate comparison with mtree -C generated output, keep the
keywords ordered.

No functional change intended.

Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54872
2026-01-26 20:19:44 +00:00
Aymeric Wibo c5daa5a4c3 acpi_spmc: Add system power management controller driver
Add SPMC (system power management controller) driver as acpi_spmc. This
is the device which provides the LPI device D-state constraints and
allows for OSPM to send S0ix/modern standby entry/exit notifications.
This supports the original Intel DSM
(https://uefi.org/sites/default/files/resources/Intel_ACPI_Low_Power_S0_Idle.pdf,
untested), the AMD DSM (tested), and the Microsoft DSM (tested).

Before entry, acpi_spmc_check_constraints is called to notify of any
violated power constraints. This will use acpi_pwr_get_state to get
current device D-states when that gets added back.

Reviewed by:	olce
Tested by:	jkim, Oleksandr Kryvulia, Matthias Lanter
Approved by:	olce
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D48387
2026-01-26 14:42:11 +01:00
Konstantin Belousov ec8e8fa601 rights.4: document CAP_PDWAIT
Noted by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54592
2026-01-25 17:54:22 +02:00
Michael Osipov 28764001b5 vt.4: Document that hw.vga.textmode does not apply for UEFI(8) boot
PR:		292598
Approved by:	ziaee, imp
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D54842
2026-01-24 19:41:29 +01:00
Artem Bunichev e6bafbeb1e capsicum.4: Replace 'fi' ligature and smart quotation mark
While here, wrap the line to 80 characters.

Reviewed by:	jlduran
Fixes:		c54534e602 ("capsicum.4: Add some more detail from the Capsicum paper")
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D54761
2026-01-23 16:22:46 +00:00
Sarah Walker 98cb4874e2 simd.7: Add Arm MOPS memcpy(), memmove() and memset() to manpage
Fixes:			41ccf82b29 (Use MOPS implementations)
Reviewed by:		ziaee
Sponsored by:		Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D54812
2026-01-21 11:51:10 -05:00
Ed Maste 466bad427d src.conf.5: Add WITHOUT_SOUND description
Fixes: f74f891581 ("src.opts: Introduce MK_SOUND")
Sponsored by:	The FreeBSD Foundation
2026-01-20 13:13:10 -05:00
Cy Schubert 1876de606e krb5: Expose missing symbols
Add symbols found in the port but not in base. This requires replacing
a shared libkrb5profile.so with libkrb5profile.a (with -fPIC so it can
be used by shared libraries). We do this by making libkrb5profile
INTERNALLIB.

Base currently has libkrb5profile in a shared library. The patch moves
those functions to the various "consumer" libraries as the port does.

Symbols that should be in the other libraries are in libkrb5profile.so.
This is causing some ports issues.

PR:		291695
Reported by:	michaelo, markj,  Chris Inacio <inacio@andrew.cmu.edu>
Tested by:	michaelo
Fixes:		ae07a5805b
Reviewed by:	michaelo (previous version)
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D54323
2026-01-20 05:41:02 -08:00
Timo Völker 6f15ba8004 ip: improve deferred computation of checksums
This patch adds the same functionality for the IPv4 header checksum
as was done erlier for the SCTP/TCP/UDP transport checksum.
When the IP implementation sends a packet, it does not compute the
corresponding checksum but defers that. It will determine whether the
network interface selected for the packet has the requested capability
and computes the checksum in software, if the selected network
interface does not have the requested capability.
Do this not only for packets being sent by the local IP stack, but
also when forwarding packets. Furthermore, when such packets are
delivered to a local IP stack, do not compute or validate the checksum,
since such packets have never been on the wire. This allows to support
checksum offloading also in the case of local virtual machines or
jails. Support for epair interfaces will be added in a separate commit.

Reviewed by:		pouria, tuexen
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D54455
2026-01-20 11:36:40 +01:00
Kyle Evans bef0475b68 mac(4): also list jails in the example enumeration of objects
The prison may also be considered part of the subject by way of its
ucred association, but I don't think this is significantly different
enough today than before recent work -- policies could have always
taken them into account, and some did (e.g., mac_bsdextended).

Reported by:	olce
Reviewed by:	olce, ziaee
Differential Revision:	https://reviews.freebsd.org/D54748
2026-01-19 20:57:42 -06:00
Kristof Provost 2e0e45a516 pfctl(8): change default limiter action from no-match to block
pf(4) users who use limiters in current should update the rules
accordingly to reflect the change in default behavior. The existing
rule which reads as follows:

    pass in from any to any state limiter test

needs to be changed to:

    pass in from any to any state limiter test (no-match)

OK dlg@

Obtained from:	OpenBSD, sashan <sashan@openbsd.org>, c600931321
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2026-01-19 23:04:55 +01:00
Konstantin Belousov 7f026a5869 Document pthread_tryjoin_np(3)
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54766
2026-01-19 18:50:02 +02:00
Pouria Mousavizadeh Tehrani adb66ef8c6 netlink(4): Add snl(3) to See Also section
While here, fix manlint warnings in rtnetlink(4).

Reviewed by: melifaro, ziaee, glebius
Approved by: glebius (mentor)
Differential Revision: https://reviews.freebsd.org/D53786
2026-01-18 11:52:13 +03:30
Xin LI 8e6843db9b libc: drop NO_FP_LIBC support
NO_FP_LIBC was added in 2004 to save space by disabling FP support in
*printf()/*scanf(). The size benefit is negligible on modern systems
and conflicts with assumptions made by current base utilities.

Remove the option and always build libc with floating-point support.

Reported by:	Oskar Holmlund <eovholmlund at gmail com>
MFC after:	2 weeks
2026-01-16 22:43:40 -08:00
Artem Bunichev fd34f549b7 termios.4: Cross-reference stack(9) for STATUS
If the kernel is built without stack(9) (options STACK),
then the mentioned sysctl(8) kern.tty_info_kstacks will not be found.

MFC after:		3 days
Reviewed by:		kib, ziaee
Differential Revision:	https://reviews.freebsd.org/D54701
2026-01-16 15:22:30 -05:00
Siva Mahadevan 33f2f3049a committers-src: add myself (siva@)
Reviewed by:		lwhsu
Approved by:		lwhsu (mentor)
Differential Revision:	https://reviews.freebsd.org/D54744
2026-01-16 13:22:32 -05:00
Michael Tuexen bbd30927b1 bge: disable TXCSUM if UDP transmit checksum offloading is disabled
The bge interface is special with respect to transmit checksumi
offloading. In the default settings, an bge interface announces TXCSUM
capabilities, but only supports TCP/IPv4 and not UDP/IPv4 due to
limitations of some of the NICs. This results in problems when the bge
interface becomes a member of a bridge. Since currently only the
TXCSUM capabilities are synced when a member is added to a bridge and
not the protocol specific capabilities, this can result in a situation
where UDP packets are sent out using a bge interface without having a
correct checksum.
To mitigate this problem, initially don't announce TXCSUM capabilities,
when UDP transmit checksum is disabled. It is still possible to enable
TXCSUM capabilities via ifconfig.

PR:			291420
Reviewed by:		Timo Voelker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D54486
2026-01-16 13:36:53 +01:00
Kyle Evans 1e8c28712a jail: document the mac.label parameter
In particular, we should provide a hint about mac.conf(5), since libjail
will just use the mac_prepare_type(3) API to provide a reasonably sane
interface for system administrators.  Progammers wanting to fetch an
arbitrary MAC label would need to bypass libjail and use jail_get(2)
directly with their own prepared `struct mac`.

Differential Revision:	https://reviews.freebsd.org/D54067
2026-01-15 18:23:40 -06:00
Kyle Evans 8254b0dec0 kern: mac: add various jail MAC hooks
This adds the following hooks:
 - mpo_prison_check_attach: check for subject capability to attach to
    a given jail
 - mpo_prison_check_create: check for subject capability to create a
    jail with the given option set
 - mpo_prison_check_get: check for subject capability to fetch the
    given parameters for a jail
 - mpo_prison_check_set: check for subject capability to set the
    given parameters for a jail
 - mpo_prison_check_remove: check for subject capability to remove the
    jail

check_get wouldn't typically be a privileged operation, but is included
to give MAC policies a wider range of capabilities at a relatively low
cost.  We also add two more for the purpose of label propagation:
 - mpo_prison_created: surface the creation of a jail so that one can
    do propagation to, e.g., the root vnode or any mounts
 - mpo_prison_attached: attach an existing process to the jail so that
    one can propagate the jail label to the process, as appropriate.

It is unclear if this is preferred vs. having separate associate entry
points for each type of object we might associate.  That would split
these up like so:

 - prison_created -> prison_associate_vnode
 - prison_attached -> prison_associate_proc

Some sample policy ideas that should be feasible to implement with this
set of hooks, in case it's inspiring:
 - mac_bomb: policy that allows a poudriere user to construct jails
    without root privilege, given a restricted set of jail parameters.
    Slap a warning label on it.
 - mac_capsule: policy that realizes the capsule idea that I pitched[0]
    on -jail@ to create jails that are effectively immutable once
    sealed, using these hooks and a label.

Perhaps a silly idea, but a downstream could consider a scenario where
it can implement special jail enumeration using a MAC policy and a
cooperating application that specifies non-parameter options to filter
the results.

[0] https://lists.freebsd.org/archives/freebsd-jail/2025-September/000550.html

Reviewed by:	olce (slightly earlier version)
Differential Revision:	https://reviews.freebsd.org/D53954
2026-01-15 18:23:39 -06:00
Johan Söllvander 5d844f004f committers-src: add myself (js@) with asomers as mentor
Reviewed by:	asomers
Approved by:	asomers (mentor)
Differential Revision:	https://reviews.freebsd.org/D54715
2026-01-15 09:05:45 +01:00
Jonathan T. Looney 9c4a41d33b mca(4): Add man page
Reviewed by:	markj
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D54115
2026-01-14 16:26:45 +00:00
Konstantin Belousov 6f41575a94 tuning.7: wording fixes
Submitted by:	markj
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54572
2026-01-14 17:38:24 +02:00
Oliver Pinter 8cd687a726 tuning.7: use the correct word for collapsing
Fixes: 457b940bfb
Signed-off-by: Oliver Pinter <oliver.pntr+freebsd@gmail.com>
MFC after:	1 week
2026-01-14 17:38:18 +02:00
Kristof Provost 8716d8c7d9 pf: configurable action on limiter exceeded
This change extends pf(4) limiters so administrator
can specify action the rule executes when limit is
reached. By default when limit is reached the limiter
overrides action specified by rule to no-match.
If administrator wants to block packet instead then
rule with limiter should be changed to:

   pass in from any to any state limiter test (block)

OK dlg@

Obtained from:	OpenBSD, sashan <sashan@openbsd.org>, 04394254d9
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2026-01-14 07:44:43 +01:00
Kristof Provost 1550fcf802 pf.conf.5: s/State Limiter/&s/ in .Ss
linked with the plural from other text, and
matches "Source Limiters. From Atanas Vladimirov.

Obtained from:	OpenBSD, sthen <sthen@openbsd.org>, d4acfc5766
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2026-01-14 07:44:43 +01:00