Re: [PATCH v2] riscv: ftrace: Properly acquire text_mutex to fix a race condition

From: patchwork-bot+linux-riscv
Date: Wed Jul 16 2025 - 15:59:56 EST


Hello:

This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@xxxxxxxxxxx>:

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@xxxxxxxxx>
> Reported-by: Vivian Wang <wangruikang@xxxxxxxxxxx>
> Reported-by: Yao Zi <ziyao@xxxxxxxxxxx>
> Closes: https://lore.kernel.org/linux-riscv/aGODMpq7TGINddzM@xxxxxxx/
> Tested-by: Yao Zi <ziyao@xxxxxxxxxxx>
> Tested-by: Han Gao <rabenda.cn@xxxxxxxxx>
> Reviewed-by: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>
> Signed-off-by: Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>
>
> [...]

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