This is a note to let you know that I've just added the patch titled parisc: Handle kprobes breakpoints only in kernel context to the 6.3-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: parisc-handle-kprobes-breakpoints-only-in-kernel-context.patch and it can be found in the queue-6.3 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From df419492e428b6a2bce98d0f613c58a13da6666c Mon Sep 17 00:00:00 2001 From: Helge Deller <deller@xxxxxx> Date: Wed, 24 May 2023 14:31:14 +0200 Subject: parisc: Handle kprobes breakpoints only in kernel context From: Helge Deller <deller@xxxxxx> commit df419492e428b6a2bce98d0f613c58a13da6666c upstream. The kernel kprobes break instructions should only be handled when running in kernel context. Cc: <stable@xxxxxxxxxxxxxxx> # v5.18+ Signed-off-by: Helge Deller <deller@xxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- arch/parisc/kernel/traps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/parisc/kernel/traps.c +++ b/arch/parisc/kernel/traps.c @@ -291,11 +291,11 @@ static void handle_break(struct pt_regs } #ifdef CONFIG_KPROBES - if (unlikely(iir == PARISC_KPROBES_BREAK_INSN)) { + if (unlikely(iir == PARISC_KPROBES_BREAK_INSN && !user_mode(regs))) { parisc_kprobe_break_handler(regs); return; } - if (unlikely(iir == PARISC_KPROBES_BREAK_INSN2)) { + if (unlikely(iir == PARISC_KPROBES_BREAK_INSN2 && !user_mode(regs))) { parisc_kprobe_ss_handler(regs); return; } Patches currently in stable-queue which might be from deller@xxxxxx are queue-6.3/parisc-allow-to-reboot-machine-after-system-halt.patch queue-6.3/parisc-handle-kgdb-breakpoints-only-in-kernel-context.patch queue-6.3/parisc-handle-kprobes-breakpoints-only-in-kernel-context.patch queue-6.3/parisc-use-num_present_cpus-in-alternative-patching-code.patch queue-6.3/parisc-fix-flush_dcache_page-for-usage-from-irq-context.patch queue-6.3/parisc-enable-lockdep-support.patch