HomeFreeBSD

g_label: Handle small sector sizes when tasting

Description

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
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 5402baa5b5d14819101e1e847df66b02cedf1639)

Details

Provenance
markjAuthored on Sep 7 2021, 1:46 PM
Parents
rG538d7e8b1acb: ixgbe: increase the timeout
Branches
Unknown
Tags
Unknown