diff options
author | Jason Wang <jasowang@redhat.com> | 2013-03-19 12:36:56 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 10:16:39 -0700 |
commit | d1cc80b94858666cc48467e8e166ccf389551b5d (patch) | |
tree | 2e6c9019568b282fe3522989638ac8752028d426 /drivers/scsi/wd33c93.c | |
parent | 8868daebc1b6240d07d5c6428f8bc8631b2bed42 (diff) | |
download | kernel_samsung_aries-d1cc80b94858666cc48467e8e166ccf389551b5d.zip kernel_samsung_aries-d1cc80b94858666cc48467e8e166ccf389551b5d.tar.gz kernel_samsung_aries-d1cc80b94858666cc48467e8e166ccf389551b5d.tar.bz2 |
macvtap: zerocopy: validate vectors before building skb
commit b92946e2919134ebe2a4083e4302236295ea2a73 upstream.
There're several reasons that the vectors need to be validated:
- Return error when caller provides vectors whose num is greater than UIO_MAXIOV.
- Linearize part of skb when userspace provides vectors grater than MAX_SKB_FRAGS.
- Return error when userspace provides vectors whose total length may exceed
- MAX_SKB_FRAGS * PAGE_SIZE.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Benjamin Poirier <bpoirier@suse.de> [patch reduced to
the 3rd reason only for 3.0]
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/wd33c93.c')
0 files changed, 0 insertions, 0 deletions