public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: ak@suse.de
Cc: kuznet@ms2.inr.ac.ru, scott.feldman@intel.com,
	linux-kernel@vger.kernel.org, linux-net@vger.kernel.org,
	haveblue@us.ibm.com, Manand@us.ibm.com,
	christopher.leech@intel.com
Subject: Re: TCP Segmentation Offloading (TSO)
Date: Tue, 03 Sep 2002 03:09:17 -0700 (PDT)	[thread overview]
Message-ID: <20020903.030917.77257624.davem@redhat.com> (raw)
In-Reply-To: <20020903121041.A20066@wotan.suse.de>

   From: Andi Kleen <ak@suse.de>
   Date: Tue, 3 Sep 2002 12:10:41 +0200

   On Tue, Sep 03, 2002 at 03:00:25AM -0700, David S. Miller wrote:
   > Ok I think we really need to fix this then in the arches
   > where broken.  Let's do an audit. :-)
   
   Yes, it's needed because users can pass unaligned addresses in from
   userspace to sendmsg
   
I know, that is old news.  New case is csum_partial since
sys_sendfile can use byte aligned page offsets.

Traditionally this really didn't ever happen because
skb->data was always nicely aligned.

   > It looks like sparc64 is the only platform where oddly aligned buffer
   > can truly cause problems and I can fix that easily enough.
   
   It could allow everybody to generate packets with bogus addresses on 
   the network.
   
No, the sparc64 case generates an OOPS for csum_partial only.

csum_partial_copy_*() is perfectly fine for byte aligned buffers.

   I suspect on sparc64 it will just be all handled by the unalignment handler
   in the kernel ? If yes it will be incredibly slow, but should work.
   
That's what happens now as long as the VIS instructions don't
get used.  The one case where oddly aligned buffer address is
not checked to avoid using VIS is csum_partial.

The unaligned trap handler doesn't handle the 64-byte VIS loads into
the fpu regs from kernel mode, and this is by choice.  I'd rather back
down to an integer algorithm than actually handle this odd case.

  reply	other threads:[~2002-09-03 10:11 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <288F9BF66CD9D5118DF400508B68C4460283E564@orsmsx113.jf.intel.com.suse.lists.linux.kernel>
     [not found] ` <200209021858.WAA00388@sex.inr.ac.ru.suse.lists.linux.kernel>
     [not found]   ` <20020903.164243.21934772.taka@valinux.co.jp.suse.lists.linux.kernel>
     [not found]     ` <20020903.005119.50342945.davem@redhat.com.suse.lists.linux.kernel>
2002-09-03  9:05       ` TCP Segmentation Offloading (TSO) Andi Kleen
2002-09-03 10:00         ` David S. Miller
2002-09-03 10:10           ` Andi Kleen
2002-09-03 10:09             ` David S. Miller [this message]
2002-09-03 18:09 Manfred Spraul
2002-09-03 23:08 ` Hirokazu Takahashi
  -- strict thread matches above, loose matches on Subject: below --
2002-09-03 17:50 Feldman, Scott
2002-09-02 17:45 Feldman, Scott
2002-09-02 18:58 ` kuznet
2002-09-03  7:42   ` Hirokazu Takahashi
2002-09-03  7:51     ` David S. Miller
2002-09-03 11:27       ` Paul Mackerras
2002-09-03 11:29         ` David S. Miller
2002-09-03 12:21     ` kuznet
2002-09-03 13:03       ` Hirokazu Takahashi
2002-09-03 13:19         ` Hirokazu Takahashi
2002-09-03 13:22         ` kuznet
2002-09-03 21:05           ` David S. Miller
2002-09-03 21:20             ` David S. Miller
2002-09-04  1:02     ` H. Peter Anvin
2002-09-04  1:54       ` David S. Miller
2002-09-04 22:39       ` Gabriel Paubert
2002-09-04 22:41         ` H. Peter Anvin
2002-09-05  2:13           ` Hirokazu Takahashi
2002-09-05  2:21             ` David S. Miller
2002-09-05 10:28             ` Gabriel Paubert
2002-09-05 11:17               ` Jamie Lokier
2002-09-05 13:21                 ` Gabriel Paubert
2002-09-05 13:17                   ` David S. Miller
2002-09-08  4:20                   ` Hirokazu Takahashi
2002-09-08  4:29                     ` H. Peter Anvin
2002-09-04 23:17         ` Alan Cox
2002-09-05  0:09           ` Jamie Lokier
2002-09-02 19:06 ` Jeff Garzik
2002-09-02 23:13 ` David S. Miller
2002-09-03  4:58 ` Jordi Ros
2002-09-03  6:52   ` David S. Miller
2002-09-03  7:26     ` Jordi Ros
2002-09-03  7:39       ` David S. Miller

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=20020903.030917.77257624.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=Manand@us.ibm.com \
    --cc=ak@suse.de \
    --cc=christopher.leech@intel.com \
    --cc=haveblue@us.ibm.com \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    --cc=scott.feldman@intel.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