Eric Dumazet 5f3d9cb296 tcp: md5: use sock_kmalloc() to limit md5 keys
There is no limit on number of MD5 keys an application can attach to a
tcp socket.

This patch adds a per tcp socket limit based
on /proc/sys/net/core/optmem_max

With current default optmem_max values, this allows about 150 keys on
64bit arches, and 88 keys on 32bit arches.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-01-31 16:11:48 -05:00
..
2011-12-12 19:04:11 -05:00
2011-11-12 18:13:32 -05:00
2011-12-28 15:06:58 -05:00
2011-04-22 11:04:14 -07:00
2011-10-13 16:05:07 -04:00
2011-10-19 03:10:46 -04:00
2011-12-11 18:25:16 -05:00
2012-01-17 10:31:12 -05:00
2011-12-12 19:04:10 -05:00
2012-01-17 10:31:12 -05:00
2012-01-20 14:17:26 -05:00
2012-01-20 14:17:26 -05:00
2011-03-31 11:26:23 -03:00
2012-01-31 12:14:00 -05:00
2011-03-31 11:26:23 -03:00
2011-12-12 19:04:11 -05:00
2011-12-11 18:25:16 -05:00
2012-01-17 10:31:12 -05:00
2011-12-09 14:14:08 -05:00
2010-07-12 12:57:54 -07:00