mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
selftests/x86/fsgsbase: Reap a forgotten child
[ Upstream commit ab2dd17333 ]
The ptrace() test forgot to reap its child. Reap it.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/e7700a503f30e79ab35a63103938a19893dbeff2.1598461151.git.luto@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
581940d9b9
commit
ac437801e3
@@ -499,6 +499,9 @@ static void test_ptrace_write_gsbase(void)
|
||||
|
||||
END:
|
||||
ptrace(PTRACE_CONT, child, NULL, NULL);
|
||||
wait(&status);
|
||||
if (!WIFEXITED(status))
|
||||
printf("[WARN]\tChild didn't exit cleanly.\n");
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
Reference in New Issue
Block a user