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
F108664278: D41818.diff
Mon, Jan 27, 4:11 AM
F108592394: D41818.id127277.diff
Sun, Jan 26, 5:59 PM
Unknown Object (File)
Thu, Jan 23, 6:51 PM
Unknown Object (File)
Tue, Jan 21, 3:58 PM
Unknown Object (File)
Tue, Jan 14, 1:58 AM
Unknown Object (File)
Tue, Jan 14, 1:47 AM
Unknown Object (File)
Dec 1 2024, 11:37 PM
Unknown Object (File)
Nov 12 2024, 4:29 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 Passed
Unit
No Test Coverage
Build Status
Buildable 53536
Build 50427: arc lint + arc unit

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