All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next] bpf, arm64: Remove duplicated bpf_flush_icache()
@ 2025-09-04  7:57 Hengqi Chen
  2025-09-04 14:03 ` Puranjay Mohan
  2025-09-04 16:10 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Hengqi Chen @ 2025-09-04  7:57 UTC (permalink / raw)
  To: ast, daniel, andrii, martin.lau, puranjay, xukuohai; +Cc: bpf, Hengqi Chen

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

Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
---
 arch/arm64/net/bpf_jit_comp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c
index a98b8132479a..f0b1cb2c3bc4 100644
--- a/arch/arm64/net/bpf_jit_comp.c
+++ b/arch/arm64/net/bpf_jit_comp.c
@@ -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;
-- 
2.43.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH bpf-next] bpf, arm64: Remove duplicated bpf_flush_icache()
  2025-09-04  7:57 [PATCH bpf-next] bpf, arm64: Remove duplicated bpf_flush_icache() Hengqi Chen
@ 2025-09-04 14:03 ` Puranjay Mohan
  2025-09-04 16:10 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Puranjay Mohan @ 2025-09-04 14:03 UTC (permalink / raw)
  To: Hengqi Chen, ast, daniel, andrii, martin.lau, xukuohai; +Cc: bpf, Hengqi Chen

Hengqi Chen <hengqi.chen@gmail.com> writes:

> The bpf_flush_icache() is done by bpf_arch_text_copy() already.
> Remove the duplicated one in arch_prepare_bpf_trampoline().
>
> Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
> ---
>  arch/arm64/net/bpf_jit_comp.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c
> index a98b8132479a..f0b1cb2c3bc4 100644
> --- a/arch/arm64/net/bpf_jit_comp.c
> +++ b/arch/arm64/net/bpf_jit_comp.c
> @@ -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;
> -- 
> 2.43.5

Acked-by: Puranjay Mohan <puranjay@kernel.org>

Thanks,
Puranjay

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH bpf-next] bpf, arm64: Remove duplicated bpf_flush_icache()
  2025-09-04  7:57 [PATCH bpf-next] bpf, arm64: Remove duplicated bpf_flush_icache() Hengqi Chen
  2025-09-04 14:03 ` Puranjay Mohan
@ 2025-09-04 16:10 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-09-04 16:10 UTC (permalink / raw)
  To: Hengqi Chen; +Cc: ast, daniel, andrii, martin.lau, puranjay, xukuohai, bpf

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

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().
> 
> Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-04 16:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-04  7:57 [PATCH bpf-next] bpf, arm64: Remove duplicated bpf_flush_icache() Hengqi Chen
2025-09-04 14:03 ` Puranjay Mohan
2025-09-04 16:10 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.