Home
last modified time | relevance | path

Searched hist:"8 ebcc62c738f68688ee7c6fec2efe5bc6d3d7e60" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/
H A Damt.cdiff 8ebcc62c738f68688ee7c6fec2efe5bc6d3d7e60 Fri Jul 15 12:17:44 CDT 2022 Kuniyuki Iwashima <kuniyu@amazon.com> igmp: Fix data-races around sysctl_igmp_qrv.

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

This test can be packed into a helper, so such changes will be in the
follow-up series after net is merged into net-next.

qrv ?: READ_ONCE(net->ipv4.sysctl_igmp_qrv);

Fixes: a9fe8e29945d ("ipv4: implement igmp_qrv sysctl to tune igmp robustness variable")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
/openbmc/linux/net/ipv4/
H A Digmp.cdiff 8ebcc62c738f68688ee7c6fec2efe5bc6d3d7e60 Fri Jul 15 12:17:44 CDT 2022 Kuniyuki Iwashima <kuniyu@amazon.com> igmp: Fix data-races around sysctl_igmp_qrv.

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

This test can be packed into a helper, so such changes will be in the
follow-up series after net is merged into net-next.

qrv ?: READ_ONCE(net->ipv4.sysctl_igmp_qrv);

Fixes: a9fe8e29945d ("ipv4: implement igmp_qrv sysctl to tune igmp robustness variable")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>