]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix data-races around sysctl_max_skb_frags.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 23 Aug 2022 17:46:54 +0000 (10:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2022 12:46:58 +0000 (13:46 +0100)
commitc14f7ed4a341e63a0fa56f5b429e0d655ee08397
treeae4bf05b7ffa2902b68f902877bb3116fcc58b19
parent7a234c05647fa0d7cf07258e86d1cd63e8b54540
net: Fix data-races around sysctl_max_skb_frags.

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

Fixes: c08eb253e011 ("net:Add sysctl_max_skb_frags")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c
net/mptcp/protocol.c