diff options
author | 2017-06-22 11:37:10 +0300 | |
---|---|---|
committer | 2017-06-22 10:49:14 +0200 | |
commit | 7c88e21aefcf86fb41b48b2e04528db5a30fbe18 (patch) | |
tree | 7f7023cf174ea4739b7195e641bdaead99e66f8a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xfrm: NULL dereference on allocation failure (diff) | |
download | wireguard-linux-7c88e21aefcf86fb41b48b2e04528db5a30fbe18.tar.xz wireguard-linux-7c88e21aefcf86fb41b48b2e04528db5a30fbe18.zip |
xfrm6: Fix IPv6 payload_len in xfrm6_transport_finish
IPv6 payload length indicates the size of the payload, including any
extension headers.
In xfrm6_transport_finish, ipv6_hdr(skb)->payload_len is set to the
payload size only, regardless of the presence of any extension headers.
After ESP GRO transport mode decapsulation, ipv6_rcv trims the packet
according to the wrong payload_len, thus corrupting the packet.
Set payload_len to account for extension headers as well.
Fixes: 7785bba299a8 ("esp: Add a software GRO codepath")
Signed-off-by: Yossi Kuperman <yossiku@mellanox.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions