Commit f5e84cdf authored by Paolo Abeni's avatar Paolo Abeni Committed by Xie XiuQi
Browse files

ipv6: route: enforce RCU protection in rt6_update_exception_stamp_rt()



mainline inclusion
from mainline-v5.0-rc7
commit 193f3685
category: bugfix
bugzilla: 10918
CVE: NA

-------------------------------------------------

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: a68886a6 ("net/ipv6: Make from in rt6_info rcu protected")
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Reviewed-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarLin Miaohe <linmiaohe@huawei.com>
Reviewed-by: default avatarMao Wenan <maowenan@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 3220df4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment