]> Git Repo - linux.git/commit - net/ipv4/fib_semantics.c
nexthop: Fix data-races around nexthop_compat_mode.
authorKuniyuki Iwashima <[email protected]>
Tue, 12 Jul 2022 00:15:33 +0000 (17:15 -0700)
committerDavid S. Miller <[email protected]>
Wed, 13 Jul 2022 11:56:50 +0000 (12:56 +0100)
commitbdf00bf24bef9be1ca641a6390fd5487873e0d2e
treea571db15de0e5ac08997aab9705356eff39685b6
parente49e4aff7ec19b2d0d0957ee30e93dade57dab9e
nexthop: Fix data-races around nexthop_compat_mode.

While reading nexthop_compat_mode, it can be changed concurrently.
Thus, we need to add READ_ONCE() to its readers.

Fixes: 4f80116d3df3 ("net: ipv4: add sysctl for nexthop api compatibility mode")
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv4/fib_semantics.c
net/ipv4/nexthop.c
net/ipv6/route.c
This page took 0.062174 seconds and 4 git commands to generate.