[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56727731.2010605@stressinduktion.org>
Date: Thu, 17 Dec 2015 09:49:53 +0100
From: Hannes Frederic Sowa <hannes@...essinduktion.org>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org, tom@...bertland.com, edumazet@...gle.com
Subject: Re: [PATCH net 2/2] udp: restrict offloads to one namespace
Hi all,
On 17.12.2015 01:04, David Miller wrote:
> From: Hannes Frederic Sowa <hannes@...essinduktion.org>
> Date: Tue, 15 Dec 2015 21:01:54 +0100
>
>> udp tunnel offloads tend to aggregate datagrams based on inner
>> headers. gro engine gets notified by tunnel implementations about
>> possible offloads. The match is solely based on the port number.
>>
>> Imagine a tunnel bound to port 53, the offloading will look into all
>> DNS packets and tries to aggregate them based on the inner data found
>> within. This could lead to data corruption and malformed DNS packets.
>>
>> While this patch minimizes the problem and helps an administrator to find
>> the issue by querying ip tunnel/fou, a better way would be to match on
>> the specific destination ip address so if a user space socket is bound
>> to the same address it will conflict.
>>
>> Cc: Tom Herbert <tom@...bertland.com>
>> Cc: Eric Dumazet <edumazet@...gle.com>
>> Signed-off-by: Hannes Frederic Sowa <hannes@...essinduktion.org>
>
> It looks this issue is still being hashed out so I've marked this
> patch as deferred for now.
I think we need this patch. We later can decide to add more
classification attributes, like dst ip down to gro, but the netns marks
are important.
With user namespaces a normal user can start a new network namespace
with all privileges and thus add new offloads, letting the other stack
interpret this garbage. Because the user namespace can also add
arbitrary ip addresses to its interface, solely matching those is not
enough.
Tom any further comments?
Thanks,
Hannes
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists