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)
Sat, Oct 26, 11:12 PM
Unknown Object (File)
Oct 2 2024, 11:34 AM
Unknown Object (File)
Sep 25 2024, 5:22 PM
Unknown Object (File)
Sep 25 2024, 3:14 PM
Unknown Object (File)
Sep 18 2024, 12:09 PM
Unknown Object (File)
Sep 17 2024, 10:07 PM
Unknown Object (File)
Sep 16 2024, 10:09 PM
Unknown Object (File)
Sep 15 2024, 1:01 PM
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