linux_dsm_epyc7002/tools/testing/selftests/rseq
Mathieu Desnoyers 24fa5d1efe rseq/selftests: x86: use ud1 instruction as RSEQ_SIG opcode
Use ud1 as the guard instruction for the restartable sequence abort
handler. Its benefit compared to nopl is to trap execution if the
program ends up trying to execute it by mistake, which makes debugging
easier.

The 4-byte signature per se is unchanged (it is the instruction
operand). Only the opcode is changed from nopl to ud1.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
CC: Peter Zijlstra <peterz@infradead.org>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Joel Fernandes <joelaf@google.com>
CC: Catalin Marinas <catalin.marinas@arm.com>
CC: Dave Watson <davejwatson@fb.com>
CC: Will Deacon <will.deacon@arm.com>
CC: Shuah Khan <shuah@kernel.org>
CC: Andi Kleen <andi@firstfloor.org>
CC: linux-kselftest@vger.kernel.org
CC: "H . Peter Anvin" <hpa@zytor.com>
CC: Chris Lameter <cl@linux.com>
CC: Russell King <linux@arm.linux.org.uk>
CC: Michael Kerrisk <mtk.manpages@gmail.com>
CC: "Paul E . McKenney" <paulmck@linux.vnet.ibm.com>
CC: Paul Turner <pjt@google.com>
CC: Boqun Feng <boqun.feng@gmail.com>
CC: Josh Triplett <josh@joshtriplett.org>
CC: Steven Rostedt <rostedt@goodmis.org>
CC: Ben Maurer <bmaurer@fb.com>
CC: linux-api@vger.kernel.org
CC: Andy Lutomirski <luto@amacapital.net>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2019-05-07 15:32:05 -06:00
..
.gitignore rseq/selftests: Provide Makefile, scripts, gitignore 2018-06-06 11:58:35 +02:00
basic_percpu_ops_test.c rseq/selftests: Provide basic percpu ops test 2018-06-06 11:58:35 +02:00
basic_test.c rseq/selftests: Provide basic test 2018-06-06 11:58:35 +02:00
Makefile rseq/selftests: Provide Makefile, scripts, gitignore 2018-06-06 11:58:35 +02:00
param_test.c rseq/selftests: fix parametrized test with -fpie 2018-09-27 12:59:19 -06:00
rseq-arm64.h rseq/selftests: Introduce __rseq_cs_ptr_array, rename __rseq_table to __rseq_cs 2019-05-07 15:31:36 -06:00
rseq-arm.h rseq/selftests: Introduce __rseq_cs_ptr_array, rename __rseq_table to __rseq_cs 2019-05-07 15:31:36 -06:00
rseq-mips.h rseq/selftests: Introduce __rseq_cs_ptr_array, rename __rseq_table to __rseq_cs 2019-05-07 15:31:36 -06:00
rseq-ppc.h rseq/selftests: Introduce __rseq_cs_ptr_array, rename __rseq_table to __rseq_cs 2019-05-07 15:31:36 -06:00
rseq-s390.h rseq/selftests: s390: use jg instruction for jumps outside of the asm 2019-05-07 15:31:55 -06:00
rseq-skip.h
rseq-x86.h rseq/selftests: x86: use ud1 instruction as RSEQ_SIG opcode 2019-05-07 15:32:05 -06:00
rseq.c rseq/selftests: Use __rseq_handled symbol to coexist with glibc 2019-05-07 15:31:46 -06:00
rseq.h rseq/selftests: Use __rseq_handled symbol to coexist with glibc 2019-05-07 15:31:46 -06:00
run_param_test.sh rseq/selftests: Adapt number of threads to the number of detected cpus 2019-04-08 16:44:21 -06:00