diff options
author | 2025-07-11 07:38:38 +0000 | |
---|---|---|
committer | 2025-07-16 08:21:47 -0700 | |
commit | e3f16d63d54e6fcf2b18812f2dd0a8d2782b5f3a (patch) | |
tree | 122aaa9a4de87e200373e7cb227cbbbf0c4a5805 /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | ACPI: RISC-V: Remove unnecessary CPPC debug message (diff) | |
download | wireguard-linux-e3f16d63d54e6fcf2b18812f2dd0a8d2782b5f3a.tar.xz wireguard-linux-e3f16d63d54e6fcf2b18812f2dd0a8d2782b5f3a.zip |
riscv: ftrace: Properly acquire text_mutex to fix a race condition
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@gmail.com>
Reported-by: Vivian Wang <wangruikang@iscas.ac.cn>
Reported-by: Yao Zi <ziyao@disroot.org>
Closes: https://lore.kernel.org/linux-riscv/aGODMpq7TGINddzM@pie.lan/
Tested-by: Yao Zi <ziyao@disroot.org>
Tested-by: Han Gao <rabenda.cn@gmail.com>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250711-alex-fixes-v2-1-d85a5438da6c@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions