]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: use hlist_del_rcu() in dev_change_name()
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 17 May 2011 17:56:59 +0000 (13:56 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 01:33:57 +0000 (10:33 +0900)
commitad033b20a2cc45cf88e48646d21bab1afc7024c6
treeda54029427e974fd376dab667294d0f2ba397581
parent2e14c286d94922cd9f4bf3a2cb110ae0f24f9d85
net: use hlist_del_rcu() in dev_change_name()

[ Upstream commit 372b2312010bece1e36f577d6c99a6193ec54cbd ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/dev.c