[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1324483543.2301.19.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>
Date: Wed, 21 Dec 2011 17:05:43 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Jun Zhao <mypopydev@...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
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.
--
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