https://github.com/torvalds/linux
Revision 6755aebaaf9fc5416acfd4578ab7a1e122ecbc74 authored by Eric Dumazet on 06 November 2009, 00:23:01 UTC, committed by David S. Miller on 08 November 2009, 08:33:43 UTC
bcm_proc_getifname() is called with RTNL and dev_base_lock
not held. It calls __dev_get_by_index() without locks, and
this is illegal (might crash)

Close the race by holding dev_base_lock and copying dev->name
in the protected section.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent cc05368
History
Tip revision: 6755aebaaf9fc5416acfd4578ab7a1e122ecbc74 authored by Eric Dumazet on 06 November 2009, 00:23:01 UTC
can: should not use __dev_get_by_index() without locks
Tip revision: 6755aeb
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-- 952 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-- 153.8 KB
Makefile -rw-r--r-- 55.4 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top