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)
Wed, Mar 18, 4:04 AM
Unknown Object (File)
Fri, Mar 13, 8:42 PM
Unknown Object (File)
Tue, Mar 10, 10:09 AM
Unknown Object (File)
Sat, Mar 7, 8:12 PM
Unknown Object (File)
Feb 8 2026, 11:30 AM
Unknown Object (File)
Feb 8 2026, 2:02 AM
Unknown Object (File)
Jan 31 2026, 12:34 PM
Unknown Object (File)
Jan 16 2026, 7:43 PM
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