summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-11-03 07:01:25 +0100
committerDavid S. Miller <davem@davemloft.net>2014-11-03 20:52:20 +0100
commit3ce9b20f1971690b8b3b620e735ec99431573b39 (patch)
tree03683cd036092b08a4664d8728c5e300e4e35fb6 /security
parentnet: fec: fix suspend broken on multiple MACs sillicons (diff)
downloadlinux-3ce9b20f1971690b8b3b620e735ec99431573b39.tar.xz
linux-3ce9b20f1971690b8b3b620e735ec99431573b39.zip
macvtap: Fix csum_start when VLAN tags are present
When VLAN is in use in macvtap_put_user, we end up setting csum_start to the wrong place. The result is that the whoever ends up doing the checksum setting will corrupt the packet instead of writing the checksum to the expected location, usually this means writing the checksum with an offset of -4. This patch fixes this by adjusting csum_start when VLAN tags are detected. Fixes: f09e2249c4f5 ("macvtap: restore vlan header on user read") Cc: stable@vger.kernel.org Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Cheers, Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions