]>
Commit | Line | Data |
---|---|---|
69f3684c AF |
1 | diff -Naur linux-3.14.77.org/net/ipv4/tcp_input.c linux-3.14.77/net/ipv4/tcp_input.c |
2 | --- linux-3.14.77.org/net/ipv4/tcp_input.c 2016-08-21 19:58:45.000000000 +0200 | |
3 | +++ linux-3.14.77/net/ipv4/tcp_input.c 2016-08-21 21:11:24.336757369 +0200 | |
4 | @@ -3299,12 +3299,12 @@ | |
5 | u32 half = (sysctl_tcp_challenge_ack_limit + 1) >> 1; | |
6 | ||
7 | challenge_timestamp = now; | |
8 | - ACCESS_ONCE(challenge_count) = half + | |
9 | + ACCESS_ONCE_RW(challenge_count) = half + | |
10 | prandom_u32_max(sysctl_tcp_challenge_ack_limit); | |
11 | } | |
12 | count = ACCESS_ONCE(challenge_count); | |
13 | if (count > 0) { | |
14 | - ACCESS_ONCE(challenge_count) = count - 1; | |
15 | + ACCESS_ONCE_RW(challenge_count) = count - 1; | |
16 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPCHALLENGEACK); | |
17 | tcp_send_ack(sk); | |
18 | } |