aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-12-30 19:45:40 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2022-01-08 03:41:44 +0000
commitba2c98389b78b548aedac0be53121df909c3fe2f (patch)
tree3e45884953392b1c2b4682fe105ef95aabb455d3 /sys/sys/mount.h
parent65990b68a2cd89a08f0350e187df1968b16f4255 (diff)
downloadsrc-ba2c98389b78b548aedac0be53121df909c3fe2f.tar.gz
src-ba2c98389b78b548aedac0be53121df909c3fe2f.zip
msdosfs: sanity check sector count from BPB
We use sector count to size the FAT inuse bitset. If sector count is corrupted, kernel might be tricked into doing unbound allocation. Ensure that the sector count does not exceed the actual volume size. In collaboration with: pho Reviewed by: markj, mckusick Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33721
Diffstat (limited to 'sys/sys/mount.h')
0 files changed, 0 insertions, 0 deletions