u-boot/fs/ext4
Stefan Brüns b96c3c7292 ext4: Do not crash when trying to grow a directory using extents
The following command crashes u-boot:
./sandbox/u-boot -c 'i=0; host bind 0 ./sandbox/test/fs/3GB.ext4.img ;
  while test $i -lt 200 ; do echo $i; setexpr i $i + 1;
  ext4write host 0 0 /foobar${i} 0; done'

Previously, the code updated the direct_block even for extents, and
fortunately crashed before pushing garbage to the disk.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
2016-09-23 09:02:36 -04:00
..
crc16.c ext4fs write support 2012-08-09 23:48:02 +02:00
crc16.h ext4fs write support 2012-08-09 23:48:02 +02:00
dev.c dm: block: Adjust device calls to go through helpers function 2016-03-14 15:34:50 -06:00
ext4_common.c ext4: Do not crash when trying to grow a directory using extents 2016-09-23 09:02:36 -04:00
ext4_common.h ext4: propagate error if creation of directory entry fails 2016-09-23 09:02:35 -04:00
ext4_journal.c ext4: fix endianess problems in ext4 write support 2016-09-23 09:02:04 -04:00
ext4_journal.h ext4: fix endianess problems in ext4 write support 2016-09-23 09:02:04 -04:00
ext4_write.c ext4: propagate error if creation of directory entry fails 2016-09-23 09:02:35 -04:00
ext4fs.c ext4: use kernel names for byte swaps 2016-09-23 09:02:02 -04:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
Makefile fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00