summaryrefslogtreecommitdiff
path: root/lib/test_lockup.c
diff options
context:
space:
mode:
authorFredrik Strupe <fredrik@strupe.net>2021-04-05 23:52:05 +0300
committerRussell King <rmk+kernel@armlinux.org.uk>2021-04-18 21:14:45 +0300
commitd2f7eca60b29006285d57c7035539e33300e89e5 (patch)
tree0f2f62725529cb8e7131f464df4f94e20366eeea /lib/test_lockup.c
parent30e3b4f256b4e366a61658c294f6a21b8626dda7 (diff)
downloadlinux-d2f7eca60b29006285d57c7035539e33300e89e5.tar.xz
ARM: 9071/1: uprobes: Don't hook on thumb instructions
Since uprobes is not supported for thumb, check that the thumb bit is not set when matching the uprobes instruction hooks. The Arm UDF instructions used for uprobes triggering (UPROBE_SWBP_ARM_INSN and UPROBE_SS_ARM_INSN) coincidentally share the same encoding as a pair of unallocated 32-bit thumb instructions (not UDF) when the condition code is 0b1111 (0xf). This in effect makes it possible to trigger the uprobes functionality from thumb, and at that using two unallocated instructions which are not permanently undefined. Signed-off-by: Fredrik Strupe <fredrik@strupe.net> Cc: stable@vger.kernel.org Fixes: c7edc9e326d5 ("ARM: add uprobes support") Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'lib/test_lockup.c')
0 files changed, 0 insertions, 0 deletions