mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-11 09:48:24 +02:00
19 lines
736 B
Diff
19 lines
736 B
Diff
diff -Naur linux-3.14.77.org/net/ipv4/tcp_input.c linux-3.14.77/net/ipv4/tcp_input.c
|
|
--- linux-3.14.77.org/net/ipv4/tcp_input.c 2016-08-21 19:58:45.000000000 +0200
|
|
+++ linux-3.14.77/net/ipv4/tcp_input.c 2016-08-21 21:11:24.336757369 +0200
|
|
@@ -3299,12 +3299,12 @@
|
|
u32 half = (sysctl_tcp_challenge_ack_limit + 1) >> 1;
|
|
|
|
challenge_timestamp = now;
|
|
- ACCESS_ONCE(challenge_count) = half +
|
|
+ ACCESS_ONCE_RW(challenge_count) = half +
|
|
prandom_u32_max(sysctl_tcp_challenge_ack_limit);
|
|
}
|
|
count = ACCESS_ONCE(challenge_count);
|
|
if (count > 0) {
|
|
- ACCESS_ONCE(challenge_count) = count - 1;
|
|
+ ACCESS_ONCE_RW(challenge_count) = count - 1;
|
|
NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPCHALLENGEACK);
|
|
tcp_send_ack(sk);
|
|
}
|