linux/arch/powerpc
Hari Bathini d2beb81904 powerpc64/bpf: fix the address returned by bpf_get_func_ip
commit 157820264a upstream.

bpf_get_func_ip() helper function returns the address of the traced
function. It relies on the IP address stored at ctx - 16 by the bpf
trampoline. On 64-bit powerpc, this address is recovered from LR
accounting for OOL trampoline. But the address stored here was off
by 4-bytes. Ensure the address is the actual start of the traced
function.

Reported-by: Abhishek Dubey <adubey@linux.ibm.com>
Fixes: d243b62b7b ("powerpc64/bpf: Add support for bpf trampolines")
Cc: stable@vger.kernel.org
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260303181031.390073-3-hbathini@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-03-19 16:08:44 +01:00
..
boot powerpc/addnote: Fix overflow on 32-bit builds 2026-01-02 12:57:00 +01:00
configs Crypto library updates for 6.18 2025-09-29 15:48:56 -07:00
crypto lib/crypto: curve25519: Consolidate into single module 2025-09-06 16:32:43 -07:00
include powerpc/uaccess: Fix inline assembly for clang build on PPC32 2026-03-19 16:08:11 +01:00
kernel kbuild: Split .modinfo out from ELF_DETAILS 2026-03-12 07:09:44 -04:00
kexec powerpc/crash: adjust the elfcorehdr size 2026-03-19 16:08:11 +01:00
kvm powerpc, ocxl: Fix extraction of struct xive_irq_data 2025-10-13 09:40:55 +05:30
lib powerpc/qspinlock: Add spinlock contention tracepoint 2025-09-01 13:38:12 +05:30
math-emu powerpc/math-emu: Inhibit W=1 warnings 2022-09-08 11:11:18 +10:00
mm powerpc/64s/slb: Fix SLB multihit issue during SLB preload 2026-01-08 10:16:57 +01:00
net powerpc64/bpf: fix the address returned by bpf_get_func_ip 2026-03-19 16:08:44 +01:00
perf powerpc, perf: Check that current->mm is alive before getting user callchain 2026-03-19 16:08:31 +01:00
platforms powerpc/pseries: Correct MSI allocation tracking 2026-03-19 16:08:44 +01:00
purgatory Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
sysdev powerpc, ocxl: Fix extraction of struct xive_irq_data 2025-10-13 09:40:55 +05:30
tools powerpc/tools: drop -o pipefail in gcc check scripts 2026-01-08 10:16:44 +01:00
xmon powerpc/xmon: replace sizeof calculations with ARRAY_SIZE macro 2025-09-01 13:40:46 +05:30
Kbuild powerpc64/ftrace: Move ftrace sequence out of line 2024-10-31 11:00:54 +11:00
Kconfig mm: fix MAX_FOLIO_ORDER on powerpc configs with hugetlb 2025-11-15 10:52:00 -08:00
Kconfig.debug powerpc: Remove UDBG_RTAS_CONSOLE 2025-02-26 21:15:09 +05:30
Makefile kbuild: Add missing $(objtree) prefix to powerpc crtsavres.o artifact 2025-09-01 13:41:57 +05:30
Makefile.postlink powerpc/ftrace: Add a postlink script to validate function tracer 2024-10-31 11:00:54 +11:00