Skip to content

net: CONFIG_DEBUG_NET and friends

Eric Dumazet netdev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew 4 of 5 applied
  2. v14 patches 4 repliesSuperseded

Patches in v2 4 of 5 applied

#Subject and filesSizeRepliesApplied
1/5net: add include/net/net_debug.hinclude/linux/netdevice.h include/net/net_debug.h+152 -1400 repliesApplied
2/5net: add CONFIG_DEBUG_NETinclude/net/net_debug.h net/Kconfig.debug+13 -00 repliesApplied
3/5net: warn if transport header was not setinclude/linux/skbuff.h+2 -00 replies
4/5net: remove two BUG() from skb_checksum_help()net/core/dev.c+6 -20 repliesApplied
5/5net: add more debug info in skb_checksum_help()net/core/dev.c+6 -40 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/5] net: CONFIG_DEBUG_NET and friends

From: Eric Dumazet <[email protected]>

This patch series is inspired by some syzbot reports hinting that skb transport_header might be not set in places we expect it being set.

Add a new CONFIG_DEBUG_NET option
and DEBUG_NET_WARN_ON_ONCE() helper, so that we can start adding more sanity checks in the future.

Replace two BUG() in skb_checksum_help()
with less risky code.

v2: make first patch compile on more arches/compilers
add the 5th patch to add more debugging in skb_checksum_help()

Eric Dumazet (5):
net: add include/net/net_debug.h
net: add CONFIG_DEBUG_NET
net: warn if transport header was not set
net: remove two BUG() from skb_checksum_help()
net: add more debug info in skb_checksum_help()

 include/linux/netdevice.h | 141 +---------------------------------
 include/linux/skbuff.h    |   2 +
 include/net/net_debug.h   | 157 ++++++++++++++++++++++++++++++++++++++
 net/Kconfig.debug         |   7 ++
 net/core/dev.c            |  12 ++-
 5 files changed, 176 insertions(+), 143 deletions(-)
 create mode 100644 include/net/net_debug.h
Signature · 1 line
2.36.0.512.ge40c2bad7a-goog