]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kprobe: disable probe of fault prone ptrauth instruction
authorAmit Daniel Kachhap <amit.kachhap@arm.com>
Mon, 14 Sep 2020 08:36:55 +0000 (14:06 +0530)
committerWill Deacon <will@kernel.org>
Mon, 14 Sep 2020 11:07:02 +0000 (12:07 +0100)
commit0ff2851b9b2a94efcadbed88fcb696c380f3dd89
tree68881a46a70001a88da41a7c8f40e6ddb84bce6c
parent9cc956cf8b325fea9170982c02b03deab16967d9
arm64: kprobe: disable probe of fault prone ptrauth instruction

With the addition of ARMv8.3-FPAC feature, the probe of authenticate
ptrauth instructions (AUT*) may cause ptrauth fault exception in case of
authenticate failure so they cannot be safely single stepped.

Hence the probe of authenticate instructions is disallowed but the
corresponding pac ptrauth instruction (PAC*) is not affected and they can
still be probed. Also AUTH* instructions do not make sense at function
entry points so most realistic probes would be unaffected by this change.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@arm.com>
Reviewed-by: Dave Martin <dave.martin@arm.com>
Link: https://lore.kernel.org/r/20200914083656.21428-6-amit.kachhap@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/insn.c