Revision a6b0d5c8dbfd428717fc4db4c36757783f391c7b authored by Chris Mason on 21 February 2012, 01:53:43 UTC, committed by Chris Mason on 23 February 2012, 15:43:45 UTC
When we are setting up the mount, we close all the
devices that were not actually part of the metadata we found.

But, we don't make sure that one of those devices wasn't
fs_devices->latest_bdev, which means we can do a use after free
on the one we closed.

This updates latest_bdev as it goes.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
1 parent fe66a05
History
File Mode Size
Kconfig -rw-r--r-- 44.5 KB
Makefile -rw-r--r-- 1.0 KB
calibrate.c -rw-r--r-- 7.9 KB
do_mounts.c -rw-r--r-- 12.0 KB
do_mounts.h -rw-r--r-- 1.4 KB
do_mounts_initrd.c -rw-r--r-- 3.1 KB
do_mounts_md.c -rw-r--r-- 7.9 KB
do_mounts_rd.c -rw-r--r-- 8.4 KB
initramfs.c -rw-r--r-- 12.6 KB
main.c -rw-r--r-- 20.3 KB
noinitramfs.c -rw-r--r-- 1.5 KB
version.c -rw-r--r-- 1.1 KB

back to top