aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/x86
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2020-08-26 10:00:45 -0700
committerIngo Molnar <mingo@kernel.org>2020-08-26 20:54:17 +0200
commitab2dd173330a3f07142e68cd65682205036cd00f (patch)
tree00cfd04e201307a2d8b0b98004f813fd0302beb5 /tools/testing/selftests/x86
parentx86/fsgsbase: Replace static_cpu_has() with boot_cpu_has() (diff)
downloadwireguard-linux-ab2dd173330a3f07142e68cd65682205036cd00f.tar.xz
wireguard-linux-ab2dd173330a3f07142e68cd65682205036cd00f.zip
selftests/x86/fsgsbase: Reap a forgotten child
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
Diffstat (limited to 'tools/testing/selftests/x86')
-rw-r--r--tools/testing/selftests/x86/fsgsbase.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/x86/fsgsbase.c b/tools/testing/selftests/x86/fsgsbase.c
index 998319553523..0056e2597f53 100644
--- a/tools/testing/selftests/x86/fsgsbase.c
+++ b/tools/testing/selftests/x86/fsgsbase.c
@@ -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()