[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220608160438.1342569-1-eric.dumazet@gmail.com>
Date: Wed, 8 Jun 2022 09:04:30 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: netdev <netdev@...r.kernel.org>,
Eric Dumazet <edumazet@...gle.com>,
Eric Dumazet <eric.dumazet@...il.com>
Subject: [PATCH v2 net-next 0/8] net: few debug refinements
From: Eric Dumazet <edumazet@...gle.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(-)
--
2.36.1.255.ge46751e96f-goog
Powered by blists - more mailing lists