[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1324483906.6471.7.camel@barry.pixelworks.com>
Date: Thu, 22 Dec 2011 00:11:46 +0800
From: Jun Zhao <mypopydev@...il.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: monstr@...str.eu, David Miller <davem@...emloft.net>,
John Williams <john.williams@...alogix.com>,
netdev@...r.kernel.org
Subject: Re: ICMP packets - ll_temac with Microblaze
On Wed, 2011-12-21 at 17:05 +0100, Eric Dumazet wrote:
> Le jeudi 22 décembre 2011 à 00:01 +0800, Jun Zhao a écrit :
>
> > Why receive buffer size MUST bigger than the jumbo frames size even if
> > the packet size is small?
>
> Thats the way it is in linux.
>
> We count the memory size used by the packet.
>
> If not, a malicious attacker could send 1-byte frames and exhaust your
> kernel memory.
>
> If you want to reduce it, you might use copybreak : Some drivers copy
> the data into a small skb instead of providing a jumbo frame to upper
> stack.
>
> tg3 for example.
>
>
>
Eric Dumazet:
I got it, thanks for you explanation.
--
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