]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: blackhole_netdev needs snmp6 counters
authorIdo Schimmel <idosch@nvidia.com>
Mon, 14 Feb 2022 02:10:56 +0000 (18:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Feb 2022 14:04:27 +0000 (14:04 +0000)
commit796e755ced3924b0d5c12942c0c6ccb469416b97
treed2dd4854aef2b8e1a51865a0949c1faa9e26f79c
parent01b8e52018b55e851ccb622c140f5be9fbe1bfee
ipv6: blackhole_netdev needs snmp6 counters

Whenever rt6_uncached_list_flush_dev() swaps rt->rt6_idev
to the blackhole device, parts of IPv6 stack might still need
to increment one SNMP counter.

Root cause, patch from Ido, changelog from Eric :)

This bug suggests that we need to audit rt->rt6_idev usages
and make sure they are properly using RCU protection.

Fixes: 40a5699f43df ("ipv6: give an IPv6 dev to blackhole_netdev")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c