Skip to contentSkip to conversation

riscv, bpf: Remove duplicated bpf_flush_icache()

PATCH Applied Hengqi Chen 4 participants 4 messages Sep 4, 2025 – Oct 9, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv, bpf: Remove duplicated bpf_flush_icache()

The bpf_flush_icache() is done by bpf_arch_text_copy() already. Remove the duplicated one in arch_prepare_bpf_trampoline().

---
 arch/riscv/net/bpf_jit_comp64.c | 1 -
 1 file changed, 1 deletion(-)
arch/riscv/net/bpf_jit_comp64.c +0 -1
index c7ae4d0a8361..3fcc011c6be4 100644
@@ -1305,7 +1305,6 @@ int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *ro_image,
 		goto out;
 	}
 
-	bpf_flush_icache(ro_image, ro_image_end);
 out:
 	kvfree(image);
 	return ret < 0 ? ret : size;
Signature · 1 line
2.45.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Hengqi Chen

The bpf_flush_icache() is done by bpf_arch_text_copy() already. Remove the duplicated one in arch_prepare_bpf_trampoline().

---
  arch/riscv/net/bpf_jit_comp64.c | 1 -
  1 file changed, 1 deletion(-)
arch/riscv/net/bpf_jit_comp64.c +0 -0
index c7ae4d0a8361..3fcc011c6be4 100644

arch/riscv/net/bpf_jit_comp64.c int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *ro_image, · line 1310

Quoted 7 lines
arch/riscv/net/bpf_jit_comp64.c +0 -1
@@ -1305,7 +1305,6 @@ int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *ro_image,
  		goto out;
  	}
 
-	bpf_flush_icache(ro_image, ro_image_end);
  out:
  	kvfree(image);
  	return ret < 0 ? ret : size;
#2 lore raw
In reply to Hengqi Chen
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:

Quoted 7 lines · On Thu, 4 Sep 2025 10:51:18 +0000 you wrote:

The bpf_flush_icache() is done by bpf_arch_text_copy() already. Remove the duplicated one in arch_prepare_bpf_trampoline().

---
 arch/riscv/net/bpf_jit_comp64.c | 1 -
 1 file changed, 1 deletion(-)

Here is the summary with links:
- [bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()

    https://git.kernel.org/bpf/bpf-next/c/6798668ab195

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
#3 lore raw
In reply to Hengqi Chen
This patch was applied to riscv/linux.git (for-next) by Daniel Borkmann <[email protected]>:

Hello:

This patch was applied to riscv/linux.git (for-next) by Daniel Borkmann <[email protected]>:

Quoted 7 lines · On Thu, 4 Sep 2025 10:51:18 +0000 you wrote:

The bpf_flush_icache() is done by bpf_arch_text_copy() already. Remove the duplicated one in arch_prepare_bpf_trampoline().

---
 arch/riscv/net/bpf_jit_comp64.c | 1 -
 1 file changed, 1 deletion(-)

Here is the summary with links:
- [bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()

    https://git.kernel.org/riscv/c/6798668ab195

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html