Commit Graph

23819 Commits

Author SHA1 Message Date
John Baldwin fd895b4f04 arch.7: Add CHERI architectures
Effort:		CHERI upstreaming
Co-authored-by:	Brooks Davis <brooks@FreeBSD.org>
Reviewed by:	kib, markj, jhb, emaste
Sponsored by:	Innovate UK, DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D52822
2025-10-08 10:33:41 +01:00
John Baldwin 2fe28202aa arch.7: decouple long and pointer sizes
Don't claim void* or (u)intptr_t are the same size as long.  This isn't
true for CHERI.

Effort:		CHERI upstream
Reviewed by:	kib, markj, jhb, emaste
Sponsored by:	Innovate UK, DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D52821
2025-10-08 10:33:41 +01:00
Brooks Davis 9e7eb261e6 arch.7: deprecate __ILP32__ and __LP64__ macros
With CHERI there now more options than __ILP32__ and __LP64__ so lack of
one does not imply the other.  Encourage the use of __SIZEOF_*__ macro
tests in their place.

Effort:		CHERI upstreaming
Reviewed by:	kib, markj, emaste
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D52820
2025-10-08 10:33:40 +01:00
Lexi Winter 0f5ed3c427 bsd.confs.mk: Support CONFGROUPS.yes
Align CONFGROUPS with other options like SUBDIRS and FILESGROUPS by
supporting the CONFGROUPS.yes option.  This means logic like this:

.if ${MK_FOO} != "no"
CONFGROUPS+= FOO
.endif

can be replaced by:

CONFGROUPS.${MK_FOO}+= FOO

MFC after:	1 week
Reviewed by:	imp
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D52923
2025-10-08 07:07:10 +01:00
Kristof Provost 306f29475f pf.conf.5: 'address' is mandatory with route-to
Adjust the BNF, and don't claim it is optional in the text.

PR:		290059
MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2025-10-07 10:21:45 +02:00
Maxim Konovalov dcb5ee4896 snl.3: use \e esc sequence for \ as per mandoc_char(7)
Suggested by:	cyric@mm.st
2025-10-06 21:12:15 +00:00
Alexander Ziaee 45f8336f3a ice.4: Improve SYNOPSIS
Remove prose from synopsis, adding sysctls and tunables.

MFC after:		3 days
Reviewed by:		kbowling
Differential Revision:	https://reviews.freebsd.org/D52913
2025-10-06 14:48:53 -04:00
Dag-Erling Smørgrav ec6ad605ec rc: Improve netwait DAD logic
Disable if IPv6 is not supported, and instead of 10 seconds, default to
one more than the value of net.inet6.ip6.dad_count.

Fixes:		5ead817c3b ("rc: Teach netwait to wait for DAD")
Reviewed by:	bz
Differential Revision:	https://reviews.freebsd.org/D52905
2025-10-05 20:42:33 +02:00
Rick Macklem 5000d023a4 heimdal-kadmin: Add support for the -f dump option
The "-f" dump option allows a dump of the Heimdal
KDC in a format that the MIT kdb5_util command can
load into a MIT KDC's database.
This makes transitioning from the Heimdal KDC to
the current MIT one feasible without having to
re-create the KDC database from scratch.

glebius@ did the initial work, cherry picking these
commits from the Heimdal sources on github and then doing
extensive merge conflict resolution and other fixes so
that it would build.
Heimdal commit fca5399 authored by Nico Williams:
Initial commit for second approach for multiple kvno.  NOT TESTED!

Heimdal commit 57f1545 authored by Nico Williams:
Add support for writing to KDB and dumping HDB to MIT KDB dump format
    Before this change Heimdal could read KDBs.  Now it can write to
    them too.

    Heimdal can now also dump HDBs (including KDBs) in MIT format,
    which can then be imported with kdb5_util load.

    This is intended to help in migrations from MIT to Heimdal by
    allowing migrations from Heimdal to MIT so that it is possible
    to rollback from Heimdal to MIT should there be any issues.  The
    idea is to allow a) running Heimdal kdc/kadmind with a KDB, or
    b) running Heimdal with an HDB converted from a KDB and then
    rollback by dumping the HDB and loading a KDB.

    Note that not all TL data types are supported, only two: last
    password change and modify-by.  This is the minimum necessary.
    PKINIT users may need to add support for KRB5_TL_USER_CERTIFICATE,
    and for databases with K/M history we may need to add KRB5_TL_MKVNO
    support.

This resulted in a Heimdal kadmin that would dump
the KDC database in MIT format.  However, there
were issues when this dump was loaded into the
current MIT KDC in FreeBSD current/15.0.

The changes I did to make the dump more useful are listed below:
When "-f MIT" is used for "kadmin -l dump" it writes
the dump out in MIT format.  This dump format is understood
by the MIT kdb5_util command.  The patch modifies the above
so that the MIT KDC's master key keytab file can be provided
as the argument to "-f" so that the principals are re-encrypted in
it. This allows any principal with at least one strong encryption
type key to work without needing a change_password.
The strong encryption types supported by the Heimdal KDC are:
aes256-cts-hmac-sha1-96
aes128-cts-hmac-sha1-96

The issues my changes address are:
- If there are weak encryption keys in a principal's entry,
  MIT's kadmin.local will report that the principcal's entry
  is incomplete or corrupted.
- The keys are encrypted in Heimdal's master key.  The
  "-d" option can be used on the "kadmin -l dump" to
  de-encrypt them, but the passwords will not work on the
  current MIT KDC.

To try and deal with the above issues, this patch modied the above to:
- Does not dump the weak keys.
- Re-encrypts the strong keys in MIT's master key if the argument
  to "-f" is actually a filename which holds the MIT KDC's
  master key keytab and not "MIT".
- For principals that only have weak keys, it generates
  a fake strong key. This key will not work on the MIT
  KDC, but the principal entry will work once a
  change_password is done to it.
- It always generates a "modified_by" entry, faking one if
  not already present in the Heimdal KDC database.
  This was necessary, since the MIT kadmin will
  report that the principal entry is "incomplete or
  corrupted" without one.

It also fixed a problem where "get principal" no longer
worked after the initial patch was applied.

A man page update will be done as a separate commit.

I believe this commit is acceptable since the Heimdal
sources are now essentially deprecated in favor of the
MIT sources and that this new "-f" patch simplifies
the transition to the MIT KDC.

Discussed with:	glebius, cy
MFC after:	3 days
2025-10-05 09:18:35 -07:00
Lexi Winter 0242d4c3ae libc: Move NLS catalogues to the locales packages
We don't want to put these in clibs (where libc is) since they are not
critical to system operation.  Move them to locales, since anyone who
is interested in translated versions of strerror() is going to have
that installed anyway.

While here, add some more documentation to bsd.nls.mk, particularly
the NLSPACKAGE option.

MFC after:	3 seconds
Reviewed by:	manu, kib
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D52898
2025-10-05 06:12:54 +01:00
Alexander Ziaee 6720975ba0 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
2025-10-04 19:24:22 -04:00
Brad Davis 85531add28 ice.4: Avoid first person language
Approved by:	ziaee
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D52896
2025-10-04 14:45:57 -06:00
Ed Maste a8d774d970 man: Conditionally install ar.5 in toolchain package
Previously if WITHOUT_TOOLCHAIN was set we'd create a FreeBSD-clang
package that contained only ar.5.  As ar.5 describes the ar format
and doesn't come from Clang/LLVM move it to the FreeBSD-toolchain
package and make it conditional on MK_TOOLCHAIN.

Reviewed by:	ivy
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52886
2025-10-03 13:19:36 -04:00
Warner Losh f19aea89ab 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
2025-10-03 10:35:28 -04:00
Warner Losh bc433a0b7b 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
2025-10-03 10:35:27 -04:00
Maxim Konovalov 2ed9abe1d8 snl.3: escape \n propertly
Reported by:	Bruno Silvestre
2025-10-02 18:15:16 +00:00
Alexander Ziaee 34a2b5b09a umass.4: Remove some extra lines which snuck in
Fixes:		70993c2fbe (umass.4: Add HISTORY, HARDWARE, and SPDX)
MFC with:	70993c2fbe (umass.4: Add HISTORY, HARDWARE, and SPDX)
2025-10-02 14:02:01 -04:00
Alexander Ziaee 70993c2fbe umass.4: Add HISTORY, HARDWARE, and SPDX
While here, break a long line that agitates the linter.

Fixes:		cc16f1b9d9 (Add umass.c)
MFC after:	1 hour
Discussed with:	imp, ivy

diff --git a/sys/dev/usb/FILES b/sys/dev/usb/FILES
2025-10-02 13:45:15 -04:00
Ed Maste 44f3e9f7f6 usbhid.4: Note where debug messages go
PR:		280377
Sponsored by:	The FreeBSD Foundation
2025-10-02 12:51:58 -04:00
Ed Maste 7b18bf2a22 usbhid.4: Note that it was enabled by default for 15.0
Also add cross-references to hkbd.4 and hms.4.

Sponsored by:	The FreeBSD Foundation
2025-10-02 12:17:53 -04:00
Alexander Ziaee e4e412e45a thunderbolt.4: Mention Thunderbolt 3
MFC after:	1 hr
Reported by:	emaste
Fixes:		2f7a796b59 (thunderbolt.4: Initial manual)
2025-10-02 11:37:12 -04:00
Alexander Ziaee 0c1c81c479 mmcsd.4: s/DESCRIPTION/HARDWARE + HISTORY + SPDX
This manual only describes a tiny amount suitable for the HW Relnotes.
Remove the description section and replace it with a hardware section
which will appear there.

MFC after:	3 minutes
Reported by:	ivy
History Ref:	5bcb64f20a (Add mmc and mmcsd)
2025-10-02 11:13:31 -04:00
Alexander Ziaee 2f7a796b59 thunderbolt.4: Initial manual for HW Relnotes
This manual contains nothing and is only suitable for the HW Relnotes,
but lets get it in so we have something and then can iterate on it.

MFC after:		3 minutes
Fixes:			2ed9833791 (thunderbolt: Import USB4 code)
Discussed with:		obiwac
Differential Revision:	https://reviews.freebsd.org/D52847
2025-10-02 11:12:48 -04:00
Dag-Erling Smørgrav 5ead817c3b rc: Teach netwait to wait for DAD
In some configurations, especially in jails, it is possible for the
system to boot so fast that we end up launching daemons while duplicate
address detection is still ongoing.  If that happens, said daemons may
fail to bind to IPv6 addresses, as they are still tentative.  Teach the
netwait service to wait (up to 10 seconds, by default) for the tentative
flag to vanish.

MFC after:	1 week
Reviewed by:	olce
Differential Revision:	https://reviews.freebsd.org/D51889
2025-10-02 11:31:16 +02:00
Brooks Davis f7b6ea699b arch.7: correct claim about ILP32 alignment
Only i386 lays out structures with weak (4-byte) alightment.  It may be
that access works when weakly aligned, but from an ABI perspective, it's
all about struct layout.

Reviewed by:	kib, emaste
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D52818
2025-10-02 10:28:35 +01:00
Brooks Davis 0a551f8a7d arch.7: Remove mention of PDP11_ENDIAN
AFACT, this was never accurate.  When there was support (such as it was)
for PDP endian it seems to have been spelled PDP_ENDIAN.

Reviewed by:	imp, kib, emaste
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D52817
2025-10-02 10:28:35 +01:00
Brooks Davis 90d2aedbb9 bsd.cpu.mk: Fix whitespace appending to MACHINE_ABI
No functional change.

Effort:		CHERI upstreaming
Reviewed by:	imp
Fixes:		426fc376af ("bsd.cpu.mk: Introduce MACHINE_ABI")
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D52833
2025-10-02 10:28:35 +01:00
Gleb Smirnoff e91fc88bca ip(4): fix description of struct ip_mreqn
This is a minor bug, since the kernel ignores imr_address and applications
are not supposed to initialize it.
2025-10-01 12:41:51 -07:00
Kristof Provost ebb60d47a5 Revert "IfAPI: Added missing accessor for if_home_vnet"
This reverts commit 4e7a375804.

We do not want out-of-tree consumers to access the home_vnet variable.

As discussed with the author and Gleb Smirnoff.
2025-10-01 18:13:54 +02:00
Olivier Certner f456081242 namei.9: Remove duplicate WANTPARENT description
Fixes:          5673462af5 ("namei.9: sort operational modifiers in numerical order")
MFC after:      2 days
Sponsored by:   The FreeBSD Foundation
2025-09-30 19:25:08 +02:00
Michael Tuexen 6e4b811009 vtnet: disable hardware TCP LRO by default
Hardware TCP LRO results in problems in settings with IP forwarding
being enabled. In case of nodes without IP forwarding, using
software LRO is also beneficial in general, since it can provide better
information about what was received on the wire.
Therefore, disable hardware TCP LRO by default.
By tuning the loader tunable, this can be changed.

PR:			263229
Reviewed by:		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D52684
2025-09-30 02:03:49 +02:00
Alexander Ziaee 2c2a2b8281 ahc.4,ahd.4: Improve HARDWARE + tag SPDX
Add some context for the Hardware Relnotes, and tag SPDX while here.

MFC after:	3 days
2025-09-29 18:36:29 -04:00
Lexi Winter 614c8750ce Remove ftpd(8)
This was previously deprecated and is slated for removal in 15.0.
Users who still need ftpd(8) can install the ftp/freebsd-ftpd port.

Retain the ftp(d) PAM services since other FTP daemons use them.

Update /etc/inetd.conf to point to /usr/local.

Add ftpd to ObsoleteFiles, but do not list configuration files since
users may want to preserve these to use with the freebsd-ftpd port.

There is still some language in the manual referring to ftpd(8)
which is relevant to the port, which has been retained but updated
to reference the port.

MFC after:	3 days
Relnotes:	yes
Reviewed by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D52739
2025-09-29 22:53:34 +01:00
ItzBlinkzy 4e7a375804 IfAPI: Added missing accessor for if_home_vnet
Reviewed by:	kp
Signed-off-by:	Kevin Irabor <kevin.irabor04@gmail.com>
2025-09-29 23:15:55 +02:00
Alexander Ziaee 17be686a39 aac.4: Improve HARDWARE introductory sentance
For the improvement of the hardware release notes. While here, tag SPDX.

MFC after:	3 days
2025-09-29 15:59:47 -04:00
Olivier Certner c87a9f51a0 share/man/man9: Fix compilation
I goofed in the previous commit.

Fixes:          05e5de00b9 ("vn_fullpath.9: Add missing links for described functions")
MFC after:      3 days
Event:          EuroBSDCon 2025
Sponsored by:   The FreeBSD Foundation
2025-09-29 20:58:03 +02:00
Olivier Certner 05e5de00b9 vn_fullpath.9: Add missing links for described functions
To reflect all the functions that are now described in the manual page.

Fixes:          9f269a0a77 ("MAC/do: Check executable path ...")
MFC after:      3 days
Event:          EuroBSDCon 2025
Sponsored by:   The FreeBSD Foundation
2025-09-29 19:49:27 +02:00
Olivier Certner c5a813c9f4 vfs cache: Add vn_fullpath_jail(), factor out common code
Introduce vn_fullpath_jail(), which returns a path to the passed vnode
relative to the current jail's root.  It will be used by mac_do(4) in
a subsequent commit.

Factor out common code between the new variant and vn_fullpath().  While
here, rework the comments a bit.

Add vn_fullpath_jail() to the vn_fullpath.9 manual page.  While here,
document all the existing public vn_fullpath*() functions.

Reviewed by:    kib (except latest manual page changes)
MFC after:      3 days
Event:          EuroBSDCon 2025
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52757
2025-09-29 19:37:08 +02:00
Tiago Gasiba d4cbdd9ad0 committers-ports.dot: add tiga and mentors
Onboard new ports committer Tiago Gasiba (tiga)
in accordance with step 5 of sec. 7.1 committer's guide

PR: 289889
Approved by:    eduardo, flo (mentors)
2025-09-29 19:03:04 +02:00
Navdeep Parhar 1ba1c78329 cxgbe(4): Claim T7 based devices
The nexus/ifnet names are chnex/che respectively.

MFC after:	3 days
Sponsored by:	Chelsio Communications
2025-09-29 07:25:58 -07:00
Alexander Ziaee c856f327fa mpr.4: Improve HARDWARE introductory sentance
Add context for inclusion in Hardware Release Notes.

MFC after:	3 days
2025-09-29 09:23:24 -04:00
Vladlen Popolitov 008d04b297 vladlen@ joins comitters-doc and calendar.freebsd
Reviewed by: maxim (mentor)
Approved by: maxim (mentor)
Differential Revision: https://reviews.freebsd.org/D52769
2025-09-28 22:44:33 +03:00
Olivier Certner c1d5fc4e0c mac_do.4: Mention "from" part's GID can also match supplementary groups
MFC after:      3 days
Event:          EuroBSDCon 2025
Sponsored by:   The FreeBSD Foundation
2025-09-28 16:01:55 +02:00
Mateusz Piotrowski f34e1c76ad sysctl.9: Fix grammar in *TUN descriptions
Reported by:	bcr
Reviewed by:	bcr
MFC after:	3 days
Event:		EuroBSDCon 2025
Fixes:	5eb1caa8c8 Updated SYSCTL manual pages
Differential Revision:	https://reviews.freebsd.org/D52768
2025-09-28 11:27:08 +02:00
Alexander Ziaee 52eb7e394a mrsas.4: Cleaning
+ Rewrite SYNOPSIS for consistency
+ Rewrite HARDWARE for HW Relnotes, and add some stragglers
+ Correct mdoc grammar, making sysctls aproposable and linking xrefs
+ Clean up TODO, cannonicalize to CAVEATS, a standard section
+ Editorial pass, tag SPDX

MFC after:		3 days
Reviewed by:		imp
Differential Revision:	https://reviews.freebsd.org/D52125
2025-09-27 23:42:30 -04:00
Mateusz Guzik 7e4c451c12 vfs: retire the VREF macro
It is defined as a plain use of vref.

Churn generated with coccinelle:
@@
expression vp;
@@

- VREF(vp)
+ vref(vp)
2025-09-27 04:00:59 +00:00
Mateusz Guzik 5c0e5f418d BUF_ISLOCKED.9: drop a reference to lockstatus(9)
It's the same as lockmgr(9), which the man page already refers to.
2025-09-27 04:00:59 +00:00
Michael Tuexen eaf619fddc vtnet: improve interface capability handling
Enable the handling of the IFCAP_RXCSUM_IPV6 handling by handling
IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6 as a pair. Also make clear, that
software and hardware LRO require receive checksum offload.

Reviewed by:		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D52682
2025-09-26 12:12:51 +02:00
Alexander Ziaee 7e8fb7756c build.7: Improve building pkgbase
The packages target was previously listed under kernel, move it to the
general source make targets listing. Add the update-packages target as
well. Adjust the release building targets with package in their names
to clarify they are unrelated to pkgbase. Add the OBJROOT and REPODIR
variables to ENVIRONMENT.

MFC after:              3 days
Reviewed by:		ivy, markj (both previous versions)
Suggestions by:         des, emaste, ivy, kevans, markj
Fixes:                  1d26746cfd (Document the packages target)
Fixes:                  0ac8aa55da (Add incremental packages)
Fixes:                  26490d9b74 (allow update-packages for first)
Differential Revision:	https://reviews.freebsd.org/D50289
2025-09-25 15:14:26 -04:00
Lexi Winter 72bf56e273 freebsd-base.7: New manpage describing pkgbase
This covers the basic structure of pkgbase, how packages are
distributed, how package sets work, and provides a few example
of actually using pkgbase.

MFC after:	6 hours
Approved by:	re (cperciva)
Reviewed by:	ziaee, cperciva
Differential Revision:	https://reviews.freebsd.org/D52644
2025-09-25 19:25:10 +01:00