diff options
| author | Hannes Frederic Sowa <[email protected]> | 2016-02-22 17:43:25 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-02-24 19:11:34 +0000 |
| commit | a8c4a2522a0808c5c2143612909717d1115c40cf (patch) | |
| tree | 630d9bda2a7e98752fbb442f1d1a96d92035ef98 /net/switchdev/switchdev.c | |
| parent | net: ethernet: nb8800: support fixed-link DT node (diff) | |
| download | kernel-a8c4a2522a0808c5c2143612909717d1115c40cf.tar.gz kernel-a8c4a2522a0808c5c2143612909717d1115c40cf.zip | |
ipv4: only create late gso-skb if skb is already set up with CHECKSUM_PARTIAL
Otherwise we break the contract with GSO to only pass CHECKSUM_PARTIAL
skbs down. This can easily happen with UDP+IPv4 sockets with the first
MSG_MORE write smaller than the MTU, second write is a sendfile.
Returning -EOPNOTSUPP lets the callers fall back into normal sendmsg path,
were we calculate the checksum manually during copying.
Commit d749c9cbffd6 ("ipv4: no CHECKSUM_PARTIAL on MSG_MORE corked
sockets") started to exposes this bug.
Fixes: d749c9cbffd6 ("ipv4: no CHECKSUM_PARTIAL on MSG_MORE corked sockets")
Reported-by: Jiri Benc <[email protected]>
Cc: Jiri Benc <[email protected]>
Reported-by: Wakko Warner <[email protected]>
Cc: Wakko Warner <[email protected]>
Signed-off-by: Hannes Frederic Sowa <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
