Page MenuHomeFreeBSD

Fix zfsd with the device_removal pool feature.
ClosedPublic

Authored by asomers on Sep 12 2023, 1:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 26, 2:25 AM
Unknown Object (File)
Feb 16 2025, 12:09 AM
Unknown Object (File)
Feb 16 2025, 12:03 AM
Unknown Object (File)
Feb 4 2025, 7:55 PM
Unknown Object (File)
Jan 27 2025, 8:20 PM
Unknown Object (File)
Jan 27 2025, 5:14 PM
Unknown Object (File)
Jan 27 2025, 2:04 PM
Unknown Object (File)
Jan 27 2025, 4:11 AM
Subscribers

Details

Summary

Previously zfsd would crash in the presence of a pool with a
top-level-vdev that had previously been removed. The crash only happens
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>
MFC after: 1 week
Sponsored by: Axcient

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mav added inline comments.
cddl/usr.sbin/zfsd/vdev_iterator.cc
112

I personally would initialize vdevConfig above in declaration, but whatever.

This revision is now accepted and ready to land.Sep 12 2023, 1:39 PM