u-boot-2016/fs
Philipp Skadorov 5593ba9b9f fat: fatwrite: fix the command for FAT12
The u-boot command fatwrite empties FAT clusters from the beginning
till the end of the file.
Specifically for FAT12 it fails to detect the end of the file and goes
beyond the file bounds thus corrupting the file system.

Additionally, FAT entry chaining-up into a file is not implemented
for FAT12.

The users normally workaround this by re-formatting the partition as
FAT16/FAT32, like here:
https://github.com/FEDEVEL/openrex-uboot-v2015.10/issues/1

The patch fixes the bounds of a file and FAT12 entries chaining into
a file, including EOF markup.

Signed-off-by: Philipp Skadorov <philipp.skadorov@savoirfairelinux.com>
(cherry picked from commit 49abbd9cc3)
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>

Change-Id: Ib9c75d4553ea576cbc592f3291cfdebc45b8376b
2023-01-29 21:18:01 -08:00
..
cbfs fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00
cramfs kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
ext4 CVE-2019-13106: ext4: fix out-of-bounds memset 2020-01-14 20:46:06 +05:30
fat fat: fatwrite: fix the command for FAT12 2023-01-29 21:18:01 -08:00
jffs2 JFFS2: Use merge sort when parsing filesystem 2015-08-12 20:47:32 -04:00
reiserfs kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
sandbox sandbox: only do sandboxfs for hostfs interface 2015-04-19 14:45:56 -06:00
ubifs compat: Remove is_power_of_2() definition 2015-11-05 16:46:59 -05:00
yaffs2 Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
zfs ZFS: Clean up cppcheck warnings where relevant, leaked memory etc 2014-11-10 16:25:27 -05:00
fs.c fs: handle the fileaddr variable in the same way as in the network case 2016-01-08 10:15:48 -05:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
Makefile spl: Add EXT support to SPL 2014-10-27 17:54:03 -04:00