diff options
author | Willem de Bruijn <willemb@google.com> | 2017-12-12 11:39:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-13 15:14:10 -0500 |
commit | 8d74e9f88d65af8bb2e095aff506aa6eac755ada (patch) | |
tree | 10ad06639c25d8501db175e414b1e3f01a287a76 /ipc | |
parent | c9f1f58dc2eba550f208809d272bf0b14f41edba (diff) | |
download | op-kernel-dev-8d74e9f88d65af8bb2e095aff506aa6eac755ada.zip op-kernel-dev-8d74e9f88d65af8bb2e095aff506aa6eac755ada.tar.gz |
net: avoid skb_warn_bad_offload on IS_ERR
skb_warn_bad_offload warns when packets enter the GSO stack that
require skb_checksum_help or vice versa. Do not warn on arbitrary
bad packets. Packet sockets can craft many. Syzkaller was able to
demonstrate another one with eth_type games.
In particular, suppress the warning when segmentation returns an
error, which is for reasons other than checksum offload.
See also commit 36c92474498a ("net: WARN if skb_checksum_help() is
called on skb requiring segmentation") for context on this warning.
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions