summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/tm/.gitignore
diff options
context:
space:
mode:
authorGustavo Luiz Duarte <gustavold@linux.ibm.com>2020-02-11 06:38:30 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-03-20 05:10:23 +0300
commit915b7f6f9a5e232c138bb36743a1fdb0fcf2c432 (patch)
tree65b8ecdd53bfe3b45e85be24de2d511a1cd59210 /tools/testing/selftests/powerpc/tm/.gitignore
parent61da50b76b62fd815aa82d853bf82bf4f69568f5 (diff)
downloadlinux-915b7f6f9a5e232c138bb36743a1fdb0fcf2c432.tar.xz
selftests/powerpc: Add tm-signal-pagefault test
This test triggers a TM Bad Thing by raising a signal in transactional state and forcing a pagefault to happen in kernelspace when the kernel signal handling code first touches the user signal stack. This is inspired by the test tm-signal-context-force-tm but uses userfaultfd to make the test deterministic. While this test always triggers the bug in one run, I had to execute tm-signal-context-force-tm several times (the test runs 5000 times each execution) to trigger the same bug. tm-signal-context-force-tm is kept instead of replaced because, while this test is more reliable and triggers the same bug, tm-signal-context-force-tm has a better coverage, in the sense that by running the test several times it might trigger the pagefault and/or be preempted at different places. v3: skip test if userfaultfd is unavailable. Signed-off-by: Gustavo Luiz Duarte <gustavold@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200211033831.11165-2-gustavold@linux.ibm.com
Diffstat (limited to 'tools/testing/selftests/powerpc/tm/.gitignore')
-rw-r--r--tools/testing/selftests/powerpc/tm/.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/tm/.gitignore b/tools/testing/selftests/powerpc/tm/.gitignore
index 98f2708d86cc..e1c72a4a3e91 100644
--- a/tools/testing/selftests/powerpc/tm/.gitignore
+++ b/tools/testing/selftests/powerpc/tm/.gitignore
@@ -13,6 +13,7 @@ tm-signal-context-chk-vmx
tm-signal-context-chk-vsx
tm-signal-context-force-tm
tm-signal-sigreturn-nt
+tm-signal-pagefault
tm-vmx-unavail
tm-unavailable
tm-trap