From: Ben Hutchings <bhutchings@solarflare.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: David Miller <davem@davemloft.net>, <therbert@google.com>,
<netdev@vger.kernel.org>
Subject: Re: [PATCH] net: Check skb->rxhash in gro_receive
Date: Mon, 13 Jan 2014 20:50:13 +0000 [thread overview]
Message-ID: <1389646213.2025.159.camel@bwh-desktop.uk.level5networks.com> (raw)
In-Reply-To: <1389644256.31367.223.camel@edumazet-glaptop2.roam.corp.google.com>
On Mon, 2014-01-13 at 12:17 -0800, Eric Dumazet wrote:
> On Mon, 2014-01-13 at 11:59 -0800, David Miller wrote:
>
> > It also doesn't jive well with Eric's recent patch to adjust the GRO
> > overflow strategy (600adc18eba823f9fd8ed5fec8b04f11dddf3884 ("net:
> > gro: change GRO overflow strategy"))
> >
> > :-)
> >
> > I sort of like Tom's idea to optimistically compare the hash, if we
> > do in fact have one already.
> >
> > Eric would the change be OK if Tom did it that way?
> > --
>
> Yes this is what I suggested, but it seems Tom had something different
> in mind.
>
> I would rather not call flow dissector from GRO, especially considering
> nobody but Google uses RPS/RFS (otherwise CVE-2013-4348 would have been
> discovered much sooner)
According to the original report of that vulnerability:
> skb_flow_dissect() were used by several places:
> - packet scheduler that want classify flows
> - skb_get_rxhash() that will be used by RPS, vxlan, multiqueue
> tap,macvtap packet fanout
> - skb_probe_transport_header() which was used for probing transport
> header for DODGY packets
> - __skb_get_poff() which will be used by socket filter
So flow dissector is already part of the attack surface for both local
and remote users in common configurations.
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2014-01-13 20:50 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 4:54 [PATCH] net: Check skb->rxhash in gro_receive Tom Herbert
2014-01-10 5:00 ` David Miller
2014-01-10 5:38 ` Eric Dumazet
2014-01-10 5:43 ` Eric Dumazet
2014-01-10 16:47 ` Tom Herbert
2014-01-10 16:27 ` Tom Herbert
2014-01-10 17:45 ` Eric Dumazet
2014-01-10 18:15 ` Tom Herbert
2014-01-10 18:54 ` Eric Dumazet
2014-01-10 19:42 ` Tom Herbert
2014-01-10 20:43 ` Eric Dumazet
2014-01-10 23:22 ` Tom Herbert
2014-01-13 19:59 ` David Miller
2014-01-13 20:13 ` Tom Herbert
2014-01-13 20:17 ` Eric Dumazet
2014-01-13 20:50 ` Ben Hutchings [this message]
2014-01-13 21:37 ` Eric Dumazet
2014-01-15 1:31 ` Ben Hutchings
2014-01-15 2:27 ` Eric Dumazet
2014-01-15 2:43 ` Ben Hutchings
2014-01-13 21:24 ` Tom Herbert
2014-01-13 21:36 ` Eric Dumazet
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=1389646213.2025.159.camel@bwh-desktop.uk.level5networks.com \
--to=bhutchings@solarflare.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=therbert@google.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