lkml.org 
[lkml]   [2015]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net: sysctl_net_core: check SNDBUF and RCVBUF for min length
From
From: Alexey Kodanev <alexey.kodanev@oracle.com>
Date: Wed, 11 Mar 2015 14:29:17 +0300

> sysctl has sysctl.net.core.rmem_*/wmem_* parameters which can be
> set to incorrect values. Given that 'struct sk_buff' allocates from
> rcvbuf, incorrectly set buffer length could result to memory
> allocation failures. For example, set them as follows:
>
> # sysctl net.core.rmem_default=64
> net.core.wmem_default = 64
> # sysctl net.core.wmem_default=64
> net.core.wmem_default = 64
> # ping localhost -s 1024 -i 0 > /dev/null
>
> This could result to the following failure:
...
> Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>

Applied, but someone needs to followup with fixes to AF_UNIX etc.


\
 
 \ /
  Last update: 2015-03-12 02:41    [W:0.043 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site