Skip to content

af_unix: Prepare for skb drop reason.

Kuniyuki Iwashima netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 0 repliesApplied 12/12
  2. v115 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* Drop previous patch 4, 7, 14
* Patch 4
* Move send_sig() after SEND_SHUTDOWN check before goto

Patches in v2 All 12 applied

#Subject and filesSizeRepliesApplied
1/12af_unix: Set error only when needed in unix_stream_connect().net/unix/af_unix.c+10 -90 repliesApplied
2/12af_unix: Clean up error paths in unix_stream_connect().net/unix/af_unix.c+13 -160 repliesApplied
3/12af_unix: Set error only when needed in unix_stream_sendmsg().net/unix/af_unix.c+4 -30 repliesApplied
4/12af_unix: Clean up error paths in unix_stream_sendmsg().net/unix/af_unix.c+20 -190 repliesApplied
5/12af_unix: Set error only when needed in unix_dgram_sendmsg().net/unix/af_unix.c+19 -130 repliesApplied
6/12af_unix: Move !sunaddr case in unix_dgram_sendmsg().net/unix/af_unix.c+3 -50 repliesApplied
7/12af_unix: Use msg->{msg_name,msg_namelen} in unix_dgram_sendmsg().net/unix/af_unix.c+4 -60 repliesApplied
8/12af_unix: Split restart label in unix_dgram_sendmsg().net/unix/af_unix.c+4 -20 repliesApplied
9/12af_unix: Defer sock_put() to clean up path in unix_dgram_sendmsg().net/unix/af_unix.c+0 -20 repliesApplied
10/12af_unix: Clean up SOCK_DEAD error paths in unix_dgram_sendmsg().net/unix/af_unix.c+15 -150 repliesApplied
11/12af_unix: Clean up error paths in unix_dgram_sendmsg().net/unix/af_unix.c+15 -160 repliesApplied
12/12af_unix: Remove unix_our_peer().net/unix/af_unix.c+1 -60 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 net-next 00/12] af_unix: Prepare for skb drop reason.

This is a prep series and cleans up error paths in the following functions

* unix_stream_connect()
* unix_stream_sendmsg()
* unix_dgram_sendmsg()

to make it easy to add skb drop reason for AF_UNIX, which seems to have a potential user.

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

Changes:
v2:
* Drop previous patch 4, 7, 14
* Patch 4
* Move send_sig() after SEND_SHUTDOWN check before goto

v1: https://lore.kernel.org/netdev/[email protected]/

Kuniyuki Iwashima (12):
af_unix: Set error only when needed in unix_stream_connect().
af_unix: Clean up error paths in unix_stream_connect().
af_unix: Set error only when needed in unix_stream_sendmsg().
af_unix: Clean up error paths in unix_stream_sendmsg().
af_unix: Set error only when needed in unix_dgram_sendmsg().
af_unix: Move !sunaddr case in unix_dgram_sendmsg().
af_unix: Use msg->{msg_name,msg_namelen} in unix_dgram_sendmsg().
af_unix: Split restart label in unix_dgram_sendmsg().
af_unix: Defer sock_put() to clean up path in unix_dgram_sendmsg().
af_unix: Clean up SOCK_DEAD error paths in unix_dgram_sendmsg().
af_unix: Clean up error paths in unix_dgram_sendmsg().
af_unix: Remove unix_our_peer().

 net/unix/af_unix.c | 196 ++++++++++++++++++++++-----------------------
 1 file changed, 96 insertions(+), 100 deletions(-)
Signature · 1 line
2.39.5 (Apple Git-154)