projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f404e4
)
net: use hlist_del_rcu() in dev_change_name()
author
Eric Dumazet
<eric.dumazet@gmail.com>
Tue, 17 May 2011 17:56:59 +0000
(13:56 -0400)
committer
David S. Miller
<davem@davemloft.net>
Tue, 17 May 2011 17:56:59 +0000
(13:56 -0400)
Using plain hlist_del() in dev_change_name() is wrong since a
concurrent reader can crash trying to dereference LIST_POISON1.
Bug introduced in commit
72c9528bab94
(net: Introduce
dev_get_by_name_rcu())
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index b624fe4d9bd7ce408ab93d324ad7cc8413d8f4b8..30a4078b3fa27011079c7ae31d0ab828593849f1 100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-1007,7
+1007,7
@@
rollback:
}
write_lock_bh(&dev_base_lock);
- hlist_del(&dev->name_hlist);
+ hlist_del
_rcu
(&dev->name_hlist);
write_unlock_bh(&dev_base_lock);
synchronize_rcu();