]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit426ce2add27357cad803002fe44ff66c55d76dc9
treee0e068df46a8e60e53a0670a8846f801cc613154
parentf588aa3f37189adf7e0e161b96f9a0d83323ced8
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