Commit graph

306002 commits

Author SHA1 Message Date
Abdelkader Boudih
7faa082b0c cam (scsi): silence "Medium not present" SCSI sense logging for removable media
Change SS_FATAL to SS_FAIL for SCSI sense code 0x3A (Medium not present)
to suppress console spam when card readers or other removable media
devices have no media inserted.

The error is still returned to callers (ENXIO), but no longer prints to
dmesg during boot/probe.

Verified with Apple SD Card Reader - reduced boot messages from 4 to 2.

Reviewed by:	emaste, imp
Differential Revision: https://reviews.freebsd.org/D55287

(cherry picked from commit 3d218b6289cf4675abdeef17a4489e71f8e1935e)
2026-04-22 12:48:35 -04:00
Gleb Smirnoff
588bb16e7b jail: fix crash with startup commands on a jail without name
Jail name is optional, thus don't try setenv(NULL).

Fixes:	d8f021add4
(cherry picked from commit 78c4f821f43d530ba1f2a6308a64a8483208ebe3)
2026-04-22 23:59:32 +08:00
Ed Maste
a54428834b libfido2: Update to 1.16.0
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit febb0da5bf4bc99828ebede7abcb039514ac367a)
2026-04-22 10:24:02 -04:00
Ed Maste
967186fe0a libcbor: Update to 0.13.0
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit b5b9517bfe394e55088f5a05882eabae7e9b7b29)
2026-04-22 10:24:02 -04:00
Ed Maste
9b8f4cfea4 INIT_ALL: Fix typo in option description
From GitHub pull request #2035; the change needs to be applied to the
source file for the option description, not the generated src.conf.5.

(cherry picked from commit c9f3de0ba95b8da31d35fa92e0a54cf6f3d3f1dd)
2026-04-22 10:23:13 -04:00
Isaac Freund
6395bf5988 pkgbase: remove incorrect clang shlib requires
The FreeBSD-clang package contains a 32-bit shared object at
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan-i386.so

This is expected, since clang uses this object when compiling for i386
targets with asan enabled.

What is not expected is that the FreeBSD-clang package currently depends
on 32-bit libc packages due to pkg's shared library analysis, making it
impossible to install pkgbase on x86_64 without any lib32 packages.

This commit leverages a new pkg feature implemented in [1], but could
be landed before a pkg version including that feature is released
without any ill effects. Unknown keys in package manifests are ignored.

[1]: https://github.com/freebsd/pkg/pull/2594

Reviewed by:	ivy
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54792

(cherry picked from commit 2018ae4e3b6a2d7c147933cb36642f6a54830907)
2026-04-22 09:47:39 -04:00
Dag-Erling Smørgrav
f2ce8d6d53 libarchive: Staticize some variables
This code was not being built due to errors in our libarchive
configuration.  Now that those have been addressed, staticize some
variables that trip a “no previous extern declaration” error.  This
is a subset of upstream PR 2962.

MFC after:	1 week
Reviewed by:	mm
Differential Revision:	https://reviews.freebsd.org/D56471

(cherry picked from commit 7e9d974bc023755161742f66c8c77546bab88586)
2026-04-22 15:43:40 +02:00
Dag-Erling Smørgrav
b9e19901ee libarchive: Update configuration
PR:		294577
MFC after:	1 week
Reviewed by:	mm
Differential Revision:	https://reviews.freebsd.org/D56468

(cherry picked from commit 05bbe5e3883492dd2afa52039da1fac45c5059a0)
2026-04-22 15:43:33 +02:00
Martin Matuska
e60d2d53ed libarchive: merge from vendor branch
libarchive 3.8.7

Important bugfixes:
 #2871 libarchive: fix handling of option failures
 #2897 iso9660: fix undefined behavior
 #2898 RAR: fix LZSS window size mismatch after PPMd block
 #2900 CAB: fix NULL pointer dereference during skip
 #2911 libarchive: do not continue with truncated numbers
 #2919 CAB: Fix Heap OOB Write in CAB LZX decoder
 #2934 iso9660: fix posibble heap buffer overflow on 32-bit systems
 #2939 cpio: Fix -R memory leak
 #2947 libarchive: lzop and grzip filter support

Important bugfixes between 3.8.5 and 3.8.6:
 #2860 bsdunzip: fix ISO week year and Gregorian year confusion
 #2864 7zip: ix SEGV in check_7zip_header_in_sfx via ELF offset validation
 #2875 7zip: fix out-of-bounds access on ELF 64-bit header
 #2877 RAR5 reader: fix infinite loop in rar5 decompression
 #2878 mtree reader: Fix file descriptor leak in mtree parser cleanup
       (CWE-775)
 #2892 RAR5 reader: fix potential memory leak
 #2893 RAR5: fix SIGSEGV when archive_read_support_format_rar5 is called
       twice
 #2895 CAB reader: fix memory leak on repeated calls to
       archive_read_support_format_cab

Obtained from:	libarchive
Vendor commit:	ded82291ab41d5e355831b96b0e1ff49e24d8939
MFC after:	1 week

(cherry picked from commit eb5165bb491138f60d9004bc4c781490016d9288)
2026-04-22 15:43:16 +02:00
Ed Maste
edcfb3df7d lesspipe: Use zstdcat
zstdcat is equivalent to zstd -dcf, and matches our intention.

Suggested by:	delphij (in D55101)
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 34d7f100c1d9e6f21d2f79097e891f7a17749d1b)
2026-04-22 09:17:24 -04:00
Mark Johnston
827dccf3ff linuxkpi: Fix an off-by-one error in the kfifo implementation
"total" is the number of slots in the array, so wraparound needs to be
done when "first" or "last" is greater than or equal to the number of
slots.

Note that no consumers of the code are currently connected to the kernel
build.

Reported by:	Stanislav Fort <stanislav.fort@aisle.com>
Reviewed by:	bz, emaste
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56371

(cherry picked from commit 52d2fc702b85d56b35f8828fe7efca3cde0d25b7)
2026-04-22 12:37:07 +00:00
Mark Johnston
a9309a3767 in_mcast: Fix a lock leak in inp_set_source_filters()
MFC after:	3 days
Reported by:	Claude Opus 4.6

(cherry picked from commit bebc1a5b09e358b420077a1b5c0f85f8e7f0812f)
2026-04-22 12:36:54 +00:00
Siva Mahadevan
848ae2336e tests/lorder_test: Add require.progs for nm and cc
Signed-off-by: Siva Mahadevan <me@svmhdvn.name>
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1858

(cherry picked from commit 66d2816407c32a0da0f039c4edb4f19b280f9bb5)
2026-04-22 12:36:54 +00:00
Michael Osipov
c93e8b63d6 glabel(8): Fix debug message for already existing labels
Remove the duplicate (incorrect) name.

PR:		294542
Reviewed by:	markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56400

(cherry picked from commit 92c69c791c436eb966fab806393b70e53cde6874)
2026-04-22 11:30:27 +02:00
Gordon Bergling
1914750cb4 rpcsec_gss(3): Fix a typo in a source code comment
- s/verfier/verifier/

(cherry picked from commit 6323e2be6102e2a152b4420db272f7e880017cf0)
2026-04-22 11:22:30 +02:00
Gordon Bergling
5cb5254e5c msdosfs(4): Fix two typos in source code comments
- s/unititialized/uninitialized/

(cherry picked from commit 96246330c1c47ea06b7e781ddd87de45d541494f)
2026-04-22 11:21:43 +02:00
Gordon Bergling
47e0076675 stand/powerpc: Fix a typo in a source code comment
- s/limitiations/limitations/

(cherry picked from commit 4177af3b0e2db36238bbd6f973943f830d1ff46f)
2026-04-22 11:21:23 +02:00
Gordon Bergling
15578e21ea librpcsec_gss: Fix a typo in a source code comment
- s/verfier/verifier/

(cherry picked from commit 59dacd7f008f54a335ec49e747bb8ddac67b0a83)
2026-04-22 11:21:01 +02:00
Dag-Erling Smørgrav
41ba2e3cb4 du: Set BLOCKSIZE before running tests
Several testcases assume BLOCKSIZE=K, so set it at the top of the
script.  This fixes an issue where the tests would sometimes fail
when run under sudo.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D56476

(cherry picked from commit d618ba314d1452c1cb4360e15ae1c80adac48306)
2026-04-22 08:20:46 +00:00
Dag-Erling Smørgrav
5713172518 du: Fix t_flag test case
MFC after:	1 week
Fixes:		3e5550d25c ("du: Add regression tests")
Sponsored by:	Klara, Inc.

(cherry picked from commit e99b3f5e318626b45510e29993aabca1d161bfa0)
2026-04-22 08:20:45 +00:00
Dag-Erling Smørgrav
54a4e4cdbf du: Complete libxo transition
* Use xo_warn() / xo_err() instead of warn() / err().

* Add a test case for the POSIX-mandated stdout error check.

* While here, don't assume the size of off_t, address some style issues,
  and broaden the use of bool instead of int.

* Reorder SEE ALSO section.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D56402

(cherry picked from commit 6c18dd3eb42b50fddb6d9605ddde1362ae9c504a)
2026-04-22 08:20:45 +00:00
Dmitry Salychev
150ac95e4a
dpaa2: Extract checksum statuses on ingress
In order to enable RX checksum offloading we need to check the
meta-information for the (good) frames to see if the L3/4 checksums
were calculated and if there was an error.

The way the buffere are setup, the needed frame meta-information is
already requested. All we have to do is make sure it is really part
of the RX frame, that it is valid, and if the respective bits are set.

Also do not forget to set the (dummy) csum_data as otherwise upper
layers will just be cranky. An artefact of the past which likely
should disappear.

PR:		292006
Reviewed by:	bz, tuexen
Tested by:	bz, tuexen
Approved by:	tuexen
Obtained from:	bz (initial version, D55320)
MFC after:	3 days
Sponsored by:	Traverse Technologies (providing Ten64 HW for testing)
Differential Revision:	https://reviews.freebsd.org/D56383

(cherry picked from commit 4a6d7fc1a00b69925b3edc39acef0391487a8e3e)
2026-04-22 10:06:26 +02:00
Dmitry Salychev
f241c07ca8
dpaa2: Extract frame-specific routines to dpaa2_frame.[h,c]
As soon as we need information from the hardware frame annotation to
make sure that checksums of the ingress frames were verified by the
DPAA2 HW, I've decided to make a preparation and extracted all of the
frame related routines into the separate dpaa2_frame.[h,c] along with
some clean up and improvements, e.g. no more dpaa2_fa, but dpaa2_swa
and dpaa2_hwa structures to describe software and hardware frame
annotations respectively, dpaa2_fa_get_swa/dpaa2_fa_get_hwa to obtain
those annotations from the frame descriptor. The next step is to
implement dpaa2_fa_get_hwa.

PR:		292006
Approved by:	tuexen
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56315

(cherry picked from commit 8e994533806d8aa0ae4582a52d811ede2b19bb26)
2026-04-22 10:06:12 +02:00
Jean-Sébastien Pédron
901aec0a85 linuxkpi: Handle bin attributes in sysfs attribute groups
For instance, this is used by DRM drivers to declare the EDID property
of an GPU output connector:

    sysctl -b sys.device.drmn1.card0.card0-DP-1.edid | edid-decode

    ...
    Block 0, Base EDID:
      EDID Structure Version & Revision: 1.4
      Vendor & Product Identification:
        Manufacturer: SAM
        Model: 29814
        Serial Number: 810635354 (0x3051505a)
        Made in: week 15 of 2025
    ...

Reviewed by:	bz, emaste, wulf
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55176

(cherry picked from commit 5bb0f63020669bd3675c651ba7745fc4356edc1a)
2026-04-21 20:25:27 -04:00
Bhosale, Yogesh
e9d3512bb5 ix(4): Add support for firmware logging for E610 adapters
This is part 3 of the support for the new Intel Ethernet E610
family of devices

The ix driver now enables firmware logging on Intel E610 devices
for debugging with Customer Support. Logs are enabled by default
and generated in binary format that requires decoding by support
teams. The collected data is firmware and hardware related for
debugging purposes only.

When the driver loads, it creates a fw_log sysctl node under the
debug section. Events are organized into categories (modules) for
targeted logging, and users can adjust verbosity levels as needed.

This adds sysctl support for the firmware logging feature and
updates the ix(4) manual page with documentation.

Signed-off-by: Yogesh Bhosale <yogesh.bhosale@intel.com>
Co-developed-by: Krzysztof Galazka <krzysztof.galazka@intel.com>

Reviewed by:	ziaee, kbowling
Tested by:      Mateusz Moga <mateusz.moga@intel.com>
Sponsored by:   Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D53973

(cherry picked from commit 6b58d10fc6d51ddcf5ee81628ead74d3dadb9bf6)
2026-04-21 22:22:50 +02:00
Mark Johnston
9331e62e8b pkru: Fix handling of 1GB largepage mappings
pmap_pkru_update_range() did not handle the case where a PDPE has PG_PS
set.  More generally, the SET_PKRU and CLEAR_PKRU sysarch
implementations did not check whether the request covers a "boundary" vm
map entry.  Fix this, add the missing PG_PS test, and add some tests.

Approved by:	so
Security:	FreeBSD-SA-26:11.amd64
Security:	CVE-2026-6386
Reported by:	Nicholas Carlini <npc@anthropic.com>
Reviewed by:	kib, alc
Differential Revision:	https://reviews.freebsd.org/D56184
2026-04-21 15:42:41 +00:00
Mark Johnston
0c6b1e0864 tty: Avoid leaving dangling pointers in tty_drop_ctty()
The TIOCNOTTY handler detaches the calling process from its controlling
terminal.  It clears the link from the session to the tty, but not the
pointers from the tty to the session and process group.  This means that
sess_release() doesn't call tty_rel_sess(), and that pgdelete() doesn't
call tty_rel_pgrp(), so the pointers are left dangling.

Fix this by clearing pointers in tty_drop_ctty().  Add a standalone
regression test.

Approved by:	so
Security:	FreeBSD-SA-26:10.tty
Security:	CVE-2026-5398
Reported by:	Nicholas Carlini <npc@anthropic.com>
Reviewed by:	kib, kevans
Fixes:		1b50b999f9 ("tty: implement TIOCNOTTY")
Differential Revision:	https://reviews.freebsd.org/D56046
2026-04-21 15:42:40 +00:00
Goran Mekić
c1df496f94 sound examples: Add mmap example
This example opens separate OSS capture and playback channels in mmap
mode, places them into a sync group, and starts them together so both
ring buffers advance on the same device timeline. It then monitors the
capture mmap pointer with SNDCTL_DSP_GETIPTR, converts that pointer into
monotonic absolute progress using the reported block count, and copies
newly recorded audio from the input ring to the matching region of the
output ring.

The main loop is driven by an absolute monotonic frame clock rather than
a fixed relative usleep delay. Wakeups are scheduled from the sample
rate using a small frame step similar to the SOSSO timing model, while
the audio path itself stays intentionally simple: just copy input to
output, with no explicit xrun recovery or processing beyond ring
wraparound handling.

MFC after:	1 week
Reviewed by:	christos
Differential Revision:	https://reviews.freebsd.org/D53749

(cherry picked from commit 3524d4ebbe1f562dd76dc553c085386aadfd2682)
2026-04-21 11:37:57 +02:00
Pouria Mousavizadeh Tehrani
43caeea1ea
routing: Make ip[6]_tryforward() FIB-aware for local traffic
`ip_tryforward()` and `ip6_tryforward()` checks whether the destination
address is local or not without considering if it belongs to the current FIB.
If the destination is local but not in our FIB, forward it instead
of returning it to ip_input().

PR:		292319
Reviewed by:	zlei
MFC after:	1 week
MFC to:		stable/15
Differential Revision: https://reviews.freebsd.org/D56353

(cherry picked from commit bf41d86df0d9dc4a1342c579f4e72db3c66b3443)
2026-04-21 12:20:36 +03:30
Alexander Ziaee
c348c928a2
ntp_adjtime.2: Increase visibility
+ s/ntp/ntpd/ for correctness + apropos results in document description
+ silence a linter warning by escaping a period with a zero-width space

MFC after:	3 days

(cherry picked from commit b49b3ccd40bda02f530c679f23f42ba9e0e4b2e2)
2026-04-20 12:18:41 -04:00
Alexander Ziaee
abde7fe258
freebsd-base.7: Add an example for unregistering
MFC after:		3 days
Reviewed by:		ivy, emaste
Discussed with:		bapt, des, emaste, ivy, phk, pi
Differential Revision:	https://reviews.freebsd.org/D55458

(cherry picked from commit 998d501ae61a3e3c800e6d102d8ab5253c7c1b91)
2026-04-20 12:18:41 -04:00
Alexander Ziaee
689a8b5532
freebsd-base.7: Break examples into subsections
Break the examples into subsections, so that we can have multi-step
examples.

MFC after:		3 days (to 15 only)
Discussed with:		ivy
Differential Revision:	https://reviews.freebsd.org/D55526

(cherry picked from commit 5f922bd20d81af4b5759b8f104d5c22ee3e5cd1b)
2026-04-20 12:18:41 -04:00
Alexander Ziaee
a5ac63f959
Bourne shell -> POSIX shell
The FreeBSD shell is a POSIX compatible shell. It evolved over several
decades from the Almquist shell, which was preceeded a decade before
that by the Bourne shell. Most readers today have never seen a Bourne
shell. If someone wants to learn to use our shell, they need to look for
tutorials on the POSIX shell. Align descriptions through out the tree
with this reality, consistent with it's manual and common parlance.

We made a similar change to the doc tree in b4d6eb01540fe.

MFC after:		3 days
Reviewed by:		carlavilla
Differential Revision:	https://reviews.freebsd.org/D56382

(cherry picked from commit dc140a9fc151f3717bce2157f49070daafa13ec0)
2026-04-20 12:18:37 -04:00
Gordon Bergling
4d36709808 sctp(4): Fix a typo in a source code comment
- s/initited/initiated/

Obtained from:	NetBSD

(cherry picked from commit a154d72775cbf3f0679fb2f989b3d1a035ae41c9)
2026-04-20 09:27:29 +02:00
Jose Luis Duran
16719d3407
rc.conf: Fix typo in comment
The correct path is /etc/defaults/rc.conf (defaults in plural).

Reviewed by:	netchild
Fixes:		cc4eb1ea10 ("Add support for a /etc/defaults/vendor.conf override file")
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D56456

(cherry picked from commit 8e08080ee581dfd30c128d032035da7b6ae44463)
2026-04-20 04:43:27 +00:00
Aymeric Wibo
237d5b05f5
acpi: Return "unknown D-state" in acpi_d_state_to_str() if unknown
Some ACPI debugging prints call acpi_d_state_to_str() on unset D-states
(i.e. ACPI_STATE_UNKNOWN), so return a string explicitly saying "unknown
D-state" instead of just panicking.

Fixes:		84bbfc32a3 ("acpi_powerres: D3cold support")
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days

(cherry picked from commit dc9ff9e5d078fd923adc3dc5426b5f219156ea43)
2026-04-19 15:53:59 +02:00
Yuichiro NAITO
fa3958c92e ixgbe: Fix MRQC register value.
Focus on the MRQE field of the MRQC register, which is 4 bits wide,
and we use these 3 types of values.

  - IXGBE_MRQC_RSSEN 0x1  (non VF mode)
  - IXGBE_MRQC_VMDQRSS32EN 0xA (less than 33 VFs)
  - IXGBE_MRQC_VMDQRSS64EN 0xB (less than 65 VFs)

If we always take a bitwise OR with IXGBE_MRQC_RSSEN,
IXGBE_MRQC_VMDQRSS32EN will never be chosen.
Select these 3 types of values for the proper case.

Signed-off-by: Yuichiro NAITO <naito.yuichiro@gmail.com>

Pull Request:	https://github.com/freebsd/freebsd-src/pull/2132

(cherry picked from commit 938c076b9b0bc458a3877b52535527d37199fc09)
2026-04-19 03:40:10 -07:00
Quentin Thébault
0bd9b26d19 splash: add shutdown splash
This commit adds a shutdown splash to the existing kernel startup splash(4)
screen feature. It can be customized by providing a PNG image to the
shutdown_splash directive loader.conf(5).

Sponsored by: 	Defenso
MFC after: 	2 weeks
Reviewed by:	vexeduxr, ziaee, manu
Differential Revision:	https://reviews.freebsd.org/D55140

(cherry picked from commit 4b862c713ac5556ab4bd1828b47c5eb9cb28e067)
2026-04-18 13:27:26 +02:00
Ahmad Khalifa
89d68ee568 subr_module: account for MODINFOMD_EFI_ARCH
Fixes:		b538d49110
MFC after:	2 weeks

(cherry picked from commit b3d6829f4998ad8ac8c65d39ac9513ba85a9974b)
2026-04-18 13:27:26 +02:00
Bjoern A. Zeeb
5f848eb6fd LinuxKPI wlan drivers: update makefiles to not use WITH_
Up to now the LinuxKPI wlan drivers were using local variables starting
with a WITH_ prefix in their Makefiles.
That is likely to collide with other mechanisms like WITH_ and WITHOUT_
from src.conf.
Adjust the local variables to use a driver name prefix for now to control
what is built and what is not.
These variables are mainly for the time of development so we can
turn off/on a feature or bus attachment while working on it.  Otherwise
they are there for documentation purposes.  The only reason one would
change them locally would be if someone was to build a very custom
image and not want certain bits (e.g., USB support) being compiled into
the modules.

While here, try to harmonize some parts of the Makefiles.

Suggested by:	imp
Discussed with:	imp
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55977

(cherry picked from commit e8166d7f378bb449315aff535909c153f3e71daf)
2026-04-18 02:33:08 +00:00
Bjoern A. Zeeb
f5f3c16d92 ath11k: restore module Makefile
During the subtree merge and checking out the updated version of ath12k
parts of the previous ath11k merge were accidentally undone.
Retore the ath11k Makefile as well after 3c4eef5d838b restored the
driver bits.

Fixes:		a96550206e4b ("ath12k: update Atheros/QCA's ath12k ..")
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit f9795615415074b23faf8e5d937c2ef31045d3d0)
2026-04-18 02:33:01 +00:00
Alfredo Dal'Ava Junior
34196ce83f us.intl.acc.kbd: add it to Makefile
This keyboard was implemented but wasn't actually installed to the
system.

Fixes: a049678039
Discussed with: imp
MFC after: 1 day
Relnotes: yes

(cherry picked from commit 3b373d484046a94d050a7901feadc001f35fa97f)
2026-04-17 23:23:29 -03:00
Alfredo Dal'Ava Junior
23eaa98d6d br.lenovo.kdb: add it to Makefile
This keyboard was implemented but wasn't actually installed to the
system.

Fixes: 9357c694e8
MFC after: 1 day
Relnotes: yes

(cherry picked from commit 6fb5df548e4a581f958f60544b7fa8ba1716c4c6)
2026-04-17 23:23:04 -03:00
Rick Macklem
6ef2df5e8e nfsv4.4: Document setup of a NFSv4 root fs
Commit 8b9775912cbc added support for an NFSv4 mounted
root file system.  This patch documents how to set this
up.  It also includes some minor updates and fixes
some formatting.

This is a content change.

(cherry picked from commit 6698596cd2abd9eae3ac02efe1c257766da5d24a)
2026-04-17 17:59:41 -07:00
Michael Osipov
d31fa76204 ciss.4: List all devices supported by ciss(4)
PR:		285744
Reviewed by:	ziaee
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D56285

(cherry picked from commit 54f5d20492d231b5c2ddc6f1d94dbffa1707d820)
2026-04-17 09:41:40 +02:00
Pouria Mousavizadeh Tehrani
c775ed207f
routing: Fix use-after-free in finalize_nhop
FIB_NH_LOG calls the `nhop_get_upper_family(nh)` to read
`nh->nh_priv->nh_upper_family` for failure logging.
Call FIB_NH_LOG before freeing nh so failures are logged
without causing a panic.

MFC after: 3 days

(cherry picked from commit 7d38eb720a8d8345949986d779e785984ae19ae0)
2026-04-17 10:01:35 +03:30
Konstantin Belousov
65ccf92541 openat(2): check that userspace pass known and allowed flags
(cherry picked from commit 8a5601cff1ea32ab63df1377f61620e4f91999b3)
2026-04-17 03:42:39 +03:00
Konstantin Belousov
52aed37563 libthr.3: describe SIGTHR
(cherry picked from commit 934a35ac2bbbcf8cd65d8824fa824eb5c6170c88)
2026-04-17 03:42:38 +03:00
Konstantin Belousov
46b2975cc7 libthr.3: describe what we mean by C runtime environment.
(cherry picked from commit fa912e3b9b5c074793bb1899f8256ea4baf72631)
2026-04-17 03:42:38 +03:00
Konstantin Belousov
ee3ef70c40 fork.2: note that all methods to pre-resolve symbols have consequences
(cherry picked from commit 660498986a8e56025d9d2f9c6a0813c09a27ba8e)
2026-04-17 03:42:38 +03:00