]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
riscv, bpf: Remove duplicated bpf_flush_icache()
authorHengqi Chen <hengqi.chen@gmail.com>
Thu, 4 Sep 2025 10:51:18 +0000 (10:51 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 15 Sep 2025 11:16:55 +0000 (13:16 +0200)
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>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/bpf/20250904105119.21861-1-hengqi.chen@gmail.com
arch/riscv/net/bpf_jit_comp64.c

index 2f7188e0340a5cce3ab15ce6cc1217244bc1271e..886b647dc206fbe3e27d3040d987ee2cf8b4de7c 100644 (file)
@@ -1269,7 +1269,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;