mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Morris <jmorris@intercode.com.au>
To: Melkor Ainur <melkorainur@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: failure due to swapper and inet_sock_destruct
Date: Mon, 7 Apr 2003 14:49:22 +1000 (EST)	[thread overview]
Message-ID: <Mutt.LNX.4.44.0304071446250.28527-100000@blackbird.intercode.com.au> (raw)
In-Reply-To: <20030406065419.91429.qmail@web21203.mail.yahoo.com>

On Sat, 5 Apr 2003, Melkor Ainur wrote:

> Hello,
> 
> I am using the 2.4.20 kernel in a fairly high stress
> bursty network environment. Every so often, I see the
> following error message from the kernel:
> 
> Attempt to release TCP socket in state 10 cfbfd540
> 

Could you please try the patch from Dave Miller below (which is already in
2.4.21-pre).


- James
-- 
James Morris 
<jmorris@intercode.com.au>

# 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.930.3.3 -> 1.930.3.4
#	net/ipv4/tcp_minisocks.c	1.12    -> 1.13   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/01/30	davem@nuts.ninka.net	1.930.3.4
# [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	Sun Apr  6 21:41:32 2003
+++ b/net/ipv4/tcp_minisocks.c	Sun Apr  6 21:41:32 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;


  reply	other threads:[~2003-04-07  4:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-06  6:54 Melkor Ainur
2003-04-07  4:49 ` James Morris [this message]
2003-04-07 15:05   ` Melkor Ainur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Mutt.LNX.4.44.0304071446250.28527-100000@blackbird.intercode.com.au \
    --to=jmorris@intercode.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=melkorainur@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®