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)
commit193f3685d0546b0cea20c99894aadb70098e47bf
tree693039efcc7acddb5d6821414b54ebc7e102ab8c
parentae3b564179bfd06f32d051b9e5d72ce4b2a07c37
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: a68886a69180 ("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