Searched hist:b14c5d98b225acec03021f53f8a42190eafd95e4 (Results 1 – 3 of 3) sorted by relevance
/haiku/src/add-ons/kernel/file_systems/fat/bsd/sys/ |
H A D | conf.h | b14c5d98b225acec03021f53f8a42190eafd95e4 Tue Sep 24 19:32:23 UTC 2024 Jim906 <jim_l@fastmail.com> FAT: prevent sector count overflow
* Don't let users format a volume with more sectors than can fit in the 32 bits that the FAT spec provides for storing the sector count on disk. Since dosfs_initialize() assumes 512-byte sectors, this will truncate FAT volumes at ~2.2 TB when a user tries for format a partition larger than that. * Mount read-only if the sector count read from disk is lower than it should be. * Account for an unrelated overflow in struct device_geometry that could theoretically occur when mounting a large FAT image file. * Set the struct mount read-only flag earlier during mounting, to avoid a fillinusemap error when changing to read-only inside fat_volume_init. * Addresses #19079.
Change-Id: I3d15940dc18f50e5c8562fefee3b1749c4b93b6f Reviewed-on: https://review.haiku-os.org/c/haiku/+/8426 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
/haiku/src/add-ons/kernel/file_systems/fat/ |
H A D | kernel_interface.cpp | b14c5d98b225acec03021f53f8a42190eafd95e4 Tue Sep 24 19:32:23 UTC 2024 Jim906 <jim_l@fastmail.com> FAT: prevent sector count overflow
* Don't let users format a volume with more sectors than can fit in the 32 bits that the FAT spec provides for storing the sector count on disk. Since dosfs_initialize() assumes 512-byte sectors, this will truncate FAT volumes at ~2.2 TB when a user tries for format a partition larger than that. * Mount read-only if the sector count read from disk is lower than it should be. * Account for an unrelated overflow in struct device_geometry that could theoretically occur when mounting a large FAT image file. * Set the struct mount read-only flag earlier during mounting, to avoid a fillinusemap error when changing to read-only inside fat_volume_init. * Addresses #19079.
Change-Id: I3d15940dc18f50e5c8562fefee3b1749c4b93b6f Reviewed-on: https://review.haiku-os.org/c/haiku/+/8426 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
H A D | mkdos.cpp | b14c5d98b225acec03021f53f8a42190eafd95e4 Tue Sep 24 19:32:23 UTC 2024 Jim906 <jim_l@fastmail.com> FAT: prevent sector count overflow
* Don't let users format a volume with more sectors than can fit in the 32 bits that the FAT spec provides for storing the sector count on disk. Since dosfs_initialize() assumes 512-byte sectors, this will truncate FAT volumes at ~2.2 TB when a user tries for format a partition larger than that. * Mount read-only if the sector count read from disk is lower than it should be. * Account for an unrelated overflow in struct device_geometry that could theoretically occur when mounting a large FAT image file. * Set the struct mount read-only flag earlier during mounting, to avoid a fillinusemap error when changing to read-only inside fat_volume_init. * Addresses #19079.
Change-Id: I3d15940dc18f50e5c8562fefee3b1749c4b93b6f Reviewed-on: https://review.haiku-os.org/c/haiku/+/8426 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|