Re: KERNEL: assertion

From: David S. Miller (davem@redhat.com)
Date: Sat Feb 01 2003 - 17:49:54 EST


   From: "Lists (lst)" <linux@lapd.cj.edu.ro>
   Date: Sat, 1 Feb 2003 18:15:05 +0200 (EET)
   
   What's this?

Read this list's archives, just 2 days ago I posted a fix for this,
attached below:

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.933 -> 1.934
# net/ipv4/tcp_minisocks.c 1.12 -> 1.13
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/01/30 davem@nuts.ninka.net 1.934
# [TCP]: In tcp_check_req, handle ACKless packets properly.
# --------------------------------------------
#
diff -Nru a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
--- a/net/ipv4/tcp_minisocks.c Thu Jan 30 23:08:40 2003
+++ b/net/ipv4/tcp_minisocks.c Thu Jan 30 23:08:40 2003
@@ -938,6 +938,12 @@
         if (flg & (TCP_FLAG_RST|TCP_FLAG_SYN))
                 goto embryonic_reset;
 
+ /* ACK sequence verified above, just make sure ACK is
+ * set. If ACK not set, just silently drop the packet.
+ */
+ if (!(flg & TCP_FLAG_ACK))
+ return NULL;
+
         /* If TCP_DEFER_ACCEPT is set, drop bare ACK. */
         if (tp->defer_accept && TCP_SKB_CB(skb)->end_seq == req->rcv_isn+1) {
                 req->acked = 1;
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Fri Feb 07 2003 - 22:00:00 EST