linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Lars Ellenberg <Lars.Ellenberg@linbit.com>
Subject: Re: [uml-devel] SOLVED: uml "ip header error" for large (fragmented) udp packets
Date: Tue, 12 Oct 2004 02:27:00 +0200	[thread overview]
Message-ID: <200410120227.00849.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <xneXIovOv53ZtptO+AU2uyI=lge@web.de>

On Tuesday 12 October 2004 02:03, Lars Ellenberg wrote:
> / 2004-10-11 19:55:12 +0200
>
> \ Lars Ellenberg:
> > since UML => Host does not work, but
> > Host => UML does, this suggests that
> > the bug is somewhere on the sending side.
> >
> > I was not able to track it down.
>
> just so you know, finally:

> =======================
> --- linux-2.6.6/arch/um/include/sysdep-i386/checksum.h.orig	2004-10-12
> 01:50:49.000000000 +0200 +++
> linux-2.6.6/arch/um/include/sysdep-i386/checksum.h	2004-10-12
> 01:50:58.000000000 +0200 @@ -102,8 +102,7 @@
>  	   are modified, we must also specify them as outputs, or gcc
>  	   will assume they contain their original values. */
>
>  	: "=r" (sum), "=r" (iph), "=r" (ihl)
>
> -	: "1" (iph), "2" (ihl)
> -	: "memory");
> +	: "1" (iph), "2" (ihl));
>  	return(sum);
>  }
The patch you posted REMOVES a memory barrier - you reversed it. I actually 
checked the barrier is missing in the source code; but the strange thing is 
that you modified checksum.h.orig and not checksum.h! Are you sure that you 
compiled the corrected header? However, the patch is correct, and I assume 
you posted it the right way. I'm going to send it to Andrew Morton for 2.6.9 
(hoping he wants to accept all these patches - they are rushing for 2.6.9).

> that's all, folks. only a missing memory barrier.
Thanks a lot, folks! Yes, the patch is right.
> WTF :-/
>
> same patch applies to 2.6.8.1 - uml and probably all other umls.
> since that is a one-to-one copy anyways, maybe UML should better use the
> original (in include/asm-i386/checksum.h) right away??
I could do this later - too much checks for the other header code for a 
one-minute patch.
> there may be similar bugs hiding in various areas of uml...
I think there are even worse ones.
> btw,
> anyone wants to give me a hint how to tune it best?
> maybe how to up the mtu of the UML "nics"?
Impossible with the current code - it emulates an ethernet card, so I don't 
think you can do anything for this. However I hope it does not cause too much 
problems. Search for the network howtos: someone explained how to set the 
interface packet scheduler (maybe even Jeff Dike on the main UML site).

Bye
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  parent reply	other threads:[~2004-10-12  0:26 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-03  2:36 [uml-devel] uml "ip header error" for large (fragmented) udp packets Lars Ellenberg
2004-10-03 15:11 ` BlaisorBlade
2004-10-03 19:29   ` Lars Ellenberg
2004-10-04 11:07   ` Gerd Knorr
2004-10-04 11:56     ` Henrik Nordstrom
2004-10-06 17:50 ` BlaisorBlade
2004-10-06 18:48   ` Lars Ellenberg
2004-10-06 20:35     ` Andi Kleen
2004-10-06 21:48       ` Lars Ellenberg
2004-10-07 18:41         ` BlaisorBlade
2004-10-07 18:41       ` BlaisorBlade
2004-10-07 20:24         ` Lars Ellenberg
2004-10-11 17:55           ` Lars Ellenberg
2004-10-12  0:03             ` [uml-devel] SOLVED: " Lars Ellenberg
2004-10-12  0:11               ` Andi Kleen
2004-10-12  1:10                 ` BlaisorBlade
2004-10-12  1:53                   ` Michael Richardson
2004-10-15 15:25                   ` [uml-devel] larger MTU _does_ work Lars Ellenberg
2004-10-12  0:27               ` BlaisorBlade [this message]
2004-10-12 14:00                 ` [uml-devel] SOLVED: uml "ip header error" for large (fragmented) udp packets Lars Ellenberg

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=200410120227.00849.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=Lars.Ellenberg@linbit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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