mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
9e9ba9c73d
The RAID metadata parsers effectively assume a sector size of 512 bytes or larger, but md(4) devices can be created with a sector size that's any power of 2. Add some seatbelts to graid tasting routines to ensure that the requested sector(s) are large enough for the device to plausibly contain RAID metadata. Reported by: syzbot+f43583c9bf8357c8b56f@syzkaller.appspotmail.com Reported by: syzbot+537dd9f22b91b698e161@syzkaller.appspotmail.com Reported by: syzbot+51509dd48871c57c6e47@syzkaller.appspotmail.com Reported by: syzbot+c882a31037ea2a54ff63@syzkaller.appspotmail.com MFC after: 1 week Sponsored by: The FreeBSD Foundation |
||
---|---|---|
.. | ||
g_raid_ctl.c | ||
g_raid_md_if.m | ||
g_raid_tr_if.m | ||
g_raid.c | ||
g_raid.h | ||
md_ddf.c | ||
md_ddf.h | ||
md_intel.c | ||
md_jmicron.c | ||
md_nvidia.c | ||
md_promise.c | ||
md_sii.c | ||
tr_concat.c | ||
tr_raid0.c | ||
tr_raid1.c | ||
tr_raid1e.c | ||
tr_raid5.c |