summaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2017-12-12 19:39:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-25 13:01:18 +0300
commit48e014f330c3fa1b32e134750e89ed5ef21b0e05 (patch)
treec8c9f12662b211ceed55ab415e5d26c73a32dc5f /include/linux/string.h
parente6c8571967adac7bb8821f5347299e293ac01d57 (diff)
downloadlinux-48e014f330c3fa1b32e134750e89ed5ef21b0e05.tar.xz
net: avoid skb_warn_bad_offload on IS_ERR
commit 8d74e9f88d65af8bb2e095aff506aa6eac755ada upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions