mbox series

[v1,net-next,00/12] af_unix: Set skb drop reason in every kfree_skb() path.

Message ID 20250110092641.85905-1-kuniyu@amazon.com (mailing list archive)
Headers show
Series af_unix: Set skb drop reason in every kfree_skb() path. | expand

Message

Kuniyuki Iwashima Jan. 10, 2025, 9:26 a.m. UTC
There is a potential user for skb drop reason for AF_UNIX.

This series sets skb drop reason for every kfree_skb() path
in AF_UNIX code.

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


Kuniyuki Iwashima (12):
  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 unix_stream_connect().
  af_unix: Reuse out_pipe label in unix_stream_sendmsg().
  af_unix: Set drop reason in unix_stream_sendmsg().
  af_unix: Set drop reason in queue_oob().
  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: Set drop reason in unix_dgram_sendmsg().

 include/net/dropreason-core.h |  46 ++++++++--
 net/unix/af_unix.c            | 167 ++++++++++++++++++++++++----------
 net/unix/garbage.c            |   2 +-
 3 files changed, 159 insertions(+), 56 deletions(-)