]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: route: enforce RCU protection in rt6_update_exception_stamp_rt()
authorPaolo Abeni <pabeni@redhat.com>
Thu, 21 Feb 2019 10:19:41 +0000 (11:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 17:54:35 +0000 (09:54 -0800)
commitd91e1a0b1934eb0d1545272038f3ea5509cd432d
tree693039efcc7acddb5d6821414b54ebc7e102ab8c
parent50073f62608a46b9ea249371e9ac9bdabf933018
ipv6: route: enforce RCU protection in rt6_update_exception_stamp_rt()

We must access rt6_info->from under RCU read lock: move the
dereference under such lock, with proper annotation.

v1 -> v2:
 - avoid using multiple, racy, fetch operations for rt->from

Fixes: ec7b3e64852f ("net/ipv6: Make from in rt6_info rcu protected")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c