]> 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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 15 Feb 2017 12:59:09 +0000 (13:59 +0100)
commit1065fdb1dba37d36587ad22daa2e841e357eaf5f
tree31e6915c5e6f6fbbfe98852fb6c783a7a4821413
parentc00bb94dc37732ff4aac6567a2694ac9d0ac5e45
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: Jiri Slaby <jslaby@suse.cz>
net/ipv6/addrconf.c