https://github.com/torvalds/linux
Revision 0544a21db02c1d8883158fd6f323364f830a120a authored by Prasanna S. Panchamukhi on 24 June 2010, 03:31:03 UTC, committed by NeilBrown on 24 June 2010, 03:31:03 UTC
Such NULL pointer dereference can occur when the driver was fixing the
read errors/bad blocks and the disk was physically removed
causing a system crash. This patch check if the
rcu_dereference() returns valid rdev before accessing it in fix_read_error().

Cc: stable@kernel.org
Signed-off-by: Prasanna S. Panchamukhi <prasanna.panchamukhi@riverbed.com>
Signed-off-by: Rob Becker <rbecker@riverbed.com>
Signed-off-by: NeilBrown <neilb@suse.de>
1 parent f3b99be
History
Tip revision: 0544a21db02c1d8883158fd6f323364f830a120a authored by Prasanna S. Panchamukhi on 24 June 2010, 03:31:03 UTC
md: raid10: Fix null pointer dereference in fix_read_error()
Tip revision: 0544a21
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-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 170.0 KB
Makefile -rw-r--r-- 52.6 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top