From: "David S. Miller" <davem@davemloft.net>
To: colin.harrison@virgin.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernel BUG at net/ipv4/tcp.c:775! with 2.6.13-git5
Date: Mon, 05 Sep 2005 18:58:43 -0700 (PDT) [thread overview]
Message-ID: <20050905.185843.25774101.davem@davemloft.net> (raw)
In-Reply-To: <200509051543.j85FhWDS008418@StraightRunning.com>
From: "Colin Harrison" <colin.harrison@virgin.net>
Date: Mon, 5 Sep 2005 16:43:44 +0100
> I'm getting the following BUG report with 2.6.13-git5:-
Should be fixed by this patch. And please use netdev@vger.kernel.org
for networking kernel stuff, thanks.
diff-tree fb5f5e6e0cebd574be737334671d1aa8f170d5f3 (from 1198ad002ad36291817c7bf0308ab9c50ee2571d)
Author: Herbert Xu <herbert@gondor.apana.org.au>
Date: Mon Sep 5 18:55:48 2005 -0700
[TCP]: Fix TCP_OFF() bug check introduced by previous change.
The TCP_OFF assignment at the bottom of that if block can indeed set
TCP_OFF without setting TCP_PAGE. Since there is not much to be
gained from avoiding this situation, we might as well just zap the
offset. The following patch should fix it.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -769,10 +769,10 @@ new_segment:
if (off == PAGE_SIZE) {
put_page(page);
TCP_PAGE(sk) = page = NULL;
- TCP_OFF(sk) = off = 0;
+ off = 0;
}
} else
- BUG_ON(off);
+ off = 0;
if (copy > PAGE_SIZE - off)
copy = PAGE_SIZE - off;
prev parent reply other threads:[~2005-09-06 1:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-05 15:43 Colin Harrison
2005-09-06 1:58 ` David S. Miller [this message]
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=20050905.185843.25774101.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=colin.harrison@virgin.net \
--cc=linux-kernel@vger.kernel.org \
/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®