netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 net-next 0/9] af_unix: Set skb drop reason in every kfree_skb() path.
@ 2025-01-16  5:34 Kuniyuki Iwashima
  2025-01-16  5:34 ` [PATCH v3 net-next 1/9] net: dropreason: Gather SOCKET_ drop reasons Kuniyuki Iwashima
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Kuniyuki Iwashima @ 2025-01-16  5:34 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman
  Cc: Donald Hunter, Kuniyuki Iwashima, Kuniyuki Iwashima, netdev

There is a potential user for skb drop reason for AF_UNIX.

This series replaces some kfree_skb() in connect() and
sendmsg() paths and sets skb drop reason for the rest of
kfree_skb() in AF_UNIX.

Link: https://lore.kernel.org/netdev/CAAf2ycmZHti95WaBR3s+L5Epm1q7sXmvZ-EqCK=-oZj=45tOwQ@mail.gmail.com/


Changes:
  v3:
    * Drop skb drop reason patches for connect() and sendmsg()
    * Restore patch 8
    * Add patch 9 replacing kfree_skb() with consume_skb() in connect()
      and sendmsg()

  v2: https://lore.kernel.org/netdev/20250112040810.14145-1-kuniyu@amazon.com/
    * Drop the old patch 6 to silence false-positive uninit warning

  v1: https://lore.kernel.org/netdev/20250110092641.85905-1-kuniyu@amazon.com/


Kuniyuki Iwashima (9):
  net: dropreason: Gather SOCKET_ drop reasons.
  af_unix: Set drop reason in unix_release_sock().
  af_unix: Set drop reason in unix_sock_destructor().
  af_unix: Set drop reason in __unix_gc().
  af_unix: Set drop reason in manage_oob().
  af_unix: Set drop reason in unix_stream_read_skb().
  af_unix: Set drop reason in unix_dgram_disconnected().
  af_unix: Reuse out_pipe label in unix_stream_sendmsg().
  af_unix: Use consume_skb() in connect() and sendmsg().

 include/net/dropreason-core.h | 28 +++++++++++----
 net/unix/af_unix.c            | 67 +++++++++++++++++------------------
 net/unix/garbage.c            |  2 +-
 3 files changed, 55 insertions(+), 42 deletions(-)

-- 
2.39.5 (Apple Git-154)


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-01-20 19:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-16  5:34 [PATCH v3 net-next 0/9] af_unix: Set skb drop reason in every kfree_skb() path Kuniyuki Iwashima
2025-01-16  5:34 ` [PATCH v3 net-next 1/9] net: dropreason: Gather SOCKET_ drop reasons Kuniyuki Iwashima
2025-01-16  5:34 ` [PATCH v3 net-next 2/9] af_unix: Set drop reason in unix_release_sock() Kuniyuki Iwashima
2025-01-16  5:34 ` [PATCH v3 net-next 3/9] af_unix: Set drop reason in unix_sock_destructor() Kuniyuki Iwashima
2025-01-16  5:34 ` [PATCH v3 net-next 4/9] af_unix: Set drop reason in __unix_gc() Kuniyuki Iwashima
2025-01-16  5:34 ` [PATCH v3 net-next 5/9] af_unix: Set drop reason in manage_oob() Kuniyuki Iwashima
2025-01-16  5:34 ` [PATCH v3 net-next 6/9] af_unix: Set drop reason in unix_stream_read_skb() Kuniyuki Iwashima
2025-01-16  5:34 ` [PATCH v3 net-next 7/9] af_unix: Set drop reason in unix_dgram_disconnected() Kuniyuki Iwashima
2025-01-16  5:34 ` [PATCH v3 net-next 8/9] af_unix: Reuse out_pipe label in unix_stream_sendmsg() Kuniyuki Iwashima
2025-01-16  5:34 ` [PATCH v3 net-next 9/9] af_unix: Use consume_skb() in connect() and sendmsg() Kuniyuki Iwashima
2025-01-20 19:50 ` [PATCH v3 net-next 0/9] af_unix: Set skb drop reason in every kfree_skb() path patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).