net: remove two BUG() from skb_checksum_help()
authorEric Dumazet <edumazet@google.com>
Tue, 10 May 2022 03:57:40 +0000 (20:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2022 11:44:16 +0000 (12:44 +0100)
commitd7ea0d9df2a6265b2b180d17ebc64b38105968fc
treee0e068df46a8e60e53a0670a8846f801cc613154
parent66e4c8d950083df8e12981babca788e1635c92b6
net: remove two BUG() from skb_checksum_help()

I have a syzbot report that managed to get a crash in skb_checksum_help()

If syzbot can trigger these BUG(), it makes sense to replace
them with more friendly WARN_ON_ONCE() since skb_checksum_help()
can instead return an error code.

Note that syzbot will still crash there, until real bug is fixed.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c