Subject: Re: [PATCH] phonet: Check input from user before allocating

From: Rémi Denis-Courmont <[email-masked]>
Date: Tue, 03 Apr 2012 08:36:20 +0200

On Mon, 02 Apr 2012 17:40:06 -0400 (EDT), David Miller
<[email-masked]> wrote:
> UDP generates a fragment list of MTU sized SKBs.
> 
> Phonet could avoid the large allocations by building page based
> SKBs.

Oh right. And Phonet devices don't support scatter/gather, so that I guess
that would merely delay the problem.

Also sendmsg() code would need to be reectored to look up the output
device and then the MTU before allocating the socket buffer. This will only
work if the default MTU is reduced first :/

-- 
Rémi Denis-Courmont
Sent from my collocated server