Commit Graph

305016 Commits

Author SHA1 Message Date
John Baldwin 7980cf5d6f Centralize definition of ZFSTOP
Define this helper variable in one place and make it available while
building the entire base system.

Reviewed by:	sjg
Obtained from:	CheriBSD (mostly)
Differential Revision:	https://reviews.freebsd.org/D53790
2025-11-24 10:46:56 -05:00
Andrew Gallatin 8f94088bc5 mlx5: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53091
Reviewed by: kib
Sponsored by: Netflix
2025-11-24 10:36:41 -05:00
Andrew Gallatin 2fe37927d4 loopback: Clear hash unconditionally.
Clear the RSS hash on transmit, now that RSS hashing is enabled
unconditionally, and the network stack may want to trust that
it is getting the correct hash on input.

Differential Revision:	https://reviews.freebsd.org/D53090
Reviewed by: zlei
Sponsored by: Netflix
2025-11-24 10:36:41 -05:00
Mark Johnston b0c7eaf83d bhyve/slirp: Drop privileges before entering capability mode
When in restricted mode, the slirp-helper process enters a capsicum
sandbox, after which we cannot look up the uid for the "nobody" user.
Reverse the order.

Reported by:	kp
Fixes:	0e62ebd201 ("bhyve: Move the slirp backend out into a separate process")
2025-11-24 14:28:42 +00:00
Mark Johnston bac572b2b1 bhyve/slirp: Avoid a nested declaration of environ
Fixes:	0e62ebd201 ("bhyve: Move the slirp backend out into a separate process")
2025-11-24 14:28:42 +00:00
Mark Johnston 6739241224 krb5: Use sh to run mk_cmds
Otherwise etcupdate apparently can fail if its private object directory
under /var/db is in a filesystem mounted noexec.  We shouldn't be
building this target at all, but for now, just apply this workaround.

PR:		291043
Reviewed by:	ivy, cy, des
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53861
2025-11-24 14:28:42 +00:00
Konstantin Belousov 0628c252bd rtld: fix powerpc build
In arch_fix_auxv(), remove local variable shadowing the argument,
remove write-only variable, and declare the loop variable.
The wrong patch was committed after series of local reverts and
re-apply.

Fixes:	b2b3d2a962
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2025-11-24 15:53:49 +02:00
Nicolas Provost 8f8b8e4af9 sound: Fix revents in midi_poll()
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	christos
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1887
2025-11-24 14:35:08 +01:00
Christos Margiolis 120f8a4c2a arm: Add missing argument in mtx_init() calls
Fixes:		9d18115ca0 ("sound: Retire snd_mtx* wrappers")
Reported by:	CI
Sponsored by:	The FreeBSD Foundation
MFC after:	4 days
2025-11-24 13:19:25 +01:00
Wolfram Schneider a067eb525e mount.8: document nosymfollow option
Document the nosymfollow mount option in more details.
Forgotten in 5ddc8ded1d
2025-11-24 08:33:07 +00:00
Dag-Erling Smørgrav 5995c036df ObsoleteFiles: Fix repeated typo in recent entries
Fixes:		685a78570b ("random: remove hifn(4)")
Fixes:		5b9fba1cb0 ("Retire pccard(4)")
Fixes:		3cf85a69ae ("hifn.4: Really remove")
Fixes:		8a8c58f71e ("pccard.4: Really remove")
Fixes:		6aaf184dc4 ("pcic.4: Really remove")
Fixes:		daa1f9b415 ("apm(8): Drop MLINK to apmconf(8)")
Fixes:		961b934407 ("pam_krb5: Fix manual page in MIT case")
2025-11-24 04:11:54 +01:00
Dag-Erling Smørgrav 961b934407 pam_krb5: Fix manual page in MIT case
* Always install the manual page as pam_krb5(8) regardless of which
  version we're using.
* Regenerate it using pod2mdoc instead of pod2man so it doesn't claim
  to be part of “User Contributed Perl Documentation”.
* Put the correct section number in the header and footer.
* Don't cross-reference non-existent pam(7) manual page.

Reviewed by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D53885
2025-11-24 03:40:49 +01:00
Dag-Erling Smørgrav fe5c8baf25 pam_krb5: Restore allow_kdc_spoof option
Not only does the new pam_krb5 module not have the same allow_kdc_spoof
option that the old one had, its behavior in this matter defaults to
insecure.  Reimplement allow_kdc_spoof and switch the default back.

Reviewed by:	cy
Differential Revision:	https://reviews.freebsd.org/D53884
2025-11-24 03:40:48 +01:00
Dimitry Andric 3289bace53 Reapply "Merge commit e24f90190c77 from llvm git (by Brad Smith):"
[Driver] Enable outline atomics for FreeBSD/aarch64 (#156089)

The compiler_rt helper functions have been built since 12.4, 13.1, 14
and anything newer.

This reverts commit bd27bd1f51.

Only some people (including the release manager, unfortunately) ran into
build issues with the previous iteration of this commit, because they
were bootstrapping the compiler, either via the WITHOUT_SYSTEM_COMPILER
src.conf(5) setting, or because the build system determined that their
base system compiler was out of date.

The bootstrapped compiler would then enable outline atomics and compile
libgcc_s with these, but because libgcc_s is linked with -nodefaultlibs,
it could not find the helper routines in libcompiler_rt.a.

In contrast, people who did not bootstrap the compiler never saw any
issues, because libgcc_s was built using their 'old' base system
compiler, and so libgcc_s would not contain any calls to those helper
routines.

Fix this by ensuring that libgcc_s is linked against libcompiler_rt.a
explicitly, similar to some other binaries and libraries that are built
with -nodefaultlibs.

Also, bump FREEBSD_CC_VERSION to ensure that everybody gets the updated
compiler with outline atomics enabled. (This should have been done in
the first iteration of this commit, because the error would have shown
up right away then.)

MFC after:	3 days
2025-11-23 19:40:00 +01:00
ShengYi Hung 1d1a2e6932 lldb: Fix empty register set when trying to get size of register
The register set information is stored as a singleton in
GetRegisterInfo_i386. However, other functions later access this
information assuming it is stored in GetSharedRegisterInfoVector. To
resolve this inconsistency, we remove the original construction logic
and instead initialize the singleton using llvm::call_once within the
appropriate function (GetSharedRegisterInfoVector_i386).

PR:		289945
Obtained from:	llvm-project 41859c27842eeda1ef6ff18f3b2fb269388c0857
2025-11-23 12:49:51 -05:00
ShengYi Hung fa1c56b3af lldb: Fix Architecture parsing by reading the ELF header. (#162811)
Currently, LLDB in FreeBSD host sets the Process Architecture used by
lldbserver as Default one. Which cause problem when trying to debug a
32bit binary on amd64 platform since the lldb itself will found mismatch
architecture with lldbserver's return.

Notice that this patch is only a partial fix for the debugging problem.
We are still unable to debug x86 on x86_64 so that we don't provide
testcase in this patch.

PR:		289945
Obtained from:	llvm-project 394e7ded8b6bcff1382468b407ca620a2837f41b
2025-11-23 12:49:51 -05:00
Christos Margiolis 5cc34a83e1 Revert "sound: Merge chn_intr() with chn_intr_locked()"
It turns out that snd_uaudio(4) uses sound(4)'s channel lock for its USB
transfer callbacks. I will try to address this at some point, because
this is layering violation, but for now we need to revert the commit, as
it causes a lock recursion panic with USB audio devices.

This reverts commit e254ef87a3.
2025-11-23 14:48:51 +01:00
Colin Percival c8cf5a99f8 release: Ship DVD with only emacs@nox flavour
Contrary to the claim made in a previous commit, removing KDE and
adding all of vim and emacs results in an image which does not fit
into 4.7 GB; to be specific, it lands at 4.722 GB rather than the
claimed 4.689 GB.  (This descrepancy resulted from doing test DVD
image builds using an out-of-date tree, and became visible when the
15.0-RC3 images were built.)

Limit the emacs packages shipped on the DVD to the "nox" flavor;
this brings the disk image down to 4.407 GB, aka under the 4.7 GB
limit for standard DVDs.

Fixes:	6cc6beb4c8 ("release: Remove KDE from dvd1.iso")
MFC after:	1 day (for 15.0-RC4)
2025-11-22 22:09:10 -08:00
Gordon Tetlow 12ec49d8fa Add backup pkgbase signing key held by security-officer.
This key was generated by gordon@ (aka security-officer@) on an offline
system as a backup key should anything happen to the AWS Key
Management Service that is currently in use for signing pkgbase
repositories for FreeBSD 15.x.

Reviewed by:	cperciva
With hat:	so
2025-11-22 11:14:25 -08:00
Jessica Clarke 9128380511 Revert "arm64: Move intr_pic_init_secondary earlier"
It's not clear what the race described in the commit actually is, nor
how it could arise, but this commit is definitely wrong; curthread is no
longer set for intr_pic_init_secondary, and gic_v3's pic_init_secondary
uses mutex(9) in some places, which requires curthread, so it has led to
panics. Revert this change until the original issue this was intended to
be fixed can be more thorougly investigated and a better fix made.

Reported by:	Herbert J. Skuhra <herbert@gojira.at>, jhb

This reverts commit a695ac2ce8.
2025-11-22 18:46:04 +00:00
Emmanuel Vadot 55de86dac8 dts: Revert its addition for rk356x
Rockchip have two erratas (#3568001 and #3568002) for the GIC on RK356x.

Until we have a way to handle them revert the changes that uses ITS instead of
GIC for PCIe.
2025-11-22 18:32:54 +01:00
Jose Luis Duran 55d98b024f beep: Sort usage and man page options
Sort usage and man page options, mention possible minimum and maximum
values, fix punctuation marks, and cleanup the man page.

PR:		291092
Reviewed by:	pauamma_gundo.com, christos
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53827
2025-11-22 17:28:46 +00:00
Jose Luis Duran 57d25b6333 nuageinit: Add guards against empty user data
Add guards against attempting to process a user data file with an empty
first line or contents.

PR:		290395
Reviewed by:	bapt (earlier), dtxdf, markj
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D53239
2025-11-22 17:23:20 +00:00
Jose Luis Duran 81af04b081 nuageinit: Silence luacheck warnings and fix typos
No functional change intended.

Reviewed by:	bapt, dtxdf, kevans
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D53238
2025-11-22 17:22:23 +00:00
Andrew Gallatin dd0e6bb996 tcp: Enable symmetric hashing by setting hash on outgoing conns
Now that we can trust NICs to supply an identical hash result
to software, we can setup the inpcb hash on outgoing connections.
This gives us symmetric hashing, meaning packets should enter
and leave on the same NIC queue.

Differential Revision:	https://reviews.freebsd.org/D53104
Reviewed by: adrian, cc, kbowling, tuexen, zlei
Sponsored by: Netflix
2025-11-22 09:29:35 -05:00
Andrew Gallatin cfad68c5c6 igc: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53103
Reviewed by: markj
Sponsored by: Netflix
2025-11-22 09:29:35 -05:00
Andrew Gallatin 99b3c9adbc sfxge: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53102
Reviewed by: arybchik, zlei
Sponsored by: Netflix
2025-11-22 09:29:35 -05:00
Andrew Gallatin 5a94c2e89f lio: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53101
Reviewed by: zlei
Sponsored by: Netflix
2025-11-22 09:29:34 -05:00
Andrew Gallatin 96cde0b9e6 ena: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53100
Reviewed by: akiyano_amazon.com
2025-11-22 09:29:34 -05:00
Andrew Gallatin 2ae6227ddf hn: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53099
Sponsored by: Netflix
2025-11-22 09:29:34 -05:00
Andrew Gallatin e10e0c63f0 vmxnet3: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53098
Reviewed by: tuexen
Sponsored by: Netflix
2025-11-22 09:29:34 -05:00
Andrew Gallatin e07b4a2e9b e1000: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53097
Reviewed by: kbowling
Sponsored by: Netflix
2025-11-22 09:29:33 -05:00
Andrew Gallatin 012ecdde3a ice: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53096
Sponsored by: Netflix
2025-11-22 09:29:33 -05:00
Andrew Gallatin d2790dc77e iavf: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53095
Sponsored by: Netflix
2025-11-22 09:29:33 -05:00
Andrew Gallatin dd615b57df ixl: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53094
Sponsored by: Netflix
2025-11-22 09:29:32 -05:00
Andrew Gallatin 5a14756a13 ixgbe: Use newly exposed RSS hash API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53093
Reviewed by: kbowling
Sponsored by: Netflix
2025-11-22 09:29:32 -05:00
Andrew Gallatin d381a6b4a5 cxgbe: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53092
Reviewed by: np (outside of differential)
Sponsored by: Netflix
2025-11-22 09:29:32 -05:00
Andrew Gallatin d9c55b2e8c rss: Enable portions of RSS globally to enable symmetric hashing
We use the fact that all NICs that support hashing are using the
same hash algorithm and hash key to enable symmetic hashing in
TCP, where a software version of the same hash is used to
establish hashes on outgoing connections.

Sponsored by: Netflix
Reviewed by: adrian, zlei (both early version)
Differential Revision:	https://reviews.freebsd.org/D53089
2025-11-22 09:29:31 -05:00
John Baldwin 46d05a49a1 loader.efi.8: Minor formatting nits
- Add several missing .Pp after lists and literal blocks.

- Fix the column widths for the console table and use a shorter indent
  so that it doesn't wrap on an 80-col display.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D53866
2025-11-22 08:10:20 -05:00
Dag-Erling Smørgrav fe836c5012 cp: Fix copying the root directory
When the source of the copy operation is the root directory, we should
neither append it to the destination path on FTS_D nor trim it back off
on FTS_DP.

PR:		291132
MFC after:	3 days
Fixes:          82fc0d09e8 ("cp: Partly restore symlink folllowing.")
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D53863
2025-11-22 13:11:59 +01:00
Emmanuel Vadot 833e5d42ab Import device-tree files from Linux 6.17 2025-11-22 12:29:29 +01:00
Emmanuel Vadot d50fbf3559 Import device-tree files from Linux 6.17 2025-11-22 12:29:08 +01:00
Emmanuel Vadot ae5de77ed7 Import device-tree files from Linux 6.16 2025-11-22 12:28:38 +01:00
Emmanuel Vadot b8aada787c Import device-tree files from Linux 6.16 2025-11-22 12:27:17 +01:00
Emmanuel Vadot 8ccc0d235c Import device-tree files from Linux 6.15 2025-11-22 12:26:43 +01:00
Emmanuel Vadot 3721eb5a72 Import device-tree files from Linux 6.15 2025-11-22 12:22:22 +01:00
Emmanuel Vadot 2846c90520 Import device-tree files from Linux 6.14 2025-11-22 12:21:01 +01:00
Emmanuel Vadot 08b3ef957d Import device-tree files from Linux 6.14 2025-11-22 12:20:20 +01:00
Emmanuel Vadot 5f62a964e9 Import device-tree files from Linux 6.13 2025-11-22 12:19:36 +01:00
Emmanuel Vadot 2aa9fc59ab Import device-tree files from Linux 6.13 2025-11-22 12:14:46 +01:00