Messages in this thread | | | Date | Wed, 11 Mar 2015 21:25:45 -0400 (EDT) | Subject | Re: [PATCH] net: sysctl_net_core: check SNDBUF and RCVBUF for min length | From | David Miller <> |
| |
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.
| |