freebsd-dev/sys/geom/raid
Mark Johnston 9e9ba9c73d graid: Avoid tasting devices with small sector sizes
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
2021-08-31 17:09:52 -04:00
..
g_raid_ctl.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
g_raid_md_if.m
g_raid_tr_if.m
g_raid.c Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
g_raid.h Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
md_ddf.c graid: Avoid tasting devices with small sector sizes 2021-08-31 17:09:52 -04:00
md_ddf.h
md_intel.c graid: Avoid tasting devices with small sector sizes 2021-08-31 17:09:52 -04:00
md_jmicron.c graid: Avoid tasting devices with small sector sizes 2021-08-31 17:09:52 -04:00
md_nvidia.c graid: Avoid tasting devices with small sector sizes 2021-08-31 17:09:52 -04:00
md_promise.c graid: Avoid tasting devices with small sector sizes 2021-08-31 17:09:52 -04:00
md_sii.c graid: Avoid tasting devices with small sector sizes 2021-08-31 17:09:52 -04:00
tr_concat.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
tr_raid0.c Pass BIO_SPEEDUP through all the geom layers 2020-01-17 01:15:55 +00:00
tr_raid1.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
tr_raid1e.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
tr_raid5.c Pass BIO_SPEEDUP through all the geom layers 2020-01-17 01:15:55 +00:00