netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kuniyuki Iwashima <kuniyu@amazon.com>
To: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>
Cc: Donald Hunter <donald.hunter@redhat.com>,
	Kuniyuki Iwashima <kuniyu@amazon.com>,
	Kuniyuki Iwashima <kuni1840@gmail.com>, <netdev@vger.kernel.org>
Subject: [PATCH v3 net-next 0/9] af_unix: Set skb drop reason in every kfree_skb() path.
Date: Thu, 16 Jan 2025 14:34:33 +0900	[thread overview]
Message-ID: <20250116053441.5758-1-kuniyu@amazon.com> (raw)

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)


             reply	other threads:[~2025-01-16  5:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-16  5:34 Kuniyuki Iwashima [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250116053441.5758-1-kuniyu@amazon.com \
    --to=kuniyu@amazon.com \
    --cc=davem@davemloft.net \
    --cc=donald.hunter@redhat.com \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=kuni1840@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).