Jason Wang cc9b17ad29 net: sock: validate data_len before allocating skb in sock_alloc_send_pskb()
We need to validate the number of pages consumed by data_len, otherwise frags
array could be overflowed by userspace. So this patch validate data_len and
return -EMSGSIZE when data_len may occupies more frags than MAX_SKB_FRAGS.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-31 18:22:45 -04:00
..
2012-05-19 02:51:00 -04:00
2012-04-02 04:33:44 -04:00
2012-04-02 04:33:44 -04:00
2012-05-17 05:00:04 -04:00
2012-05-17 05:00:04 -04:00
2010-11-28 18:24:14 -08:00
2012-03-28 18:30:03 +01:00
2012-01-17 10:31:12 -05:00
2012-05-19 18:34:57 -04:00