]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ipv6: addrconf: don't use rtnl mutex in RTM_GETNETCONF
authorFlorian Westphal <fw@strlen.de>
Wed, 11 Oct 2017 08:28:00 +0000 (10:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Oct 2017 03:17:03 +0000 (20:17 -0700)
commit4ea2607f7871ca433ab0c5300289215974213f26
treeb82df7e17ae41b3b88029354d9587fd2e09cdcd0
parentb274f6db148a87055052aa8fd4fdd4a0b65b8bd5
ipv6: addrconf: don't use rtnl mutex in RTM_GETNETCONF

Instead of relying on rtnl mutex bump device reference count.
After this change, values reported can change in parallel, but thats not
much different from current state, as anyone can change the settings
right after rtnl_unlock (and before userspace processed reply).

While at it, switch to GFP_KERNEL allocation.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c