Skip to contentSkip to conversation

bpf, arm64: Remove duplicated bpf_flush_icache()

PATCH Applied Hengqi Chen 3 participants 3 messages Sep 4, 2025

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

PATCH 1/1 bpf, arm64: 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/arm64/net/bpf_jit_comp.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/net/bpf_jit_comp.c +0 -1
index a98b8132479a..f0b1cb2c3bc4 100644
@@ -2773,7 +2773,6 @@ int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *ro_image,
 		goto out;
 	}
 
-	bpf_flush_icache(ro_image, ro_image + size);
 out:
 	kvfree(image);
 	return ret;
Signature · 1 line
2.43.5
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 22 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/arm64/net/bpf_jit_comp.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/net/bpf_jit_comp.c +0 -1
index a98b8132479a..f0b1cb2c3bc4 100644
@@ -2773,7 +2773,6 @@ int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *ro_image,
 		goto out;
 	}
 
-	bpf_flush_icache(ro_image, ro_image + size);
 out:
 	kvfree(image);
 	return ret;
Signature · 1 line
2.43.5

Thanks,
Puranjay

#2 lore raw
In reply to Hengqi Chen
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Hello:

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

Quoted 7 lines · On Thu, 4 Sep 2025 07:57:03 +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/arm64/net/bpf_jit_comp.c | 1 -
 1 file changed, 1 deletion(-)

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

    https://git.kernel.org/bpf/bpf-next/c/929adf8838f7

You are awesome, thank you!

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