Re: [PATCH v3] riscv: Only consider swbp/ss handlers for correct privileged mode

2023-09-21 Thread patchwork-bot+linux-riscv
Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Tue, 12 Sep 2023 08:56:19 +0200 you wrote: > From: Björn Töpel > > RISC-V software breakpoint trap handlers are used for {k,u}probes. > > When trapping from kernelmode, only the kernelmode handlers should be >

[PATCH v3] riscv: Only consider swbp/ss handlers for correct privileged mode

2023-09-12 Thread Björn Töpel
From: Björn Töpel RISC-V software breakpoint trap handlers are used for {k,u}probes. When trapping from kernelmode, only the kernelmode handlers should be considered. Vice versa, only usermode handlers for usermode traps. This is not the case on RISC-V, which can trigger a bug if a userspace