Skip to content

Commit 6560edc

Browse files
amitdanielkachhapwilldeacon
authored andcommitted
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>
1 parent ba9d1d3 commit 6560edc

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

arch/arm64/kernel/insn.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,10 @@ bool __kprobes aarch64_insn_is_steppable_hint(u32 insn)
6060
case AARCH64_INSN_HINT_XPACLRI:
6161
case AARCH64_INSN_HINT_PACIA_1716:
6262
case AARCH64_INSN_HINT_PACIB_1716:
63-
case AARCH64_INSN_HINT_AUTIA_1716:
64-
case AARCH64_INSN_HINT_AUTIB_1716:
6563
case AARCH64_INSN_HINT_PACIAZ:
6664
case AARCH64_INSN_HINT_PACIASP:
6765
case AARCH64_INSN_HINT_PACIBZ:
6866
case AARCH64_INSN_HINT_PACIBSP:
69-
case AARCH64_INSN_HINT_AUTIAZ:
70-
case AARCH64_INSN_HINT_AUTIASP:
71-
case AARCH64_INSN_HINT_AUTIBZ:
72-
case AARCH64_INSN_HINT_AUTIBSP:
7367
case AARCH64_INSN_HINT_BTI:
7468
case AARCH64_INSN_HINT_BTIC:
7569
case AARCH64_INSN_HINT_BTIJ:

0 commit comments

Comments
 (0)