Skip to content

Commit d3e8ba3

Browse files
amlutogregkh
authored andcommitted
selftests/x86/fsgsbase: Reap a forgotten child
[ Upstream commit ab2dd17 ] 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>
1 parent 43836fd commit d3e8ba3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/testing/selftests/x86/fsgsbase.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,9 @@ static void test_ptrace_write_gsbase(void)
517517

518518
END:
519519
ptrace(PTRACE_CONT, child, NULL, NULL);
520+
wait(&status);
521+
if (!WIFEXITED(status))
522+
printf("[WARN]\tChild didn't exit cleanly.\n");
520523
}
521524

522525
int main()

0 commit comments

Comments
 (0)