]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
bpf, arm64: Remove duplicated bpf_flush_icache()
authorHengqi Chen <hengqi.chen@gmail.com>
Thu, 4 Sep 2025 07:57:03 +0000 (07:57 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 4 Sep 2025 16:02:23 +0000 (09:02 -0700)
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>
Acked-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20250904075703.49404-1-hengqi.chen@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/arm64/net/bpf_jit_comp.c

index a98b8132479a757349501ce54ad63a648c314660..f0b1cb2c3bc4857220d3593ed25b4bfeaa0c43e2 100644 (file)
@@ -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;