Skip to content

af_unix: Fix GC and improve selftest

Michal Luczaj netdev 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied 2/2
  2. v22 patches 8 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Changes in v3 from the cover letter

- Patch 1/2: correct the commit message (Kuniyuki)

Patches in v3 All 2 applied

#Subject and filesSizeRepliesApplied
1/2af_unix: Fix garbage collection of embryos carrying OOB with SCM_RIGHTSnet/unix/garbage.c+14 -90 repliesApplied
2/2selftest: af_unix: Make SCM_RIGHTS into OOB data.tools/testing/selftests/net/af_unix/scm_rights.c+2 -21 replyApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchKuniyuki Iwashima
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 net 0/2] af_unix: Fix GC and improve selftest

Series deals with AF_UNIX garbage collector mishandling some in-flight graph cycles. Embryos carrying OOB packets with SCM_RIGHTS cause issues.

Patch 1/2 fixes the memory leak.
Patch 2/2 tweaks the selftest for a better OOB coverage.

v3:
- Patch 1/2: correct the commit message (Kuniyuki)

v2: https://lore.kernel.org/netdev/[email protected]/
- Patch 1/2: remove WARN_ON_ONCE() (Kuniyuki)
- Combine both patches into a series (Kuniyuki)

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

Kuniyuki Iwashima (1):
selftest: af_unix: Make SCM_RIGHTS into OOB data.

Michal Luczaj (1):
af_unix: Fix garbage collection of embryos carrying OOB with
SCM_RIGHTS

 net/unix/garbage.c                            | 23 +++++++++++--------
 .../selftests/net/af_unix/scm_rights.c        |  4 ++--
 2 files changed, 16 insertions(+), 11 deletions(-)
Signature · 1 line
2.45.0