opnsense-src/sys/contrib
Mark Johnston 09af4bf2c9 zfs: Fix SPA sysctl handlers
sbuf_cpy() resets the sbuf state, which is wrong for sbufs allocated by
sbuf_new_for_sysctl().  In particular, this code triggers an assertion
failure in sbuf_clear().

Simplify by just using sysctl_handle_string() for both reading and
setting the tunable.

Apply to FreeBSD directly since this bug causes "sysctl -a" to crash the
kernel.

PR:		276039
Reported by:	pho
Reviewed by:	mav
Pull Request:	https://github.com/openzfs/zfs/pull/15719
2024-01-01 13:59:03 -05:00
..
alpine-hal
ck ck_queue: add CK_*_FOREACH_FROM 2023-02-25 10:34:06 -05:00
dev LinuxKPI: Remove sys/rman.h include from LKPI headers. 2023-12-24 11:19:57 +03:00
device-tree Import device-tree files from Linux 6.4 2023-08-09 15:32:31 +02:00
dpdk_rte_lpm spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
edk2
ena-com ena: Upgrade ena-com to freebsd v2.7.0 2023-12-28 13:52:31 +00:00
libb2
libfdt
libnv spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libsodium
ncsw powerpc: Use valid prototypes for function declarations with no arguments. 2023-04-24 08:53:50 -07:00
openzfs zfs: Fix SPA sysctl handlers 2024-01-01 13:59:03 -05:00
pcg-c/include
rdma/krping irdma: Convert to IfAPI 2023-04-25 14:25:31 -04:00
v4l
vchiq/interface vchiq: Remove unused devclass argument to DRIVER_MODULE. 2022-05-10 10:21:39 -07:00
x86emu x86emu: remove localy added __FBSDID 2023-11-27 16:47:41 +00:00
xen xen: fetch dom0 video console information from Xen 2023-03-09 17:13:17 +01:00
xz-embedded MFV: xz-embedded 3f438e15109229bb14ab45f285f4bff5412a9542 2022-11-17 22:04:57 -08:00
zlib MFV: zlib: examples: define functions as static ones. (PR #855) 2023-09-04 20:14:31 -07:00
zstd MFV: zstd 1.5.2 2023-01-27 17:22:31 +00:00