u-boot-brain/fs
Ian Ray 02cc3e8037 ext4: recover from filesystem corruption when reading
Some fixes when reading EXT files and directory entries were identified
after using e2fuzz to corrupt an EXT3 filesystem:

 - Stop reading directory entries if the offset becomes badly aligned.

 - Avoid overwriting memory by clamping the length used to zero the buffer
   in ext4fs_read_file.  Also sanity check blocksize.

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Reviewed-by: Stefano Babic <sbabic@denx.de>
(cherry picked from commit ecdfb4195b)
2017-11-20 09:01:04 -02:00
..
btrfs fs: btrfs: Remove a foreign language note 2017-10-16 09:42:51 -04:00
cbfs fs: Kconfig: Add a separate config for FS_CBFS 2017-04-30 13:40:57 -04:00
cramfs fs: Kconfig: Add a separate option for FS_CRAMFS 2017-04-30 13:40:59 -04:00
ext4 ext4: recover from filesystem corruption when reading 2017-11-20 09:01:04 -02:00
fat fs/fat: Check malloc return values and fix memory leaks 2017-10-08 16:19:56 -04:00
jffs2 fs/jffs2/mini_inflate.c: use "static inline" instead of "inline" 2017-10-16 09:42:51 -04:00
reiserfs fs: Create a common fs_devread for ext4/reiserfs/zfs 2017-10-02 21:51:50 -04:00
sandbox sandboxfs: Fix resource leak 2016-12-02 10:37:47 -07:00
ubifs mtd: remove MTDDEBUG() and CONFIG_MTD_DEBUG 2017-10-23 14:07:26 -04:00
yaffs2 treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
zfs fs: Create a common fs_devread for ext4/reiserfs/zfs 2017-10-02 21:51:50 -04:00
fs_internal.c fs: Create a common fs_devread for ext4/reiserfs/zfs 2017-10-02 21:51:50 -04:00
fs.c fs: Set .opendir to fs_opendir_unsupported for btrfs 2017-10-16 09:42:51 -04:00
Kconfig fs: btrfs: Add U-Boot fs handlers. 2017-10-02 21:52:18 -04:00
Makefile fs: btrfs: Add U-Boot fs handlers. 2017-10-02 21:52:18 -04:00