android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hou Tao b707fa72cd
UPSTREAM: bpf: Handle return value of BPF_PROG_TYPE_STRUCT_OPS prog
[ Upstream commit 356ed64991c6847a0c4f2e8fa3b1133f7a14f1fc ]

Currently if a function ptr in struct_ops has a return value, its
caller will get a random return value from it, because the return
value of related BPF_PROG_TYPE_STRUCT_OPS prog is just dropped.

So adding a new flag BPF_TRAMP_F_RET_FENTRY_RET to tell bpf trampoline
to save and return the return value of struct_ops prog if ret_size of
the function ptr is greater than 0. Also restricting the flag to be
used alone.

Fixes: 85d33df357b6 ("bpf: Introduce BPF_MAP_TYPE_STRUCT_OPS")
Change-Id: I3a671829c2417973d61f86e4b894f738eb29143b
Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210914023351.3664499-1-houtao1@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-01-14 18:12:57 -08:00
..
alpha BACKPORT: epoll: wire up syscall epoll_pwait2 2025-12-22 07:42:50 +02:00
arc Merge branch 'android11-5.4-lts' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-12-11 01:41:51 -08:00
arm UPSTREAM: bpf: Restrict bpf_probe_read{, str}() only to archs where they work 2026-01-14 18:12:54 -08:00
arm64 UPSTREAM: bpf: Restrict bpf_probe_read{, str}() only to archs where they work 2026-01-14 18:12:54 -08:00
c6x
csky
h8300
hexagon UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
ia64 BACKPORT: epoll: wire up syscall epoll_pwait2 2025-12-22 07:42:50 +02:00
m68k BACKPORT: epoll: wire up syscall epoll_pwait2 2025-12-22 07:42:50 +02:00
microblaze BACKPORT: epoll: wire up syscall epoll_pwait2 2025-12-22 07:42:50 +02:00
mips BACKPORT: sysctl: pass kernel pointers to ->proc_handler 2025-12-23 13:36:15 -08:00
nds32 UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
nios2 Merge tag 'ASB-2025-08-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-09-01 13:17:46 +03:00
openrisc UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
parisc BACKPORT: epoll: wire up syscall epoll_pwait2 2025-12-22 07:42:50 +02:00
powerpc BACKPORT: epoll: wire up syscall epoll_pwait2 2025-12-22 07:42:50 +02:00
riscv Merge tag 'ASB-2025-06-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-06-30 10:49:17 +03:00
s390 BACKPORT: sysctl: pass kernel pointers to ->proc_handler 2025-12-23 13:36:15 -08:00
sh BACKPORT: epoll: wire up syscall epoll_pwait2 2025-12-22 07:42:50 +02:00
sparc BACKPORT: epoll: fix compat syscall wire up of epoll_pwait2 2025-12-22 07:42:51 +02:00
um Merge tag 'ASB-2025-09-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-09-12 18:48:05 +03:00
unicore32 UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
x86 UPSTREAM: bpf: Handle return value of BPF_PROG_TYPE_STRUCT_OPS prog 2026-01-14 18:12:57 -08:00
xtensa BACKPORT: epoll: wire up syscall epoll_pwait2 2025-12-22 07:42:50 +02:00
.gitignore
Kconfig BACKPORT: mm: speedup mremap on 1GB or larger regions 2025-02-20 04:17:48 +02:00