Re: [PATCH] net: sysctl_net_core: check SNDBUF and RCVBUF for min length

2015-03-11 Thread David Miller
From: Alexey Kodanev 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, se

Re: [PATCH] net: sysctl_net_core: check SNDBUF and RCVBUF for min length

2015-03-11 Thread Eric Dumazet
On Wed, 2015-03-11 at 14:29 +0300, Alexey Kodanev wrote: > 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 th

[PATCH] net: sysctl_net_core: check SNDBUF and RCVBUF for min length

2015-03-11 Thread Alexey Kodanev
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.c