mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
LoongArch: BPF: Zero-extend bpf_tail_call() index
commiteb71f5c433upstream. The bpf_tail_call() index should be treated as a u32 value. Let's zero-extend it to avoid calling wrong BPF progs. See similar fixes for x86 [1]) and arm64 ([2]) for more details. [1]:90caccdd8c[2]:16338a9b3aCc: stable@vger.kernel.org Fixes:5dc615520c("LoongArch: Add BPF JIT support") 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>
This commit is contained in:
parent
bb92a3af3c
commit
fcaafcc27b
1 changed files with 2 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue