diff options
author | Eric Dumazet <edumazet@google.com> | 2023-09-13 16:48:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-09-16 12:10:27 +0300 |
commit | c123e0d30bdb54a0f91ec348827eef76877165d8 (patch) | |
tree | ef95571b1f5538b29fe0adbf557bdfdb3239d96f /lib/ubsan.c | |
parent | 41862d12e77f78b4ecb59b028bf44de92991bda2 (diff) | |
download | linux-c123e0d30bdb54a0f91ec348827eef76877165d8.tar.xz |
net: add truesize debug checks in skb_{add|coalesce}_rx_frag()
It can be time consuming to track driver bugs, that might be detected
too late from this confusing warning in skb_try_coalesce()
WARN_ON_ONCE(delta < len);
Add sanity check in skb_add_rx_frag() and skb_coalesce_rx_frag()
to better track bug origin for CONFIG_DEBUG_NET=y builds.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/ubsan.c')
0 files changed, 0 insertions, 0 deletions