diff options
author | Jason Wang <jasowang@redhat.com> | 2012-05-02 03:42:15 (GMT) |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-05-02 15:22:21 (GMT) |
commit | b92946e2919134ebe2a4083e4302236295ea2a73 (patch) | |
tree | 46887b70dd309f7bdd358f32b47b0aee766788d3 /security/selinux/netlabel.c | |
parent | 01d6657b388438def19c8baaea28e742b6ed32ec (diff) | |
download | linux-b92946e2919134ebe2a4083e4302236295ea2a73.tar.xz |
macvtap: zerocopy: validate vectors before building skb
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>
Diffstat (limited to 'security/selinux/netlabel.c')
0 files changed, 0 insertions, 0 deletions