mbox series

[v2,net-next,0/8] net: few debug refinements

Message ID 20220608160438.1342569-1-eric.dumazet@gmail.com (mailing list archive)
Headers show
Series net: few debug refinements | expand

Message

Eric Dumazet June 8, 2022, 4:04 p.m. UTC
From: Eric Dumazet <edumazet@google.com>

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(-)

Comments

patchwork-bot+netdevbpf@kernel.org June 10, 2022, 5:40 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Wed,  8 Jun 2022 09:04:30 -0700 you wrote:
> From: Eric Dumazet <edumazet@google.com>
> 
> 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()
> 
> [...]

Here is the summary with links:
  - [v2,net-next,1/8] net: use DEBUG_NET_WARN_ON_ONCE() in __release_sock()
    https://git.kernel.org/netdev/net-next/c/63fbdd3c77ec
  - [v2,net-next,2/8] net: use DEBUG_NET_WARN_ON_ONCE() in dev_loopback_xmit()
    https://git.kernel.org/netdev/net-next/c/76458faeb285
  - [v2,net-next,3/8] net: use WARN_ON_ONCE() in inet_sock_destruct()
    https://git.kernel.org/netdev/net-next/c/3e7f2b8d3088
  - [v2,net-next,4/8] net: use WARN_ON_ONCE() in sk_stream_kill_queues()
    https://git.kernel.org/netdev/net-next/c/c59f02f84867
  - [v2,net-next,5/8] af_unix: use DEBUG_NET_WARN_ON_ONCE()
    https://git.kernel.org/netdev/net-next/c/dd29c67dbbbf
  - [v2,net-next,6/8] net: use DEBUG_NET_WARN_ON_ONCE() in skb_release_head_state()
    https://git.kernel.org/netdev/net-next/c/7890e2f09d43
  - [v2,net-next,7/8] net: add debug checks in napi_consume_skb and __napi_alloc_skb()
    https://git.kernel.org/netdev/net-next/c/ee2640df2393
  - [v2,net-next,8/8] net: add napi_get_frags_check() helper
    https://git.kernel.org/netdev/net-next/c/fd9ea57f4e95

You are awesome, thank you!