From: Paul Cassella <pwc@speakeasy.net>
To: Andrew Morton <andrewm@uow.edu.au>, Andi Kleen <ak@suse.de>
Cc: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org,
"David S. Miller" <davem@redhat.com>
Subject: Re: 2.4.0-ac3 write() to tcp socket returning errno of -3 (ESRCH: "No such process")
Date: Thu, 11 Jan 2001 10:45:13 -0600 (CST) [thread overview]
Message-ID: <Pine.LNX.4.21.0101111023090.716-100000@localhost> (raw)
In-Reply-To: <Pine.LNX.4.21.0101090727000.834-100000@localhost>
On Tue, 9 Jan 2001, Paul Cassella wrote:
> and mss_now seems to be less than skb->len when the printk happens. My
> copy of K&R is at work; could that comparison be being done unsigned
> because of skb->len? I wouldn't think so, but the alternative seems
> somewhat worse...
That'll teach me to post about integral promotions ...
> + printk(KERN_ERR "%s:%d:%s: err is unexpectedly %d.\n", file, line, func, ret);
... and hand-edit patches before breakfast.
I'm not familiar enough with the tcp code to know if this patch (against
-ac6) is a solution, band-aid, or, in fact, wrong, but I've run with it
(on -ac3) and haven't seen the errors for over twelve hours, which is
three times longer than it had been able to go without it coming up.
--- tcp.c.orig Thu Jan 11 08:54:50 2001
+++ tcp.c Thu Jan 11 08:56:42 2001
@@ -954,7 +954,7 @@
*/
skb = sk->write_queue.prev;
if (tp->send_head &&
- (mss_now - skb->len) > 0) {
+ (signed int)(mss_now - skb->len) > 0) {
copy = skb->len;
if (skb_tailroom(skb) > 0) {
int last_byte_was_odd = (copy % 4);
Or would this be better?
+ (unsigned int)mss_now > skb->len) {
Or making mss_now unsigned in the first place?
--
Paul Cassella
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2001-01-11 17:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3A5B0A59.1EB60A88@uow.edu.au>
2001-01-09 14:03 ` Paul Cassella
2001-01-11 16:45 ` Paul Cassella [this message]
2001-01-11 17:18 ` David S. Miller
2001-01-12 10:52 ` 2.4.0-ac3 write() to tcp socket returning errno of -3 (ESRCH:"No " Andrew Morton
2001-01-08 5:55 2.4.0-ac3 write() to tcp socket returning errno of -3 (ESRCH: "No " Paul Cassella
2001-01-08 5:58 ` David S. Miller
2001-01-08 7:16 ` Paul Cassella
2001-01-08 7:05 ` David S. Miller
2001-01-08 6:35 ` Andi Kleen
2001-01-08 7:54 ` Paul Cassella
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=Pine.LNX.4.21.0101111023090.716-100000@localhost \
--to=pwc@speakeasy.net \
--cc=ak@suse.de \
--cc=andrewm@uow.edu.au \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@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®