summaryrefslogtreecommitdiffstats
path: root/block/ioctl.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2012-05-30 23:18:10 +0200
committerDavid S. Miller <davem@davemloft.net>2012-06-01 00:22:45 +0200
commitcc9b17ad29ecaa20bfe426a8d4dbfb94b13ff1cc (patch)
treedbf402b10788ab22d1d9d8c14866a910be497c29 /block/ioctl.c
parentbql: Avoid possible inconsistent calculation. (diff)
downloadlinux-cc9b17ad29ecaa20bfe426a8d4dbfb94b13ff1cc.tar.xz
linux-cc9b17ad29ecaa20bfe426a8d4dbfb94b13ff1cc.zip
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>
Diffstat (limited to 'block/ioctl.c')
0 files changed, 0 insertions, 0 deletions