u-boot/fs/ubifs
Heiko Schocher b1d6590d35 ubifs: fix memory corruption in super.c
In list "super_blocks" ubifs collects allocated super_block
structs. U-Boot frees on unmount the allocated struct,
so the pointer stored in this list is free after the umount.
On a new ubifs mount, the new allocated super_block struct
get inserted into the super_blocks list ... which contains
now a freed pointer, and the list_add_tail() corrupts the
freed memory ...

2 solutions are possible:
- remove the super_block from the super_blocks list
  on umount

- as U-Boot does not use the super_blocks list ...
  remove it complete for U-Boot.

Both solutions should not introduce problems for porting
to newer linux version, so this patch removes the unused
super_blocks list, as it saves code size and execution
time.

Signed-off-by: Heiko Schocher <hs@denx.de>
2016-04-22 11:48:17 +02:00
..
budget.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
crc16.c UBIFS: Implement read-only UBIFS support in U-Boot 2009-03-20 22:39:15 +01:00
crc16.h Update CHANGELOG, coding style cleanup. 2009-04-05 00:27:57 +02:00
debug.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
debug.h kbuild: force to define __UBOOT__ in all the C sources 2014-09-16 12:23:56 -04:00
gc.c ubifs: Enable journal replay during mount 2015-01-29 09:34:03 +01:00
io.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
key.h mtd, ubi, ubifs: resync with Linux-3.14 2014-08-25 19:25:55 -04:00
log.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
lprops.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
lpt_commit.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
lpt.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
Makefile ubifs: Enable journal replay during mount 2015-01-29 09:34:03 +01:00
master.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
misc.h kbuild: force to define __UBOOT__ in all the C sources 2014-09-16 12:23:56 -04:00
orphan.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
recovery.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
replay.c bug.h: move BUILD_BUG_* defines to include/linux/bug.h 2016-01-25 10:39:59 -05:00
sb.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
scan.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
super.c ubifs: fix memory corruption in super.c 2016-04-22 11:48:17 +02:00
tnc_misc.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
tnc.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
ubifs-media.h mtd, ubi, ubifs: resync with Linux-3.14 2014-08-25 19:25:55 -04:00
ubifs.c dm: blk: Rename get_device_and_partition() 2016-03-14 15:34:50 -06:00
ubifs.h ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00