linux-yocto/arch/s390
Ilya Leoshkevich 9c4ddd6523 s390/bpf: Write back tail call counter for BPF_TRAMP_F_CALL_ORIG
[ Upstream commit bc3905a71f ]

The tailcall_bpf2bpf_hierarchy_fentry test hangs on s390. Its call
graph is as follows:

  entry()
    subprog_tail()
      trampoline()
        fentry()
        the rest of subprog_tail()  # via BPF_TRAMP_F_CALL_ORIG
        return to entry()

The problem is that the rest of subprog_tail() increments the tail call
counter, but the trampoline discards the incremented value. This
results in an astronomically large number of tail calls.

Fix by making the trampoline write the incremented tail call counter
back.

Fixes: 528eb2cb87 ("s390/bpf: Implement arch_prepare_bpf_trampoline()")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20250813121016.163375-4-iii@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-15 12:03:20 +02:00
..
appldata s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
boot s390/mm: Do not map lowcore with identity mapping 2025-08-20 16:37:28 +02:00
configs s390/configs: Set HZ=1000 2025-08-20 16:37:27 +02:00
crypto This update includes the following changes: 2025-07-31 09:45:28 -07:00
hypfs s390/hypfs: Enable limited access during lockdown 2025-08-21 17:46:14 +02:00
include iommu/s390: Make attach succeed when the device was surprise removed 2025-09-05 15:11:09 +02:00
kernel sched/fair: Get rid of sched_domains_curr_level hack for tl->cpumask() 2025-10-15 12:03:17 +02:00
kvm KVM: s390: Fix FOLL_*/FAULT_FLAG_* confusion 2025-09-09 08:17:39 +00:00
lib s390 updates for 6.17 merge window 2025-07-29 20:17:08 -07:00
mm s390/mm: Prevent possible preempt_count overflow 2025-08-26 11:50:05 +02:00
net s390/bpf: Write back tail call counter for BPF_TRAMP_F_CALL_ORIG 2025-10-15 12:03:20 +02:00
pci s390 updates for 6.17 merge window 2025-07-29 20:17:08 -07:00
purgatory lib/crypto: sha256: Make library API use strongly-typed contexts 2025-07-04 10:18:53 -07:00
tools s390: Allow to compile with z17 optimizations 2025-04-09 12:12:41 +02:00
Kbuild
Kconfig more s390 updates for 6.17 merge window 2025-08-08 06:56:55 +03:00
Kconfig.debug s390/mm: Add configurable STRICT_MM_TYPECHECKS 2025-03-11 15:27:34 +01:00
Makefile s390: Allow to compile with z17 optimizations 2025-04-09 12:12:41 +02:00
Makefile.postlink kbuild: Create intermediate vmlinux build with relocations preserved 2025-03-17 00:29:50 +09:00