uboot/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
..
Kconfig
Makefile
budget.c
crc16.c
crc16.h
debug.c
debug.h
gc.c
io.c
key.h
log.c
lprops.c
lpt.c
lpt_commit.c
master.c
misc.h
orphan.c
recovery.c
replay.c
sb.c
scan.c
super.c ubifs: fix memory corruption in super.c 2016-04-22 11:48:17 +02:00
tnc.c
tnc_misc.c
ubifs-media.h
ubifs.c dm: blk: Rename get_device_and_partition() 2016-03-14 15:34:50 -06:00
ubifs.h