aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorJames Morse <[email protected]>2019-01-24 16:32:55 +0000
committerWill Deacon <[email protected]>2019-02-01 14:09:50 +0000
commitf2b3d8566d81deaca31f4e3163def0bea7746e11 (patch)
tree4fd6ee9ba48833900b33b1214a4aea8b584caf81 /net/lapb/lapb_out.c
parent8ea235932314311f15ea6cf65c1393ed7e31af70 (diff)
arm64: kprobe: Always blacklist the KVM world-switch code
On systems with VHE the kernel and KVM's world-switch code run at the same exception level. Code that is only used on a VHE system does not need to be annotated as __hyp_text as it can reside anywhere in the kernel text. __hyp_text was also used to prevent kprobes from patching breakpoint instructions into this region, as this code runs at a different exception level. While this is no longer true with VHE, KVM still switches VBAR_EL1, meaning a kprobe's breakpoint executed in the world-switch code will cause a hyp-panic. Move the __hyp_text check in the kprobes blacklist so it applies on VHE systems too, to cover the common code and guest enter/exit assembly. Fixes: 888b3c8720e0 ("arm64: Treat all entry code as non-kprobe-able") Reviewed-by: Christoffer Dall <[email protected]> Signed-off-by: James Morse <[email protected]> Acked-by: Masami Hiramatsu <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions