linux/tools/testing/selftests/net/af_unix
Kuniyuki Iwashima b645ccd410 selftest: af_unix: Add test case with mixed lowpoint in scm_rights.c.
The new test case creates two SCCs so that each of them
has multiple scc_index.

Without patch, GC cannot free the sockets and the test fails.

  #  RUN           scm_rights.dgram.mixed_lowpoints ...
  # scm_rights.c:176:mixed_lowpoints:Expected 0 (0) == ret (12)
  # mixed_lowpoints: Test terminated by assertion
  #          FAIL  scm_rights.dgram.mixed_lowpoints
  not ok 5 scm_rights.dgram.mixed_lowpoints
  ...
  # FAILED: 45 / 50 tests passed.
  # Totals: pass:45 fail:5 xfail:0 xpass:0 skip:0 error:0

With the patch, all tests pass.

  # PASSED: 50 / 50 tests passed.
  # Totals: pass:50 fail:0 xfail:0 xpass:0 skip:0 error:0

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260912030852.1467872-3-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-09-15 16:45:05 -07:00
..
.gitignore selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS 2026-08-17 18:14:52 -07:00
config selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS 2026-08-17 18:14:52 -07:00
diag_uid.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
Makefile selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS 2026-08-17 18:14:52 -07:00
msg_oob.c selftest: af_unix: Add zero-buffer test for msg_oob.c 2026-09-07 16:58:42 -07:00
scm_inq.c af_unix: Add test for SCM_INQ on partial read 2026-06-03 18:52:25 -07:00
scm_pidfd.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
scm_rights_denial_lsm.bpf.c selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS 2026-08-17 18:14:52 -07:00
scm_rights_denial_lsm.c selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS 2026-08-17 18:14:52 -07:00
scm_rights.c selftest: af_unix: Add test case with mixed lowpoint in scm_rights.c. 2026-09-15 16:45:05 -07:00
so_peek_off.c selftests: af_unix: validate SO_PEEK_OFF advancement and reset 2026-03-11 18:20:17 -07:00
unix_connect.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
unix_connreset.c selftests: af_unix: remove unused stdlib.h include 2025-11-27 12:42:51 +01:00
unix_listen.c selftests/net/af_unix: test listen() rejects wrong socket states 2026-07-24 15:10:05 -07:00