Patch "ARM: 8834/1: Fix: kprobes: optimized kprobes illegal instruction" has been added to the 4.19-stable tree
[email protected]
AppliedThis is a note to let you know that I've just added the patch titled
ARM: 8834/1: Fix: kprobes: optimized kprobes illegal instruction
to the 4.19-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
arm-8834-1-fix-kprobes-optimized-kprobes-illegal-instruction.patch
and it can be found in the queue-4.19 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From 0ac569bf6a7983c0c5747d6df8db9dc05bc92b6c Mon Sep 17 00:00:00 2001
From: Mathieu Desnoyers <[email protected]>
Date: Tue, 5 Feb 2019 16:37:40 +0100
Subject: ARM: 8834/1: Fix: kprobes: optimized kprobes illegal instruction
From: Mathieu Desnoyers <[email protected]>
commit 0ac569bf6a7983c0c5747d6df8db9dc05bc92b6c upstream.
commit e46daee53bb5 ("ARM: 8806/1: kprobes: Fix false positive with FORTIFY_SOURCE") introduced a regression in optimized kprobes. It triggers "invalid instruction" oopses when using kprobes instrumentation through lttng and perf. This commit was introduced in kernel v4.20, and has been backported to stable kernels 4.19 and 4.14.
This crash was also reported by Hongzhi Song on the redhat bugzilla where the patch was originally introduced.
--- arch/arm/probes/kprobes/opt-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/probes/kprobes/opt-arm.c +1 -1
@@ -247,7 +247,7 @@ int arch_prepare_optimized_kprobe(struct }/* Copy arch-dep-instance from template. */ -memcpy (code, (unsigned char *)optprobe_template_entry, +memcpy (code, (unsigned long *)&optprobe_template_entry,TMPL_END_IDX *sizeof (kprobe_opcode_t));/* Adjust buffer according to instruction. */
Patches currently in stable-queue which might be from [email protected] are
queue-4.19/arm-8834-1-fix-kprobes-optimized-kprobes-illegal-instruction.patch
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel