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)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:56 +0000 (12:20 -0500)
commit4fe2e54b9897755de927f62422bbcc6e09584e74
tree3f6a0d862d51d19b9f6085e84f08eb60ce9f23f0
parent746ead122079bb3d08a64e99afc24437b5c438ff
net: use hlist_del_rcu() in dev_change_name()

BugLink: http://bugs.launchpad.net/bugs/793702

[ 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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
net/core/dev.c