]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: BPF: Don't align trampoline size
authorHengqi Chen <hengqi.chen@gmail.com>
Thu, 2 Oct 2025 14:39:52 +0000 (22:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 10:04:19 +0000 (12:04 +0200)
commit40cfed5204200760113c5cc33bee7d8fe81759d2
treec961160d25ca48018a053eb21cc1c2753480e1f4
parentd1158559315143e11bfaabcd4b2bea98c7ed1be9
LoongArch: BPF: Don't align trampoline size

commit a04731cbee6e981afa4263289a0c0059c8b2e7b9 upstream.

Currently, arch_alloc_bpf_trampoline() use bpf_prog_pack_alloc() which
will pack multiple trampolines into a huge page. So, no need to assume
the trampoline size is page aligned.

Cc: stable@vger.kernel.org
Tested-by: Vincent Li <vincent.mc.li@gmail.com>
Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/loongarch/net/bpf_jit.c