Skip to content

Commit

Permalink
selftests/x86/fsgsbase: Reap a forgotten child
Browse files Browse the repository at this point in the history
[ 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>
  • Loading branch information
amluto authored and gregkh committed Nov 5, 2020
1 parent 43836fd commit d3e8ba3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/testing/selftests/x86/fsgsbase.c
Expand Up @@ -517,6 +517,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()
Expand Down

0 comments on commit d3e8ba3

Please sign in to comment.