Commit Graph

308225 Commits

Author SHA1 Message Date
Brian Behlendorf 488f04e276 ZTS: Add back redundancy_draid_spare3 exception
Observed again in the CI.  Put the maybe exception back in place
and reference a newly created issue for this sporadic failure.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #18320
2026-03-16 10:39:01 -07:00
Matt Delco 889d10d5b1 nvme: Replace bus_space_[read|write]_4 with bus_[read|write]_4
The goal this change is to remove the use of the tag and handle
needed by bus_space_[read|write]_4.

Fixes:			b3d9e5013f (Don't active memory space)
Requested by:		jhb
Reviewed by:		gallatin, imp, jhb, jrtc27
Differential Revision:	https://reviews.freebsd.org/D55818
2026-03-16 13:38:27 -04:00
Matt Delco 4e3beef846 nvme: Removed unused 'regs' variable
The private struct has a 'regs' member that's only written to
and otherwise unused. This change removes it.

Fixes:			b3d9e5013f (Don't active memory space)
Requested by:		jhb
Reviewed by:		imp, jhb, jrtc27
Differential Revision:	https://reviews.freebsd.org/D55817
2026-03-16 13:37:46 -04:00
Zhenlei Huang e0731059af ifnet: Remove unreachable code
The ioctls SIOCSIFVNET and SIOCSIFRVNET are for userland only. For
SIOCSIFVNET, if_vmove_loan(), the interface is obtained from current
VNET. For SIOCSIFRVNET, if_vmove_reclaim(), a valid child prison is
held before getting the interface. In both cases the VNET of the
obtained interfaces is stable, so there's no need to check it.

No functional change intended.

Reviewed by:	glebius, jamie (for #jails)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D55828
2026-03-17 01:03:05 +08:00
Zhenlei Huang 8065ff63c0 ifnet: Fix decreasing the vnet interface count
It should be decreased only when the interface has been successfully
removed from the "active" list.

This prevents vnet_if_return() from potential OOB writes to the
allocated memory "pending".

Reviewed by:	kp, pouria
Fixes:		a779388f8b if: Protect V_ifnet in vnet_if_return()
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D55873
2026-03-17 00:20:08 +08:00
Rafael Kitover 33e0568d30 ure(4): Fix spurious link flaps from MII
A race condition in the MII layer causes spurious link down events.
In `statchg`, on link down, check if the PHY reports the link as
actually down using the BMSR register, if not, force the status of the
link to back up and restart TX. Do the same in a MII `linkchg` handler.
On actual link up, restart TX in case it went idle and down.

PR:		252165
Signed-off-by:	Rafael Kitover <rkitover@gmail.com>
Reviewed by:	pouria
Differential Revision: https://reviews.freebsd.org/D55682
2026-03-16 14:07:37 +03:30
zxbv3 fed90174ff crypto_request.9: Fix typo on crypto_initreq arguments
The function signature of `crypto_initreq()` was
incorrectly documented.

Signed-off-by:	Zixu Wu <zx@bv3.dev>
Reviewed by:	ziaee, pouria
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2077
2026-03-16 13:24:13 +03:30
bigJ 283ef95d16 rss_config: Add option to enable rss udp hashing
Added optional system tunable parameter to enable
4-tuple rss udp hashing.

Signed-off-by: bigJ <bigj@solanavibestation.com>
Reviewed by: adrian, pouria
Pull Request: https://github.com/freebsd/freebsd-src/pull/2057
2026-03-16 12:22:35 +03:30
Joseph Mingrone e6083790f2 tcpdump: Update to 4.99.6
Changes:	https://github.com/the-tcpdump-group/tcpdump/blob/tcpdump-4.99/CHANGES
Obtained from:	https://www.tcpdump.org/release/tcpdump-4.99.6.tar.xz
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55578
Differential Revision:	https://reviews.freebsd.org/D55871
2026-03-15 23:22:18 -03:00
Olivier Certner 5f659f2b85 zfs: Fix build after merge of openzfs/zfs@f8e5af53e
The change causing it is the introduction of the test over __BMI2__ in
'module/zstd/lib/common/bitstream.h'.

This is a stop-gap commit whose content needs to be upstreamed (after
possibly having been improved).

Fixes:          8a62a2a565 ("zfs: merge openzfs/zfs@f8e5af53e")
Sponsored by:   The FreeBSD Foundation
2026-03-16 00:16:56 +01:00
Christos Longros 9976cff55e rge: use C style comments instead of C++
FreeBSD style(9) mandates C style comments. The initial import from
OpenBSD left several C++ style // comments in if_rge.c and if_rgevar.h.
Replace them with proper /* */ comments.

Also fix a malformed comment that mixed // with a closing */.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D55743
2026-03-15 13:10:59 -07:00
Mateusz Piotrowski 73f37a69f6 Revert "bsd.own.mk: Deorbit compat include of bsd.compiler.mk"
This reverts commit 0bebad8d07.

It might be that all that's needed to fix this is to add
".include <bsd.compiler.mk>" to some Makefiles. I'll look into it soon
but for now let's unbreak HEAD.

Approved by:		bnovkov (mentor)
Differential Revision:	https://reviews.freebsd.org/D55869
2026-03-15 20:45:29 +01:00
Salman Sarray 424d3ca81f backlight.8: Fix typo in man
Increment and decrement where swapped.

Signed-off-by: Salman Sarray <salman@sarray.de>
Reviewed by: ziaee, Christos Longros <chris.longros@gmail.com>
Pull Request: https://github.com/freebsd/freebsd-src/pull/2072
2026-03-15 23:02:06 +03:30
Ying Xu 2e93669827 rtlbtfw(8): Add support for Realtek 8852CE
Add the USB Vendor/Product ID (0x13d3:0x3612) for
the new Realtek 8852CE drive to make sure it works.

Signed-off-by: Ying Xu <fakeshadow1337@gmail.com>
Reviewed by: pouria, wulf
Pull Request: https://github.com/freebsd/freebsd-src/pull/2071
2026-03-15 22:38:42 +03:30
Mateusz Piotrowski 0bebad8d07 bsd.own.mk: Deorbit compat include of bsd.compiler.mk
Commit b946bedd09 ("Previous versions of bsd.own.mk [...]")
mentions that bsd.own.mk included bsd.compiler.mk as a temporary
workaround and was destined to be removed in FreeBSD 12. Do that now.

PR:		203540
Reviewed by:	bnovkov, imp
Approved by:	bnovkov (mentor)
Differential Revision:	https://reviews.freebsd.org/D55867
2026-03-15 19:47:35 +01:00
Dag-Erling Smørgrav 356415aaaa Unbreak LINT after ZFS import
Fixes:		8a62a2a565 ("zfs: merge openzfs/zfs@f8e5af53e")
2026-03-15 18:36:27 +01:00
Christos Longros 462a1f6197 resolver.5: document six previously undocumented options
Document the edns0, inet6, insecure1, insecure2, no-check-names,
and rotate options which are parsed by res_init(3) but were not
described in the resolver(5) man page.

MFC after:	1 week
Signed-off-by:	Christos Longros <chris.longros@gmail.com>
Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D55864
2026-03-15 16:17:08 +01:00
Konstantin Belousov 8365f877b1 amd64: do reset %rip after page fault if pcb_onfault is set
for any kernel page fault, and not only for EFIRT case.

Reported and tested by:	pho
Fixes:	914a535707
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2026-03-15 08:57:08 +02:00
Joseph Mingrone a0b3ef1952 ipfwpcap: Fix build after libpcap 1.10.6 update
pcap-int.h now references SIZEOF_TIME_T from libpcap's config.h, which
is not available to consumers of the internal header outside of the
libpcap build.  Switch to the public <pcap.h> header and replace the
direct FILE* casts and ferror()/fflush() calls with pcap_dump_flush(3),
which is the correct public API for flushing a pcap dump file.

Sponsored by:	The FreeBSD Foundation
2026-03-15 02:32:01 -03:00
Joseph Mingrone 16cef5f7a6 libpcap: Update to 1.10.6
Changes:	https://raw.githubusercontent.com/the-tcpdump-group/libpcap/89e982c37c36ad0bf9f10b7ded421cb42422effa/CHANGES
Reviewed by:	bms, emaste
Obtained from:	https://www.tcpdump.org/release/libpcap-1.10.6.tar.gz
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55545
Differential Revision:	https://reviews.freebsd.org/D55858
2026-03-15 00:41:29 -03:00
Christos Longros e6f4e4ab8a re(4), rge(4): improve Realtek driver man pages
Add D-Link DGE-530(T) and Killer E2600 to the re(4) HARDWARE list.
Both are supported by the driver but were missing from the man page.

Also add cross-references between re(4) and rge(4) in SEE ALSO,
as both are Realtek NIC drivers.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D55745
2026-03-14 14:35:20 -07:00
Colin Percival 251907ca48 EC2: Fix comment re avoiding unicode
We're avoiding *unicode*, not avoiding *ascii*.

Reported by:	marck
Fixes:	277830b4d3 ("EC2: Don't use unicode in boot loader")
MFC after:	3 days
2026-03-14 09:33:32 -07:00
Siva Mahadevan 922d73540d tarfs: swap deprecated ZSTD_resetDStream() with ZSTD_DCtx_reset()
ZSTD_resetDStream() is deprecated since 1.5.4: https://github.com/facebook/zstd/commit/5d8cfa6b96a6442ab1251f9de3b47a0eb12561a0

This change is needed to MFV zstd 1.5.7.

Approved by:	emaste (mentor)
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D55835
2026-03-14 11:34:03 -04:00
Siva Mahadevan 736d8852e1 tests/fusefs: fix sign-compare warning on armv7
Fixes:		7e68af7ce2
Reviewed by:	asomers
Approved by:	emaste (mentor)
Differential Revision:	https://reviews.freebsd.org/D55846
2026-03-14 11:32:16 -04:00
Laurent Chardon 4efe7fa072 committers-ports.dot: Add new committer (laurent)
Update Mentor (thierry) and Mentee (laurent) Information.

Reviewed by:	thierry (mentor)
Approved by:	thierry (mentor)
Differential Revision:	https://reviews.freebsd.org/D55856
2026-03-14 11:26:34 -04:00
Martin Matuska 8a62a2a565 zfs: merge openzfs/zfs@f8e5af53e
Notable upstream pull request merges:
 #17358 4975430cf Add vdev property to disable vdev scheduler
 #18031 c77f17b75 Add snapshots_changed_nsecs dataset property
 #18080 dbb3f247e cmd/zfs: clone: accept `-u` to not mount newly created
                  datasets
 #18089 -multiple Zstd: Update bundled library to version 1.5.7
 #18091 2301755df Fix zfs_open() to skip zil_async_to_sync() for the
                  snapshot
 #18093 -multiple L2ARC: Rework write throttling with DWPD rate limiting
                  and parallel writes
 #18095 2dbd6af5e Rename several printf attributes declarations to
                  __printf__
 #18096 8605bdfdd FreeBSD: unbreak compilation on i386
 #18105 794f1587d When receiving a stream with the large block flag,
                  activate feature
 #18115 765929cb4 DDT: Add locking for table ZAP destruction
 #18118 09e4e01e9 Fix history logging for `zpool create -t`
 #18119 2f1f25217 icp: emit .note.GNU-stack section for all ELF targets
 #18131 3fffe4e70 Fix --enable-invariants on FreeBSD
 #18133 d2f5cb3a5 Move range_tree, btree, highbit64 to common code
 #18136 54b141fab FreeBSD: Remove references to DEBUG_VFS_LOCKS
 #18138 cdf89f413 Flush RRD only when TXGs contain data
 #18139 a157ef62a Make sure we can still write data to txg
 #18140 cd895f0e5 remove thread unsafe debug code causing FreeBSD double
                  free panic
 #18144 4f180e095 Fix activating large_microzap on receive
 #18146 35b2d3970 Lock db_mtx around arc_release() in couple places
 #18154 b36472052 nvpair: chase FreeBSD xdrproc_t definition
 #18160 21bbe7cb6 Improve caching for dbuf prefetches
 #18177 -multiple Multihost Improvements
 #18179 2646bd558 Allow rewrite skip cloned and snapshotted blocks
 #18180 aa29455dd Restrict cloning with different properties
 #18184 040ba7a7c libzfs: improve error message for zpool create with
                  ENXIO
 #18188 1412bdc6c zfs_vnops_os.c: Move a vput() to after
                  zfs_setattr_dir()
 #18198 cc184fe98 Fix `send:raw` permission for send `-w -I`
 #18208 ba970eb20 Cleanup allocation class selection
 #18212 0f9564e85 Simplify dnode_level_is_l2cacheable()
 #18214 370570890 Remove parent ZIO from dbuf_prefetch()
 #18218 bfb276e55 freebsd: Fix TIMESPEC_OVERFLOW for PowerPC
 #18222 d06a1d9ac Fix available space accounting for special/dedup
 #18225 d48967728 ICP: AES-GCM VAES-AVX2: fix typos and document
                  source files
 #18226 c8a72a27e ICP: AES-GCM assembly: remove unused Gmul functions
 #18230 -multiple Fix zdb --key crash for unencrypted datasets, and
                  teach tests to understand this better
 #18233 -multiple icp: add SHA-512 implementation using Intel SHA512
                  extension
 #18245 991fc56fa Introduce dedupused/dedupsaved pool properties
 #18251 6a717f31e Improve misleading error messages for
                 ZPOOL_STATUS_CORRUPT_POOL
 #18254 7744f0496 SIMD: libspl: test the correct CPUID bit for AVX512VL
 #18255 6495dafd5 range_tree: use zfs_panic_recover() for
                  partial-overlap remov
 #18256 3408332d7 zhack: Fix importing large allocation profiles on
                  small pools
 #18258 f8457fbdc Fix deadlock on dmu_tx_assign() from vdev_rebuild()
 #18263 f8e5af53e Fix redundant declaration of dsl_pool_t

Obtained from:	OpenZFS
OpenZFS commit:	f8e5af53e9
2026-03-14 13:14:56 +01:00
Pouria Mousavizadeh Tehrani f91464171d acpi_system76: Improve sysctl names
* Improve sysctl descriptions.
* Rename battery charging-threshold sysctl for clarity.
* Fix mis-spelled words.
* Style: sort headers.

Reported by: olce, jhb
Reviewed by: olce
Differential Revision: https://reviews.freebsd.org/D55848
2026-03-14 13:03:10 +03:30
ShengYi Hung 9d26b82826 libc: Fix dtor order in __cxa_thread_atexit
The thread_local variable may creates another thread_local variable
inside its dtor. This new object is immediately be registered in
__cxa_thread_atexit() and need to be freed before processing another
variable.

This fixes the libcxx test thread_local_destruction_order.pass.cpp.

Reported by:    kib
Approved by:    lwhsu (mentor)
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55826
2026-03-14 12:30:25 +08:00
ShengYi Hung 728ae49a6b kern_time: Honor the precise option when counting diff
When preecise option is used, the true elapsed time should also use the
precise timer.

This fixes the test case sleep_for.signals.pass.cpp in libcxx.

Reviewed by:    kib, imp
Approved by:    lwhsu (mentor)
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55824
2026-03-14 12:21:26 +08:00
Gleb Smirnoff 4f59a7eb87 tcp: fix up !VIMAGE builds
The tcp_seq.h uses getmicrouptime() in an inline function, but it doesn't
include <sys/time.h>.  This was usually masked by having tcp_var.h always
before tcp_seq.h, so restore that.

Fixes:	c0462c2dea
2026-03-13 21:04:14 -07:00
Gleb Smirnoff a47c870930 inpcb: fix up !VIMAGE builds
There are some files that don't include mutex.h and rwlock.h, but use
inpcb locking macros.  With VIMAGE the net/vnet.h pulls half of the
possible kernel includes, masking the problem.  The in_pcb.h also used to
mask the problem, so restore that.

Fixes:	041e9eb1ae
2026-03-13 20:59:51 -07:00
Xin LI 7aa1dba6b0 MFV: zlib 1.3.2.
Relnotes:	yes
MFC after:	2 weeks
2026-03-13 23:49:53 +00:00
Xin LI 280d433d4c Vendor import of zlib 1.3.2. 2026-03-13 23:48:36 +00:00
Konstantin Belousov eb0a78f6ce x86 FRED: add CPUID, MSR, and CR4 bits
Reviewed by:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55810
2026-03-14 01:30:27 +02:00
Konstantin Belousov d92ebde764 amd64: move code to clear PSL_T on debug exception into a helper
Reviewed by:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55827
2026-03-14 00:47:13 +02:00
Konstantin Belousov 914a535707 amd64: move efirt trap checks into the helper
Reviewed by:	imp, jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55808
2026-03-14 00:47:13 +02:00
Colin Percival 277830b4d3 EC2: Don't use unicode in boot loader
The boot loader menu is disabled by default in EC2, but if it is ever
turned on, the default (unicode) output breaks EC2's web interface to
the serial console.

Set loader_menu_frame="ascii" instead.

MFC after:	3 days
Sponsored by:	Amazon
2026-03-13 14:25:46 -07:00
Ed Maste 4a8055914d Revert "Makefile.inc1: Don't force LLVM_BINUTILS off for cross-tools"
This reverts commit 858f53dd43.

It is not clear to me why building from Linux or MacOS fails to build
the toolchain, so reintroduce the long-standing slightly-broken
toolchain until that can be determined.

Reported by:	vexeduxr, jrtc27
2026-03-13 16:47:33 -04:00
Gleb Smirnoff 512e189a96 inpcb: remove a completely outdated comment 2026-03-13 13:30:05 -07:00
Gleb Smirnoff 77e0c9c341 inpcb: in in_pcbbind() use bool for anonport 2026-03-13 13:29:50 -07:00
Gleb Smirnoff 78c4f821f4 jail: fix crash with startup commands on a jail without name
Jail name is optional, thus don't try setenv(NULL).

Fixes:	d8f021add4
2026-03-13 13:27:39 -07:00
Jessica Clarke c70f382a8b rtld-elf: Remove stray _exit prototype for aarch64
It's not clear why this is here. It's existed since the very first
version of rtld-elf for aarch64 but has never been used, and anything
actually using exit or _exit should be using rtld_libc.h's #define that
aliases them to __sys_exit.

Fixes:	047c6e3ae6 ("Add the arm64 code to the runtime linker. It's not able to be built as we still need libc_pic for a few things, but this is expected to be ready soon.")
2026-03-13 19:25:04 +00:00
Justin Hibbits 703901bce1 i6300esbwd: Set error appropriately on event
Per the watchdog driver contract, if the driver successfully arms the
watchdog it must set error to 0, and if it's unable to arm the watchdog
it must leave error alone.

Sponsored by:	Hewlett Packard Enterprise
2026-03-13 14:49:17 -04:00
Kousuke Kannagi fa341366b1 committers-ports.dot: Add new committer (mce)
Update Mentor and Mentee Information.

Reviewed by: osa, fluffy (mentors)
Approved by: fluffy (mentor)
Differential Revision: https://reviews.freebsd.org/D55839
2026-03-14 03:04:12 +09:00
Pouria Mousavizadeh Tehrani a1fa1478f6 ndp: fix late KASSERT in nd6_queue_timer
Reviewed by:	glebius
Fixes:		7f3b46fe54 ("ndp: Add support for Gratuitous...")
Differential Revision: https://reviews.freebsd.org/D55844
2026-03-13 21:17:37 +03:30
Aditya Gollamudi b481a8bbbf Make zpool status dedup table support raw bytes -p output
Check if -p flag is enabled, and if so print dedup table with raw
bytes. Restructure the logic in zutil_pool to check if -p flag is
enabled before printing either the bytes or raw numbers.

Calls to print the data for DDT now all use
zfs_nicenum_format(). Increased DDT histogram column buffers
to 32 bytes to prevent truncation when -p is enabled.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Adi Gollamudi <adigollamudi@gmail.com>
Closes #11626
Closes #17926
2026-03-13 09:53:56 -07:00
Joseph Koshy e9f3af5b28 readelf: Use the gABI name for a dynamic tag value. 2026-03-13 14:34:56 +00:00
Aymeric Wibo 4da237aee3 alloca.3: Add entry about defining VLAs in same block as alloca() to BUGS
Refer to alloca() as a (builtin) function or macro, as it could be
defined as either depending on the compiler.

Paragraph about bug comes from Darwin's libc, and example added to
illustrate it.

Reviewed by:	bnovkov
Approved by:	bnovkov
MFC after:	3 days
Obtained from:	https://github.com/apple-oss-distributions/libc (partially)
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D55370
2026-03-13 21:08:31 +08:00
Bartosz Sobczak 5b7aa6c7bc irdma(4): update irdma to version 1.3.56-k
Update Intel irdma driver to version 1.3.56-k

Notable changes:
- adding E830 support
- adding E835 support

Signed-off-by: Sobczak, Bartosz <bartosz.sobczak@intel.com>

Reviewed by:	Andrew Zhu <anzhu@netapp.com>
Tested by:	Mateusz Moga <mateusz.moga@intel.com>
MFC after:	2 weeks
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D55479
2026-03-13 13:00:55 +01:00
Krzysztof Galazka 13ee84c591 ix(4): Add EEE support for E610 adapters
The ix driver now supports Energy Efficient Ethernet (EEE) on Intel
E610 devices. EEE allows the network interface to enter low-power
states during periods of low link utilization, reducing power
consumption while maintaining full performance when needed.

E610 adapters provide EEE support through BASE-T PHY functionality.
Due to this PHY-based implementation, EEE is supported only
on 2.5Gb speeds and above.

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

Authored-by: Yogesh Bhosale <yogesh.bhosale@intel.com>

Approved by:	kbowling (mentor)
Tested by:	Mateusz Moga <mateusz.moga@intel.com>
MFC after:	2 weeks
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D55304
2026-03-13 12:48:29 +01:00