https://github.com/torvalds/linux
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
Tip revision: a6b0d5c8dbfd428717fc4db4c36757783f391c7b authored by Chris Mason on 21 February 2012, 01:53:43 UTC
Btrfs: make sure we update latest_bdev
Tip revision: a6b0d5c
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.6 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 201.8 KB
Makefile -rw-r--r-- 52.1 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top