rseq/selftests: x86: use ud1 instruction as RSEQ_SIG opcode
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Apr 2019 15:27:57 +0000 (11:27 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 6 Jun 2019 15:09:15 +0000 (11:09 -0400)
commita5fe9e95750f280a7bc5d489fadc454b524a1a10
tree1be6ff54006af0b9d9c040f85340946df5bc8d56
parent78fd8175a07ba77bc5e66600c4570cfd231df035
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.

commit 24fa5d1efe98 "rseq/selftests: x86: use ud1 instruction as RSEQ_SIG
opcode" in the Linux kernel.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/rseq/rseq-x86.h
This page took 0.02245 seconds and 4 git commands to generate.