[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120405.190649.1829697650143132541.davem@davemloft.net>
Date: Thu, 05 Apr 2012 19:06:49 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: remi@...lab.net
Cc: levinsasha928@...il.com, remi.denis-courmont@...ia.com,
davej@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] phonet: Check input from user before allocating
From: "Rémi Denis-Courmont" <remi@...lab.net>
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@...il.com>
>
> Acked-by: Rémi Denis-Courmont <remi.denis-courmont@...ia.com>
Applied and queued up for -stable, thanks.
--
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