diff options
author | Björn Töpel <bjorn@rivosinc.com> | 2025-04-19 13:14:00 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2025-04-24 13:20:02 -0700 |
commit | 7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48 (patch) | |
tree | 636578fba96a4fd297bc1964e2e7a1812576ff0a /lib/zstd/compress/zstd_lazy.c | |
parent | 121f34341d396b666d8a90b24768b40e08ca0d61 (diff) | |
download | linux-7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48.tar.gz linux-7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48.tar.bz2 linux-7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48.zip |
riscv: uprobes: Add missing fence.i after building the XOL buffer
The XOL (execute out-of-line) buffer is used to single-step the
replaced instruction(s) for uprobes. The RISC-V port was missing a
proper fence.i (i$ flushing) after constructing the XOL buffer, which
can result in incorrect execution of stale/broken instructions.
This was found running the BPF selftests "test_progs:
uprobe_autoattach, attach_probe" on the Spacemit K1/X60, where the
uprobes tests randomly blew up.
Reviewed-by: Guo Ren <guoren@kernel.org>
Fixes: 74784081aac8 ("riscv: Add uprobes supported")
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20250419111402.1660267-2-bjorn@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'lib/zstd/compress/zstd_lazy.c')
0 files changed, 0 insertions, 0 deletions