]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: BTI: Reset BTYPE when skipping emulated instructions
authorDave Martin <Dave.Martin@arm.com>
Mon, 16 Mar 2020 16:50:51 +0000 (16:50 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 16 Mar 2020 17:19:49 +0000 (17:19 +0000)
commitc6d7e0f5502b1125aee1552eeb97fc3598bf4f65
tree0200b41d14892d1bc98ae1ca6083361c244e8c3a
parente3979c85be722f890bb5caa6c04877ae460a8eaa
arm64: BTI: Reset BTYPE when skipping emulated instructions

Since normal execution of any non-branch instruction resets the
PSTATE BTYPE field to 0, so do the same thing when emulating a
trapped instruction.

Branches don't trap directly, so we should never need to assign a
non-zero value to BTYPE here.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/traps.c