freebsd-nq/sys/fs/msdosfs
Konstantin Belousov b05088aeeb Ensure that cluster allocations never allocate clusters outside the
volume limits.  In particular:
- Assert that usemap_alloc() and usemap_free() cluster number argument
  is valid.
- In chainlength(), return 0 if cluster start is after the max cluster.
- In chainlength(), cut the calculated cluster chain length at the max
  cluster.
- For true paranoia, after the pm_inusemap is calculated in
  fillinusemap(), reset all bits in the array for clusters after the
  max cluster, as in-use.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2016-10-28 11:34:32 +00:00
..
bootsect.h
bpb.h
denode.h Mount msdosfs with longnames support by default. 2016-09-23 19:05:07 +00:00
direntry.h msdosfs: Prevent buffer overflow when expanding win95 names 2016-04-26 20:36:32 +00:00
fat.h
msdosfs_conv.c sys/fs: spelling fixes in comments. 2016-04-29 20:51:24 +00:00
msdosfs_denode.c ANSIfy sys/fs/msdosfs 2015-01-09 14:50:08 +00:00
msdosfs_fat.c Ensure that cluster allocations never allocate clusters outside the 2016-10-28 11:34:32 +00:00
msdosfs_fileno.c ANSIfy sys/fs/msdosfs 2015-01-09 14:50:08 +00:00
msdosfs_iconv.c
msdosfs_lookup.c Mount msdosfs with longnames support by default. 2016-09-23 19:05:07 +00:00
msdosfs_vfsops.c Remove useless NULL check. 2016-10-28 10:57:41 +00:00
msdosfs_vnops.c Implement VOP_FDATASYNC() for msdosfs. 2016-08-15 19:17:00 +00:00
msdosfsmount.h msdosfs: mark unused compat-mount fields 2015-03-22 09:09:26 +00:00