projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f1dd4d
)
selftests/x86/fsgsbase: Reap a forgotten child
author
Andy Lutomirski
<luto@kernel.org>
Wed, 26 Aug 2020 17:00:45 +0000
(10:00 -0700)
committer
Ingo Molnar
<mingo@kernel.org>
Wed, 26 Aug 2020 18:54:17 +0000
(20:54 +0200)
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
tools/testing/selftests/x86/fsgsbase.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/x86/fsgsbase.c
b/tools/testing/selftests/x86/fsgsbase.c
index 9983195535237214f5085cc212f38592f109cc6a..0056e2597f53a08937926bf75b48ba56b4c645d2 100644
(file)
--- 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()