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

From: David Miller
Date: Thu Apr 05 2012 - 19:07:58 EST


From: "Rémi Denis-Courmont" <remi@xxxxxxxxxx>
Date: Thu, 5 Apr 2012 22:14:54 +0300

> Le vendredi 6 avril 2012 01:07:45 Sasha Levin, vous avez écrit :
>> A phonet packet is limited to USHRT_MAX bytes, this is never checked during
>> tx which means that the user can specify any size he wishes, and the kernel
>> will attempt to allocate that size.
>>
>> In the good case, it'll lead to the following warning, but it may also
>> cause the kernel to kick in the OOM and kill a random task on the server.
...
>> Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx>
>
> Acked-by: Rémi Denis-Courmont <remi.denis-courmont@xxxxxxxxx>

Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/