From: Sridhar Samudrala <sri@us.ibm.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: davem@davemloft.net, netdev@vger.kernel.org, kvm@vger.kernel.org,
rusty@rustcorp.com.au
Subject: Re: [PATCH net-next 2/4] udp: Handle large UFO packets from untrusted sources
Date: Tue, 09 Jun 2009 22:51:23 -0700 [thread overview]
Message-ID: <4A2F49DB.20207@us.ibm.com> (raw)
In-Reply-To: <20090608233739.GA1021@gondor.apana.org.au>
Herbert Xu wrote:
> On Mon, Jun 08, 2009 at 10:04:47AM -0700, Sridhar Samudrala wrote:
>
>> OK. Can we use skb_segment() to do IP fragmentation of UDP packets?
>>
>
> It should be able to.
>
Unfortunately, this doesn't work for UDP without any changes.
skb_segment() currently adds transport header to
each segmented skb. But when we are using IP fragmentation, only the
first fragment should include the UDP
header.
We either need to fix skb_segment() to handle IP fragmentation or write
a new skb_fragment(). I will look into
this when i get some time.
Thanks
Sridhar
>
>> The function itself looks protocol independent and if it is simply
>> splitting large skb into a list of mtu sized skb's, can we fixup the
>> ip header differently for UDP packets(id and frag_off) in inet_gso_segment
>> and ipv6_gso_segment?
>>
>
> Yes that's the idea.
>
> Cheers,
>
next prev parent reply other threads:[~2009-06-10 5:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-06 0:16 [PATCH net-next 2/4] udp: Handle large UFO packets from untrusted sources Sridhar Samudrala
2009-06-08 5:16 ` Herbert Xu
2009-06-08 17:04 ` Sridhar Samudrala
2009-06-08 23:37 ` Herbert Xu
2009-06-10 5:51 ` Sridhar Samudrala [this message]
2009-06-10 9:17 ` Herbert Xu
2009-06-10 3:40 ` Rusty Russell
2009-06-10 5:52 ` Sridhar Samudrala
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=4A2F49DB.20207@us.ibm.com \
--to=sri@us.ibm.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=kvm@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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;
as well as URLs for NNTP newsgroup(s).