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: <20251115020935.2643121-1-kuniyu@google.com>
Date: Sat, 15 Nov 2025 02:08:31 +0000
From: Kuniyuki Iwashima <kuniyu@...gle.com>
To: "David S . Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, 
	Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>
Cc: Simon Horman <horms@...nel.org>, Kuniyuki Iwashima <kuniyu@...gle.com>, 
	Kuniyuki Iwashima <kuni1840@...il.com>, netdev@...r.kernel.org
Subject: [PATCH v1 net-next 0/7] af_unix: GC cleanup and optimisation.

Currently, AF_UNIX GC is triggered from close() and sendmsg()
based on the number of inflight AF_UNIX sockets.

This is because the old GC implementation had no idea of the
shape of the graph formed by SCM_RIGHTS references.

The new GC knows whether cyclic references (could) exist.

This series refines such conditions not to trigger GC unless
really needed.


Kuniyuki Iwashima (7):
  af_unix: Count cyclic SCC.
  af_unix: Simplify GC state.
  af_unix: Don't trigger GC from close() if unnecessary.
  af_unix: Don't call wait_for_unix_gc() on every sendmsg().
  af_unix: Refine wait_for_unix_gc().
  af_unix: Remove unix_tot_inflight.
  af_unix: Consolidate unix_schedule_gc() and wait_for_unix_gc().

 net/unix/af_unix.c |  7 +---
 net/unix/af_unix.h |  4 +-
 net/unix/garbage.c | 92 ++++++++++++++++++++++++----------------------
 3 files changed, 51 insertions(+), 52 deletions(-)

-- 
2.52.0.rc1.455.g30608eb744-goog


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ