Thread (2 messages) flat view 2 messages, 2 authors, 15d ago

Re: [PATCH net] selftests: af_unix: verify SCM_PIDFD pidfd in cmsg_check_dead()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-08-17 15:41:24
Also in: linux-kselftest

On Mon, 17 Aug 2026 14:11:21 +0800 Lei Zhu wrote:
The cmsg_check_dead() function receives an expected_pid parameter but never
actually verifies that the pidfd received via SCM_PIDFD corresponds to that
PID. It only checks the child's exit code via PIDFD_GET_INFO.
this breaks the test:

  (scm_pidfd.c:282: errno: None) wrong SCM_PIDFD -1 != <PID>

If you want to improve the test please repost this patch in 2 weeks
after the merge window. This patch should not carry the Fixes tag.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help