aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorDave Hansen <[email protected]>2019-01-02 21:56:57 +0000
committerThomas Gleixner <[email protected]>2019-01-15 09:33:45 +0000
commite1812933b17be7814f51b6c310c5d1ced7a9a5f5 (patch)
tree328183acbd91c6c49a08fc8a860d90672d304d0c /tools/perf/util/c++/clang.cpp
parentx86/pkeys: Properly copy pkey state at fork() (diff)
downloadkernel-e1812933b17be7814f51b6c310c5d1ced7a9a5f5.tar.gz
kernel-e1812933b17be7814f51b6c310c5d1ced7a9a5f5.zip
x86/selftests/pkeys: Fork() to check for state being preserved
There was a bug where the per-mm pkey state was not being preserved across fork() in the child. fork() is performed in the pkey selftests, but all of the pkey activity is performed in the parent. The child does not perform any actions sensitive to pkey state. To make the test more sensitive to these kinds of bugs, add a fork() where the parent exits, and execution continues in the child. To achieve this let the key exhaustion test not terminate at the first allocation failure and fork after 2*NR_PKEYS loops and continue in the child. Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Borislav Petkov <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Will Deacon <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Joerg Roedel <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions