summaryrefslogtreecommitdiffstats
path: root/tools/laptop
diff options
context:
space:
mode:
authorDave Hansen <dave.hansen@linux.intel.com>2019-01-02 13:56:57 -0800
committerThomas Gleixner <tglx@linutronix.de>2019-01-15 10:33:45 +0100
commite1812933b17be7814f51b6c310c5d1ced7a9a5f5 (patch)
tree328183acbd91c6c49a08fc8a860d90672d304d0c /tools/laptop
parenta31e184e4f69965c99c04cc5eb8a4920e0c63737 (diff)
downloadlinux-e1812933b17be7814f51b6c310c5d1ced7a9a5f5.tar.gz
linux-e1812933b17be7814f51b6c310c5d1ced7a9a5f5.tar.bz2
linux-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 <dave.hansen@linux.intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: bp@alien8.de Cc: hpa@zytor.com Cc: peterz@infradead.org Cc: mpe@ellerman.id.au Cc: will.deacon@arm.com Cc: luto@kernel.org Cc: jroedel@suse.de Cc: stable@vger.kernel.org Cc: Borislav Petkov <bp@alien8.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Will Deacon <will.deacon@arm.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Joerg Roedel <jroedel@suse.de> Link: https://lkml.kernel.org/r/20190102215657.585704B7@viggo.jf.intel.com
Diffstat (limited to 'tools/laptop')
0 files changed, 0 insertions, 0 deletions