freebsd-dev/sys/geom/label
Mark Johnston 5402baa5b5 g_label: Handle small sector sizes when tasting
Make sure that the provider sector size is large enough to contain a
valid label before trying to read it.  We performed this check already
for most label types, but not for several filesystem labels.

Reported by:	syzbot+f52918174cdf193ae29c@syzkaller.appspotmail.com
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2021-09-07 11:19:29 -04:00
..
g_label_disk_ident.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
g_label_ext2fs.c g_label: Handle small sector sizes when tasting 2021-09-07 11:19:29 -04:00
g_label_flashmap.c geom_label: Make glabel labels more trivial by separating the tasting 2020-07-26 00:44:59 +00:00
g_label_gpt.c geom_label: Make glabel labels more trivial by separating the tasting 2020-07-26 00:44:59 +00:00
g_label_iso9660.c g_label: Handle small sector sizes when tasting 2021-09-07 11:19:29 -04:00
g_label_msdosfs.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
g_label_msdosfs.h
g_label_ntfs.c g_label: Handle small sector sizes when tasting 2021-09-07 11:19:29 -04:00
g_label_reiserfs.c g_label: Handle small sector sizes when tasting 2021-09-07 11:19:29 -04:00
g_label_ufs.c geom_label: Partially reinstate old sysinstall(8) workaround 2021-07-21 02:51:25 +01:00
g_label.c g_label: Handle small sector sizes when tasting 2021-09-07 11:19:29 -04:00
g_label.h geom_label: Make glabel labels more trivial by separating the tasting 2020-07-26 00:44:59 +00:00