-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in APM #752
Comments
Got somewhat different crash in APM after running
I used Linux patch https://github.com/tempesta-tech/linux-4.8.15-tfw/commit/9cea1ec0156145217ac6320c40189b40b8160780 and #692 -mitigating patch --- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -3191,6 +3191,12 @@ static int tcp_clean_rtx_queue(struct sock *sk, int prior_fackets,
if (!fully_acked)
break;
+ if (!skb->next) {
+ pr_err("AK_DBG peer=%x:%x state=%u sk_refcnt=%d flags=%lx\n",
+ sk->sk_daddr, sk->sk_dport, sk->sk_state,
+ atomic_read(&sk->sk_refcnt), sk->sk_flags);
+ continue;
+ }
tcp_unlink_write_queue(skb, sk);
sk_wmem_free_skb(sk, skb);
if (unlikely(skb == tp->retransmit_skb_hint)) Tempesta master commit b60cc3d) is used. The crash trace is
The oops corresponds to following code in APM:
|
APM has been reworked in #753. Bugs that caused the crashes were eliminated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From #692 (comment) . The problem seems happen at https://github.com/tempesta-tech/tempesta/blob/master/tempesta_fw/apm.c#L223 , i.e.
cnt
isn't incremented in the loop above.I got the oops at the below using workload
./wrk -t 16 -c 4096 -d 3600s http://centos:80/
in VM which also runs Apache HTTPD with connection reset each 100 requests.The text was updated successfully, but these errors were encountered: