[PATCH v2] riscv: ftrace: Properly acquire text_mutex to fix a race condition
patchwork-bot+linux-riscv at kernel.org
patchwork-bot+linux-riscv at kernel.org
Wed Jul 16 13:00:08 PDT 2025
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer at dabbelt.com>:
On Fri, 11 Jul 2025 07:38:38 +0000 you wrote:
> As reported by lockdep, some patching was done without acquiring
> text_mutex, so there could be a race when mapping the page to patch
> since we use the same fixmap entry.
>
> Reported-by: Han Gao <rabenda.cn at gmail.com>
> Reported-by: Vivian Wang <wangruikang at iscas.ac.cn>
> Reported-by: Yao Zi <ziyao at disroot.org>
> Closes: https://lore.kernel.org/linux-riscv/aGODMpq7TGINddzM@pie.lan/
> Tested-by: Yao Zi <ziyao at disroot.org>
> Tested-by: Han Gao <rabenda.cn at gmail.com>
> Reviewed-by: Masami Hiramatsu (Google) <mhiramat at kernel.org>
> Signed-off-by: Alexandre Ghiti <alexghiti at rivosinc.com>
>
> [...]
Here is the summary with links:
- [v2] riscv: ftrace: Properly acquire text_mutex to fix a race condition
https://git.kernel.org/riscv/c/e3f16d63d54e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-riscv
mailing list