diff options
| author | Alexey Kodanev <[email protected]> | 2017-10-06 16:02:35 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-08 17:12:15 +0000 |
| commit | 3d0241d57c7b25bb75ac9d7a62753642264fdbce (patch) | |
| tree | 536ca01291bd131be75fed6742557d1885774622 /net/tipc/msg.c | |
| parent | mlxsw: spectrum_router: Avoid expensive lookup during route removal (diff) | |
| download | kernel-3d0241d57c7b25bb75ac9d7a62753642264fdbce.tar.gz kernel-3d0241d57c7b25bb75ac9d7a62753642264fdbce.zip | |
gso: fix payload length when gso_size is zero
When gso_size reset to zero for the tail segment in skb_segment(), later
in ipv6_gso_segment(), __skb_udp_tunnel_segment() and gre_gso_segment()
we will get incorrect results (payload length, pcsum) for that segment.
inet_gso_segment() already has a check for gso_size before calculating
payload.
The issue was found with LTP vxlan & gre tests over ixgbe NIC.
Fixes: 07b26c9454a2 ("gso: Support partial splitting at the frag_list pointer")
Signed-off-by: Alexey Kodanev <[email protected]>
Acked-by: Alexander Duyck <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/msg.c')
0 files changed, 0 insertions, 0 deletions
