2.4.19 TCP-RST ignored by kernel, keeps sending SYN-ACK (no ECN in kernel config)

From: Brak (brak@x.interzone.org)
Date: Tue Oct 15 2002 - 12:01:01 EST


I really hope someone else has seen this before.

Summary:
2.4.19 Kernel doesn't close out connection from SYN_RECV state when
properly sequenced TCP-RST is received. 2.4.12-ac3 behaves properly.

Full Description:
I have a load balancer that is doing simple health checks by poking at a
port, lets say 80. The load balancers sends a SYN to the port. This puts
the port in the SYN_RECV state. The Linux server responds with a SYN-ACK.
Next, the load balancer responds with a RST. When I was running the
2.4.12-ac3 kernel, the socket sitting in SYN_RECV went away, as it should.

With 2.4.19, the socket stays in SYN_RECV, and the kernel keeps sending
SYN-ACK's to the load balancer. Each time the load balancer receives a
SYN-ACK it send another TCP-RST, which again, causes nothing to happen to
the socket.

10:14:51.089620 < 192.168.50.46.1097 > 192.168.50.254.80: S
779425095:779425095(0) win 16384 <mss 1460>
10:14:51.089656 > 192.168.50.254.80 > 192.168.50.46.1097: S
144111045:144111045(0) ack 779425096 win 5840 <mss 1460> (DF)
10:14:51.093041 < 192.168.50.46.1097 > 192.168.50.254.80: R
779425096:779425096(0) win 1 (DF)
10:14:54.330613 > 192.168.50.254.80 > 192.168.50.46.1097: S
144111045:144111045(0) ack 779425096 win 5840 <mss 1460> (DF)
10:14:54.330796 < 192.168.50.46.1097 > 192.168.50.254.80: R
779425096:779425096(0) win 0 (DF)
10:15:00.330614 > 192.168.50.254.80 > 192.168.50.46.1097: S
144111045:144111045(0) ack 779425096 win 5840 <mss 1460> (DF)
10:15:00.330797 < 192.168.50.46.1097 > 192.168.50.254.80: R
779425096:779425096(0) win 0 (DF)

/proc/versions
Linux version 2.4.19 (root) (gcc version 2.96 20000731
(Red Hat Linux 7.1 2.96-98)) #1 Fri Sep 13 19:08:36 PDT 2002

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:56 EST