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-04-15 12:44:40 -04:00
2012-04-15 13:06:04 -04:00
2012-05-19 02:51:00 -04:00
2012-05-29 22:33:56 -04:00
2011-12-05 15:20:19 -05:00
2012-05-10 02:22:17 +01:00
2012-04-02 04:33:44 -04:00
2012-05-21 20:27:36 -07:00
2012-01-24 16:03:33 -05:00
2011-12-21 16:48:08 -05:00
2012-03-28 18:30:03 +01:00
2012-04-02 04:33:44 -04:00
2012-03-11 19:11:22 -07:00
2011-09-15 15:36:34 -04:00
2011-12-06 13:58:02 -05:00
2012-05-17 05:00:04 -04:00
2012-05-17 05:00:04 -04:00
2012-04-15 12:44:40 -04:00
2010-11-28 18:24:14 -08:00
2011-10-31 19:30:30 -04:00
2011-10-31 19:30:30 -04:00
2012-02-19 16:03:15 -05:00
2012-05-22 17:40:19 -07:00
2012-05-20 21:53:04 -04:00
2011-12-06 13:02:28 -05:00
2012-05-15 13:45:03 -04: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
2012-04-25 20:46:59 -04:00
2012-05-31 18:22:45 -04:00
2010-10-03 20:41:32 -07:00
2012-04-20 21:22:30 -04:00
2011-10-31 19:30:30 -04:00
2011-10-31 19:30:30 -04:00
2012-04-12 16:35:48 -04:00