lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241213110850.25453-1-kuniyu@amazon.com>
Date: Fri, 13 Dec 2024 20:08:38 +0900
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: "David S. Miller" <davem@...emloft.net>, Eric Dumazet
	<edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
	<pabeni@...hat.com>
CC: Kuniyuki Iwashima <kuniyu@...zon.com>, Kuniyuki Iwashima
	<kuni1840@...il.com>, <netdev@...r.kernel.org>
Subject: [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/20241206052607.1197-1-kuniyu@amazon.com/


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(-)

-- 
2.39.5 (Apple Git-154)


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ