freebsd-src/cddl
Alan Somers 3676929d3c Fix zfsd with the device_removal pool feature.
Previously zfsd would crash in the presence of a pool with a
top-level-vdev that had previously been removed.  The crash happened
because the configuration nvlist of such a TLV contains an empty
ZPOOL_CONFIG_CHILDREN array, which led to a pop_front from an empty
list, which has undefined behavior.

The crash only happened in stable/14 and later, probably do to
differences in libcxx, but the change should be MFCed anyway.

PR:		273663
Reported by:	Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
Sponsored by:	Axcient
Reviewed by:	mav
Differential Revision: https://reviews.freebsd.org/D41818

(cherry picked from commit 0b294a386d)
2023-09-21 16:20:43 -06:00
..
compat/opensolaris Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
contrib/opensolaris ctfconvert: Integer encoding types are unsigned 2023-07-05 09:07:06 -04:00
lib Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
sbin Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
share Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
tests Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
usr.bin Remove $FreeBSD$: two-line nroff pattern 2023-08-23 11:43:31 -06:00
usr.libexec Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
usr.sbin Fix zfsd with the device_removal pool feature. 2023-09-21 16:20:43 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00