aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2013-12-09 10:25:17 +0000
committerDavid S. Miller <[email protected]>2013-12-11 03:06:49 +0000
commit730054da3868c35809fd31a4018044ab10b0e215 (patch)
tree7b83e6854b19f4204e8785977f97ac3ff51df03a /net/unix/af_unix.c
parenttun: unbreak truncated packet signalling (diff)
downloadkernel-730054da3868c35809fd31a4018044ab10b0e215.tar.gz
kernel-730054da3868c35809fd31a4018044ab10b0e215.zip
macvtap: signal truncated packets
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 truncated checking work. Cc: Vlad Yasevich <[email protected]> Cc: Zhi Yong Wu <[email protected]> Signed-off-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions