]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kselftest/arm64: Don't leak pipe fds in pac.exec_sign_all()
authorMark Brown <broonie@kernel.org>
Mon, 11 Nov 2024 16:18:55 +0000 (16:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:35 +0000 (19:51 +0100)
commit86680f33461a98f963777c839772dd1a97127842
tree92529873542394bcde7f5ce4a80457b72a80058b
parentd476931a6bbc9fae1628c864f7297fb347de78fc
kselftest/arm64: Don't leak pipe fds in pac.exec_sign_all()

[ Upstream commit 27141b690547da5650a420f26ec369ba142a9ebb ]

The PAC exec_sign_all() test spawns some child processes, creating pipes
to be stdin and stdout for the child. It cleans up most of the file
descriptors that are created as part of this but neglects to clean up the
parent end of the child stdin and stdout. Add the missing close() calls.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20241111-arm64-pac-test-collisions-v1-1-171875f37e44@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/arm64/pauth/pac.c