Home
last modified time | relevance | path

Searched hist:"18147 e8245ce7f14c39507bb9f80a8ef4cb23bc4" (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/fs/ext4/
H A Dext4fs.c18147e8245ce7f14c39507bb9f80a8ef4cb23bc4 Wed Nov 08 15:35:10 UTC 2017 Ian Ray <ian.ray@ge.com> UPSTREAM: 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.

Change-Id: Ic1dafbde2f375784ef1f30746bd5cfa847356b6a
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>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit ecdfb4195b20eb2dcde3c4083170016c13c69e8b)
H A Dext4_common.c18147e8245ce7f14c39507bb9f80a8ef4cb23bc4 Wed Nov 08 15:35:10 UTC 2017 Ian Ray <ian.ray@ge.com> UPSTREAM: 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.

Change-Id: Ic1dafbde2f375784ef1f30746bd5cfa847356b6a
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>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit ecdfb4195b20eb2dcde3c4083170016c13c69e8b)