diff options
author | Jason Wang <jasowang@redhat.com> | 2013-12-11 05:08:34 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-15 23:31:33 (GMT) |
commit | ade6583466937b71a88eca5e72254af712b6dd07 (patch) | |
tree | bd37073e2c26a4b1899f02a76eaab77c41648622 /samples/hidraw | |
parent | 0f1d447d2b8d8fd2eac2dd2af4c56906056d4816 (diff) | |
download | linux-fsl-qoriq-ade6583466937b71a88eca5e72254af712b6dd07.tar.xz |
macvtap: signal truncated packets
[ Upstream commit ce232ce01d61b184202bb185103d119820e1260c ]
macvtap_put_user() never return a value grater than iov length, this in fact
bypasses the truncated checking in macvtap_recvmsg(). Fix this by always
returning the size of packet plus the possible vlan header to let the trunca
checking work.
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/hidraw')
0 files changed, 0 insertions, 0 deletions