]> git.ipfire.org Git - thirdparty/linux.git/commit
af_unix: Set drop reason in unix_sock_destructor().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Thu, 16 Jan 2025 05:34:36 +0000 (14:34 +0900)
committerJakub Kicinski <kuba@kernel.org>
Mon, 20 Jan 2025 19:27:40 +0000 (11:27 -0800)
commit4d0446b7a214e2aa28c0e914329610731f665ad2
tree7f92b44a78e6313e672a3ed10759c9dbeccc0f63
parentc32f0bd7d4838982c6724fca0da92353f27c6f88
af_unix: Set drop reason in unix_sock_destructor().

unix_sock_destructor() is called as sk->sk_destruct() just before
the socket is actually freed.

Let's use SKB_DROP_REASON_SOCKET_CLOSE for skb_queue_purge().

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250116053441.5758-4-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/unix/af_unix.c