]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: avoid possible dead locking on addr_gen_mode sysctl
authorFelix Jia <felix.jia@alliedtelesis.co.nz>
Sun, 26 Feb 2017 23:41:23 +0000 (12:41 +1300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Mar 2017 18:22:48 +0000 (10:22 -0800)
commit145cceea1425d6c0e7ebb3c89670e7f089dbadb5
tree13aaa3cbaebb1e12014a986f9f5e2c7c944501b1
parent8f958f721527ebd751e23ada24312901e3e48cf8
net/ipv6: avoid possible dead locking on addr_gen_mode sysctl

The addr_gen_mode variable can be accessed by both sysctl and netlink.
Repleacd rtnl_lock() with rtnl_trylock() protect the sysctl operation to
avoid the possbile dead lock.`

Signed-off-by: Felix Jia <felix.jia@alliedtelesis.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c