Skip to contentSkip to conversation

BUG: using __this_cpu_add() in preemptible in tcp_make_synack()

DISCUSSION Frederick Lawler 4 participants 12 messages Jan 18, 2023 – Feb 23, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hello,

We've been testing Linux 6.1.4, and came across an intermittent "BUG: using __this_cpu_add() in preemptible" [1] in our services leveraging TCP_FASTOPEN and our kernel configured with:

CONFIG_PREEMPT_BUILD=y
CONFIG_PREEMPT_VOLUNTARY=y
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_PREEMPT_RCU=y
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y
CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_DEBUG_PREEMPT=y

I'm not sure how related this is to commit 0a375c822497 ("tcp: tcp_rtx_synack() can be called from process context "), as I haven't found a reliable reproducer yet.

The stack trace below has audit_*(), but we have other traces with do_tcp_setsockopt() mixed in the backtrace. Once we get to tcp_rx_synack() in the __release_sock() path, we get the same problem.

[1]:

BUG: using __this_cpu_add() in preemptible [00000000] code: nginx-ssl/209282
caller is tcp_make_synack+0x38d/0x5a0
CPU: 3 PID: 209282 Comm: nginx-ssl Kdump: loaded Tainted: G           O 
     6.1.4-cloudflare-2023.1.2 #1
Hardware name: Quanta Cloud Technology Inc. QuantaPlex T42S-2U/T42S-2U MB (Lewisburg-1G) CLX, BIOS 3B16.Q102 02/19/2020
Call Trace:
<TASK>
 dump_stack_lvl+0x34/0x48
 check_preemption_disabled+0xdd/0xe0
 tcp_make_synack+0x38d/0x5a0
 tcp_v4_send_synack+0x50/0x1f0
 tcp_rtx_synack+0x55/0x140
 ? load_balance+0xa91/0xd40
 ? _copy_to_iter+0x1d6/0x560
 inet_rtx_syn_ack+0x16/0x30
 tcp_check_req+0x39f/0x660
 tcp_rcv_state_process+0xa3/0x1020
 ? tcp_mstamp_refresh+0xe/0x40
 ? tcp_update_recv_tstamps+0x61/0x90
 ? tcp_recvmsg_locked+0x1eb/0x960
 tcp_v4_do_rcv+0xc6/0x280
 __release_sock+0xb4/0xc0
 release_sock+0x2b/0x90
 tcp_recvmsg+0x7c/0x200
 inet_recvmsg+0x52/0x130
 __sys_recvfrom+0xa8/0x120
 ? audit_filter_inodes.part.0+0x2e/0x110
 ? auditd_test_task+0x3c/0x50
 ? __audit_syscall_entry+0xd5/0x120
 __x64_sys_recvfrom+0x20/0x30
 do_syscall_64+0x38/0x90
 entry_SYSCALL_64_after_hwframe+0x4b/0xb5
RIP: 0033:0x7fafc19adc74
Code: 89 4c 24 1c e8 2d 41 f8 ff 44 8b 54 24 1c 8b 3c 24 45 31 c9 89 c5 48 8b 54 24 10 48 8b 74 24 08 45 31 c0 b8 2d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 04 24 e8 59 41 f8 ff 48 8b 04
RSP: 002b:00007ffc42e18a20 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
RAX: ffffffffffffffda RBX: 00007faf26457870 RCX: 00007fafc19adc74
RDX: 0000000000000001 RSI: 00007ffc42e18a60 RDI: 000000000000076a
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 00007faf2261fd40
R13: 00007faf26457870 R14: 00007faf1fe962c0 R15: 00007ffc42e18a60
</TASK>

Thanks,
Fred

#1 lore raw
Quoted 70 lines · Frederick Lawler

Hello,

We've been testing Linux 6.1.4, and came across an intermittent "BUG:
using __this_cpu_add() in preemptible" [1] in our services leveraging TCP_FASTOPEN and our kernel configured with:

CONFIG_PREEMPT_BUILD=y
CONFIG_PREEMPT_VOLUNTARY=y
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_PREEMPT_RCU=y
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y
CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_DEBUG_PREEMPT=y

I'm not sure how related this is to commit 0a375c822497 ("tcp:
tcp_rtx_synack() can be called from process context "), as I haven't found a reliable reproducer yet.

The stack trace below has audit_*(), but we have other traces with do_tcp_setsockopt() mixed in the backtrace. Once we get to tcp_rx_synack() in the __release_sock() path, we get the same problem.

[1]:

BUG: using __this_cpu_add() in preemptible [00000000] code: nginx-ssl/209282
caller is tcp_make_synack+0x38d/0x5a0
CPU: 3 PID: 209282 Comm: nginx-ssl Kdump: loaded Tainted: G           O
      6.1.4-cloudflare-2023.1.2 #1
Hardware name: Quanta Cloud Technology Inc. QuantaPlex T42S-2U/T42S-2U
MB (Lewisburg-1G) CLX, BIOS 3B16.Q102 02/19/2020
Call Trace:
<TASK>
  dump_stack_lvl+0x34/0x48
  check_preemption_disabled+0xdd/0xe0
  tcp_make_synack+0x38d/0x5a0
  tcp_v4_send_synack+0x50/0x1f0
  tcp_rtx_synack+0x55/0x140
  ? load_balance+0xa91/0xd40
  ? _copy_to_iter+0x1d6/0x560
  inet_rtx_syn_ack+0x16/0x30
  tcp_check_req+0x39f/0x660
  tcp_rcv_state_process+0xa3/0x1020
  ? tcp_mstamp_refresh+0xe/0x40
  ? tcp_update_recv_tstamps+0x61/0x90
  ? tcp_recvmsg_locked+0x1eb/0x960
  tcp_v4_do_rcv+0xc6/0x280
  __release_sock+0xb4/0xc0
  release_sock+0x2b/0x90
  tcp_recvmsg+0x7c/0x200
  inet_recvmsg+0x52/0x130
  __sys_recvfrom+0xa8/0x120
  ? audit_filter_inodes.part.0+0x2e/0x110
  ? auditd_test_task+0x3c/0x50
  ? __audit_syscall_entry+0xd5/0x120
  __x64_sys_recvfrom+0x20/0x30
  do_syscall_64+0x38/0x90
  entry_SYSCALL_64_after_hwframe+0x4b/0xb5
RIP: 0033:0x7fafc19adc74
Code: 89 4c 24 1c e8 2d 41 f8 ff 44 8b 54 24 1c 8b 3c 24 45 31 c9 89 c5

48 8b 54 24 10 48 8b 74 24 08 45 31 c0 b8 2d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 04 24 e8 59 41 f8 ff 48 8b 04
RSP: 002b:00007ffc42e18a20 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
RAX: ffffffffffffffda RBX: 00007faf26457870 RCX: 00007fafc19adc74
RDX: 0000000000000001 RSI: 00007ffc42e18a60 RDI: 000000000000076a
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 00007faf2261fd40
R13: 00007faf26457870 R14: 00007faf1fe962c0 R15: 00007ffc42e18a60

Quoted 4 lines
</TASK>

Thanks,
Fred

Thanks for the report

I guess this part has been missed in commit 0a375c822497ed6a

net/ipv4/tcp_output.c +0 -0
index 71d01cf3c13eb4bd3d314ef140568d2ffd6a499e..ba839e441450f195012a8d77cb9e5ed956962d2f

100644

net/ipv4/tcp_output.c +0 -0
@@ -3605,7 +3605,7 @@ struct sk_buff *tcp_make_synack(const struct

sock *sk, struct dst_entry *dst,

        th->window = htons(min(req->rsk_rcv_wnd, 65535U));
        tcp_options_write(th, NULL, &opts);
        th->doff = (tcp_header_size >> 2);

- __TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS);
+ TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS);

 #ifdef CONFIG_TCP_MD5SIG
        /* Okay, we have all we need - do the md5 hash if needed */
#2 lore raw

Hi Eric,

Quoted 22 lines · Eric Dumazet
Quoted 3 lines

Thanks,
Fred

Thanks for the report

I guess this part has been missed in commit 0a375c822497ed6a

net/ipv4/tcp_output.c +0 -0
index 71d01cf3c13eb4bd3d314ef140568d2ffd6a499e..ba839e441450f195012a8d77cb9e5ed956962d2f

100644

net/ipv4/tcp_output.c +1 -1
@@ -3605,7 +3605,7 @@ struct sk_buff *tcp_make_synack(const struct
 sock *sk, struct dst_entry *dst,
         th->window = htons(min(req->rsk_rcv_wnd, 65535U));
         tcp_options_write(th, NULL, &opts);
         th->doff = (tcp_header_size >> 2);
-       __TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS);
+       TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS);
 
  #ifdef CONFIG_TCP_MD5SIG
Quoted 1 line
         /* Okay, we have all we need - do the md5 hash if needed */

Thanks for the fast response!

I applied this change to our Kernel and started the rollout process. I'll report back with any findings once we have sufficient data.

author Tested-by
#3 lore raw
In reply to Eric Dumazet

Hi Eric,

Quoted 28 lines · Eric Dumazet
Quoted 8 lines · Frederick Lawler

Hello,

We've been testing Linux 6.1.4, and came across an intermittent "BUG:
using __this_cpu_add() in preemptible" [1] in our services leveraging TCP_FASTOPEN and our kernel configured with:

[snip]

Thanks for the report

I guess this part has been missed in commit 0a375c822497ed6a

net/ipv4/tcp_output.c +0 -0
index 71d01cf3c13eb4bd3d314ef140568d2ffd6a499e..ba839e441450f195012a8d77cb9e5ed956962d2f

100644

net/ipv4/tcp_output.c +1 -1
@@ -3605,7 +3605,7 @@ struct sk_buff *tcp_make_synack(const struct
 sock *sk, struct dst_entry *dst,
         th->window = htons(min(req->rsk_rcv_wnd, 65535U));
         tcp_options_write(th, NULL, &opts);
         th->doff = (tcp_header_size >> 2);
-       __TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS);
+       TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS);
 
  #ifdef CONFIG_TCP_MD5SIG
Quoted 1 line
         /* Okay, we have all we need - do the md5 hash if needed */
#4 lore raw
Quoted 31 lines · Frederick Lawler

Hi Eric,

Quoted 27 lines · Eric Dumazet
Quoted 8 lines · Frederick Lawler

Hello,

We've been testing Linux 6.1.4, and came across an intermittent "BUG:
using __this_cpu_add() in preemptible" [1] in our services leveraging TCP_FASTOPEN and our kernel configured with:

[snip]

Thanks for the report

I guess this part has been missed in commit 0a375c822497ed6a

net/ipv4/tcp_output.c +0 -0
index 71d01cf3c13eb4bd3d314ef140568d2ffd6a499e..ba839e441450f195012a8d77cb9e5ed956962d2f

100644

net/ipv4/tcp_output.c +1 -1
@@ -3605,7 +3605,7 @@ struct sk_buff *tcp_make_synack(const struct
 sock *sk, struct dst_entry *dst,
         th->window = htons(min(req->rsk_rcv_wnd, 65535U));
         tcp_options_write(th, NULL, &opts);
         th->doff = (tcp_header_size >> 2);
-       __TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS);
+       TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS);
 
Quoted 5 lines
Quoted 2 lines
net/ipv4/tcp_output.c +0 -0
  #ifdef CONFIG_TCP_MD5SIG
         /* Okay, we have all we need - do the md5 hash if needed */

Thanks for testing, I will submit the fix today.

#5 lore raw

Hi Eric,

Quoted 7 lines · Eric Dumazet' via kernel-team+notifications
Quoted 2 lines · Eric Dumazet

[ ... ]

Quoted 4 lines
Quoted 4 lines

Thanks for the report

I guess this part has been missed in commit 0a375c822497ed6a

Quoted 7 lines
Quoted 7 lines

net/ipv4/tcp_output.c struct sk_buff *tcp_make_synack(const struct · line 3605

Quoted 7 lines
net/ipv4/tcp_output.c +0 -0
index 71d01cf3c13eb4bd3d314ef140568d2ffd6a499e..ba839e441450f195012a8d77cb9e5ed956962d2f

100644

net/ipv4/tcp_output.c +0 -0
@@ -3605,7 +3605,7 @@ struct sk_buff *tcp_make_synack(const struct
 sock *sk, struct dst_entry *dst,

[ ... ]

we're still seeing this with a preempt-enabled kernel, in tcp_check_req() though, like:

BUG: using __this_cpu_add() in preemptible [00000000] code: nginx-ssl/186233
caller is tcp_check_req+0x49a/0x660
CPU: 58 PID: 186233 Comm: nginx-ssl Kdump: loaded Tainted: G
O       6.1.8-cloudflare-2023.1.16 #1
Hardware name: ...
Call Trace:
 <TASK>
 dump_stack_lvl+0x34/0x48
 check_preemption_disabled+0xdd/0xe0
 tcp_check_req+0x49a/0x660
 tcp_rcv_state_process+0xa3/0x1020
 ? tcp_sendmsg_locked+0x2a4/0xc50
 tcp_v4_do_rcv+0xc6/0x280
 __release_sock+0xb4/0xc0
 release_sock+0x2b/0x90
 tcp_sendmsg+0x33/0x40
 sock_sendmsg+0x5b/0x70
 sock_write_iter+0x97/0x100
 vfs_write+0x330/0x3d0
 ksys_write+0xab/0xe0
 ? syscall_trace_enter.constprop.0+0x164/0x170
 do_syscall_64+0x3b/0x90
 entry_SYSCALL_64_after_hwframe+0x4b/0xb5

There's a notable number of "__"-marked stats updates in tcp_check_req(); I can't claim to understand the code well enough if all would have to be changed.
The occurence is infrequent (we see about two a week).

Thanks for any pointers!
Frank Hofmann

#6 lore raw
From:   Frank Hofmann <[email protected]>
Date:   Tue, 14 Feb 2023 17:14:24 +0000
Quoted 47 lines

Hi Eric,

Quoted 7 lines · Eric Dumazet' via kernel-team+notifications
Quoted 2 lines · Eric Dumazet

[ ... ]

Quoted 4 lines
Quoted 4 lines

Thanks for the report

I guess this part has been missed in commit 0a375c822497ed6a

Quoted 7 lines
Quoted 7 lines

net/ipv4/tcp_output.c struct sk_buff *tcp_make_synack(const struct · line 3605

Quoted 7 lines
net/ipv4/tcp_output.c +0 -0
index 71d01cf3c13eb4bd3d314ef140568d2ffd6a499e..ba839e441450f195012a8d77cb9e5ed956962d2f

100644

net/ipv4/tcp_output.c +0 -0
@@ -3605,7 +3605,7 @@ struct sk_buff *tcp_make_synack(const struct
 sock *sk, struct dst_entry *dst,

[ ... ]

we're still seeing this with a preempt-enabled kernel, in tcp_check_req() though, like:

BUG: using __this_cpu_add() in preemptible [00000000] code: nginx-ssl/186233
caller is tcp_check_req+0x49a/0x660
CPU: 58 PID: 186233 Comm: nginx-ssl Kdump: loaded Tainted: G
O       6.1.8-cloudflare-2023.1.16 #1
Hardware name: ...
Call Trace:
 <TASK>
 dump_stack_lvl+0x34/0x48
 check_preemption_disabled+0xdd/0xe0
 tcp_check_req+0x49a/0x660
 tcp_rcv_state_process+0xa3/0x1020
 ? tcp_sendmsg_locked+0x2a4/0xc50
 tcp_v4_do_rcv+0xc6/0x280
 __release_sock+0xb4/0xc0
 release_sock+0x2b/0x90
 tcp_sendmsg+0x33/0x40
 sock_sendmsg+0x5b/0x70
 sock_write_iter+0x97/0x100
 vfs_write+0x330/0x3d0
 ksys_write+0xab/0xe0
 ? syscall_trace_enter.constprop.0+0x164/0x170
 do_syscall_64+0x3b/0x90
 entry_SYSCALL_64_after_hwframe+0x4b/0xb5
Quoted 4 lines

There's a notable number of "__"-marked stats updates in tcp_check_req(); I can't claim to understand the code well enough if all would have to be changed.
The occurence is infrequent (we see about two a week).

How about converting __SNMP_XXX() only if the kernel is preemptible like this ? Then we can keep the optimised code for other config.

untested & incomplete patch:

---8<---

include/net/snmp.h +5 -1
index 468a67836e2f..6ead61d9deb3 100644
@@ -124,9 +124,13 @@ struct linux_tls_mib {
 #define DECLARE_SNMP_STAT(type, name)	\
 	extern __typeof__(type) __percpu *name
 
+#ifdef CONFIG_PREEMPT
+#define __SNMP_INC_STATS(mib, field)	\
+			this_cpu_inc(mib->mibs[field])
+#else
 #define __SNMP_INC_STATS(mib, field)	\
 			__this_cpu_inc(mib->mibs[field])
-
+#endif
 #define SNMP_INC_STATS_ATOMIC_LONG(mib, field)	\
 			atomic_long_inc(&mib->mibs[field])
 

---8<---

#7 lore raw
Quoted 55 lines · Kuniyuki Iwashima
From:   Frank Hofmann <[email protected]>
Date:   Tue, 14 Feb 2023 17:14:24 +0000
Quoted 47 lines

Hi Eric,

Quoted 7 lines · Eric Dumazet' via kernel-team+notifications
Quoted 2 lines · Eric Dumazet

[ ... ]

Quoted 4 lines
Quoted 4 lines

Thanks for the report

I guess this part has been missed in commit 0a375c822497ed6a

Quoted 7 lines
Quoted 7 lines

net/ipv4/tcp_output.c struct sk_buff *tcp_make_synack(const struct · line 3605

Quoted 7 lines
net/ipv4/tcp_output.c +0 -0
index 71d01cf3c13eb4bd3d314ef140568d2ffd6a499e..ba839e441450f195012a8d77cb9e5ed956962d2f

100644

net/ipv4/tcp_output.c +0 -0
@@ -3605,7 +3605,7 @@ struct sk_buff *tcp_make_synack(const struct
 sock *sk, struct dst_entry *dst,

[ ... ]

we're still seeing this with a preempt-enabled kernel, in tcp_check_req() though, like:

BUG: using __this_cpu_add() in preemptible [00000000] code: nginx-ssl/186233
caller is tcp_check_req+0x49a/0x660
CPU: 58 PID: 186233 Comm: nginx-ssl Kdump: loaded Tainted: G
O       6.1.8-cloudflare-2023.1.16 #1
Hardware name: ...
Call Trace:
 <TASK>
 dump_stack_lvl+0x34/0x48
 check_preemption_disabled+0xdd/0xe0
 tcp_check_req+0x49a/0x660
 tcp_rcv_state_process+0xa3/0x1020
 ? tcp_sendmsg_locked+0x2a4/0xc50
 tcp_v4_do_rcv+0xc6/0x280
 __release_sock+0xb4/0xc0
 release_sock+0x2b/0x90
 tcp_sendmsg+0x33/0x40
 sock_sendmsg+0x5b/0x70
 sock_write_iter+0x97/0x100
 vfs_write+0x330/0x3d0
 ksys_write+0xab/0xe0
 ? syscall_trace_enter.constprop.0+0x164/0x170
 do_syscall_64+0x3b/0x90
 entry_SYSCALL_64_after_hwframe+0x4b/0xb5
Quoted 4 lines

There's a notable number of "__"-marked stats updates in tcp_check_req(); I can't claim to understand the code well enough if all would have to be changed.
The occurence is infrequent (we see about two a week).

Quoted 5 lines

How about converting __SNMP_XXX() only if the kernel is preemptible like this ? Then we can keep the optimised code for other config.

untested & incomplete patch:

I would prefer not to.

Let me work on a proper fix.

#8 lore raw
In reply to Frank Hofmann
Quoted 48 lines · Frank Hofmann

Hi Eric,

Quoted 7 lines · Eric Dumazet' via kernel-team+notifications
Quoted 2 lines · Eric Dumazet

[ ... ]

Quoted 4 lines
Quoted 4 lines

Thanks for the report

I guess this part has been missed in commit 0a375c822497ed6a

Quoted 7 lines
Quoted 7 lines

net/ipv4/tcp_output.c struct sk_buff *tcp_make_synack(const struct · line 3605

Quoted 7 lines
net/ipv4/tcp_output.c +0 -0
index 71d01cf3c13eb4bd3d314ef140568d2ffd6a499e..ba839e441450f195012a8d77cb9e5ed956962d2f

100644

net/ipv4/tcp_output.c +0 -0
@@ -3605,7 +3605,7 @@ struct sk_buff *tcp_make_synack(const struct
 sock *sk, struct dst_entry *dst,

[ ... ]

we're still seeing this with a preempt-enabled kernel, in tcp_check_req() though, like:

BUG: using __this_cpu_add() in preemptible [00000000] code: nginx-ssl/186233
caller is tcp_check_req+0x49a/0x660
CPU: 58 PID: 186233 Comm: nginx-ssl Kdump: loaded Tainted: G
O       6.1.8-cloudflare-2023.1.16 #1
Hardware name: ...
Call Trace:
 <TASK>
 dump_stack_lvl+0x34/0x48
 check_preemption_disabled+0xdd/0xe0
 tcp_check_req+0x49a/0x660
 tcp_rcv_state_process+0xa3/0x1020
 ? tcp_sendmsg_locked+0x2a4/0xc50
 tcp_v4_do_rcv+0xc6/0x280
 __release_sock+0xb4/0xc0
 release_sock+0x2b/0x90
 tcp_sendmsg+0x33/0x40
 sock_sendmsg+0x5b/0x70
 sock_write_iter+0x97/0x100
 vfs_write+0x330/0x3d0
 ksys_write+0xab/0xe0
 ? syscall_trace_enter.constprop.0+0x164/0x170
 do_syscall_64+0x3b/0x90
 entry_SYSCALL_64_after_hwframe+0x4b/0xb5
Quoted 7 lines

There's a notable number of "__"-marked stats updates in tcp_check_req(); I can't claim to understand the code well enough if all would have to be changed.
The occurence is infrequent (we see about two a week).

Thanks for any pointers!
Frank Hofmann

Thanks for the report.

I think the following patch should help, please let me know if any more issues are detected.

net/ipv4/tcp_minisocks.c +0 -0
index e002f2e1d4f2de0397f2cc7ec0a14a05efbd802b..9a7ef7732c24c94d4a01d5911ebe51f21371a457

100644

net/ipv4/tcp_minisocks.c +3 -0
@@ -597,6 +597,9 @@ EXPORT_SYMBOL(tcp_create_openreq_child);
  * validation and inside tcp_v4_reqsk_send_ack(). Can we do better?
  *
  * We don't need to initialize tmp_opt.sack_ok as we don't use the results
+ *
+ * Note: If @fastopen is true, this can be called from process or BH context.
+ *       Otherwise, this is only called from BH context.
  */
 
 struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb,
@@ -748,7 +751,7 @@ struct sock *tcp_check_req(struct sock *sk, struct

sk_buff *skb,

                                          &tcp_rsk(req)->last_oow_ack_time))
                        req->rsk_ops->send_ack(sk, skb, req);
                if (paws_reject)
-                       __NET_INC_STATS(sock_net(sk),
LINUX_MIB_PAWSESTABREJECTED);
+                       NET_INC_STATS(sock_net(sk),
LINUX_MIB_PAWSESTABREJECTED);
                return NULL;
        }

@@ -767,7 +770,7 @@ struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb,

         *         "fourth, check the SYN bit"
         */
        if (flg & (TCP_FLAG_RST|TCP_FLAG_SYN)) {
-               __TCP_INC_STATS(sock_net(sk), TCP_MIB_ATTEMPTFAILS);
+               TCP_INC_STATS(sock_net(sk), TCP_MIB_ATTEMPTFAILS);
                goto embryonic_reset;
        }
#9 lore raw

Hi Eric,

Quoted 5 lines · Eric Dumazet
Quoted 3 lines · Frank Hofmann

Hi Eric,

[ ... ]

Quoted 4 lines

Thanks for the report.

I think the following patch should help, please let me know if any more issues are detected.

[ ... ]

We'll give this a shot and let you know if we see anything else. Thank you!

FrankH.

#10 lore raw
Quoted 11 lines · Frank Hofmann

Hi Eric,

Quoted 5 lines · Eric Dumazet
Quoted 3 lines · Frank Hofmann

Hi Eric,

[ ... ]

Quoted 2 lines

Thanks for the report.

Quoted 8 lines
Quoted 2 lines

I think the following patch should help, please let me know if any more issues are detected.

[ ... ]

We'll give this a shot and let you know if we see anything else. Thank you!

FrankH.

Hi Eric,

We began rolling out the update on the 14th and haven't seen any more messages crop up in our logs. We'd like to check again after another week or so, but so far the two patches are promising.

Fred

#11 lore raw
Quoted 22 lines · Frederick Lawler
Quoted 11 lines · Frank Hofmann

Hi Eric,

Quoted 5 lines · Eric Dumazet
Quoted 3 lines · Frank Hofmann

Hi Eric,

[ ... ]

Quoted 2 lines

Thanks for the report.

Quoted 8 lines
Quoted 2 lines

I think the following patch should help, please let me know if any more issues are detected.

[ ... ]

We'll give this a shot and let you know if we see anything else. Thank you!

FrankH.

Quoted 7 lines

Hi Eric,

We began rolling out the update on the 14th and haven't seen any more messages crop up in our logs. We'd like to check again after another week or so, but so far the two patches are promising.

Fred

Thanks for the update, I will submit this formally then.