Message ID | 20231017083723.1364940-8-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | de5724ca38fd5e442bae9c1fab31942b6544012d |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/7] net: xfrm: skip policies marked as dead while reinserting policies | expand |
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 99df2862bdc9..d24b4d4f620e 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -3220,7 +3220,7 @@ struct dst_entry *xfrm_lookup_with_ifid(struct net *net, } for (i = 0; i < num_pols; i++) - pols[i]->curlft.use_time = ktime_get_real_seconds(); + WRITE_ONCE(pols[i]->curlft.use_time, ktime_get_real_seconds()); if (num_xfrms < 0) { /* Prohibit the flow */