]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 19 Jan 2017 08:26:21 +0000 (16:26 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 16 Mar 2017 02:27:23 +0000 (02:27 +0000)
commit1b653beab8b98cae6ec3ddcf09fb4d5c316e328b
tree3c8b5759741dc11af0cedc9dd063160f6491cc31
parent9706d633879045c9b771a94b24b7d817aae23b0c
ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock

[ Upstream commit 03e4deff4987f79c34112c5ba4eb195d4f9382b0 ]

Just like commit 4acd4945cd1e ("ipv6: addrconf: Avoid calling
netdevice notifiers with RCU read-side lock"), it is unnecessary
to make addrconf_disable_change() use RCU iteration over the
netdev list, since it already holds the RTNL lock, or we may meet
Illegal context switch in RCU read-side critical section.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv6/addrconf.c