Skip to content

net: few debug refinements

Eric Dumazet netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesApplied 8/8
  2. v18 patches 3 repliesSuperseded

Patches in v2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8net: use DEBUG_NET_WARN_ON_ONCE() in __release_sock()net/core/sock.c+1 -10 repliesApplied
2/8net: use DEBUG_NET_WARN_ON_ONCE() in dev_loopback_xmit()net/core/dev.c+1 -10 repliesApplied
3/8net: use WARN_ON_ONCE() in inet_sock_destruct()net/ipv4/af_inet.c+4 -40 repliesApplied
4/8net: use WARN_ON_ONCE() in sk_stream_kill_queues()net/core/stream.c+3 -30 repliesApplied
5/8af_unix: use DEBUG_NET_WARN_ON_ONCE()net/unix/af_unix.c+4 -40 repliesApplied
6/8net: use DEBUG_NET_WARN_ON_ONCE() in skb_release_head_state()net/core/skbuff.c+1 -10 repliesApplied
7/8net: add debug checks in napi_consume_skb and __napi_alloc_skb()net/core/skbuff.c+2 -10 repliesApplied
8/8net: add napi_get_frags_check() helpernet/core/dev.c+18 -00 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/8] net: few debug refinements

From: Eric Dumazet <[email protected]>

Adopt DEBUG_NET_WARN_ON_ONCE() or WARN_ON_ONCE()
in some places where it makes sense.

Add checks in napi_consume_skb() and __napi_alloc_skb()

Make sure napi_get_frags() does not use page fragments for skb->head.

Eric Dumazet (8):
net: use DEBUG_NET_WARN_ON_ONCE() in __release_sock()
net: use DEBUG_NET_WARN_ON_ONCE() in dev_loopback_xmit()
net: use WARN_ON_ONCE() in inet_sock_destruct()
net: use WARN_ON_ONCE() in sk_stream_kill_queues()
af_unix: use DEBUG_NET_WARN_ON_ONCE()
net: use DEBUG_NET_WARN_ON_ONCE() in skb_release_head_state()
net: add debug checks in napi_consume_skb and __napi_alloc_skb()
net: add napi_get_frags_check() helper

 net/core/dev.c     | 20 +++++++++++++++++++-
 net/core/skbuff.c  |  5 +++--
 net/core/sock.c    |  2 +-
 net/core/stream.c  |  6 +++---
 net/ipv4/af_inet.c |  8 ++++----
 net/unix/af_unix.c |  8 ++++----
 6 files changed, 34 insertions(+), 15 deletions(-)
Signature · 1 line
2.36.1.255.ge46751e96f-goog