Page MenuHomeFreeBSD

md: Restore guards in mddestroy()
ClosedPublic

Authored by markj on Jul 3 2025, 1:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 7, 3:07 PM
Unknown Object (File)
Sun, Sep 6, 6:31 PM
Unknown Object (File)
Sun, Aug 30, 5:49 PM
Unknown Object (File)
Wed, Aug 26, 8:38 PM
Unknown Object (File)
Mon, Aug 24, 9:51 AM
Unknown Object (File)
Sun, Aug 23, 7:42 PM
Unknown Object (File)
Aug 22 2026, 9:47 AM
Unknown Object (File)
Aug 13 2026, 1:06 AM
Subscribers

Details

Summary

mddestroy() may be invoked on a partially constructed md device.
Restore the guards that handled this prior to commit e91022168101.

Reported by: syzbot+a0ff73f664de8757cfaa@syzkaller.appspotmail.com
Reported by: syzbot+7b4a4824bf81548283ab@syzkaller.appspotmail.com
Fixes: e91022168101 ("md(4): move type-specific data under union")

Diff Detail

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