]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL again
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 16 Jul 2025 19:35:06 +0000 (21:35 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 17 Jul 2025 01:32:31 +0000 (18:32 -0700)
commit6a5abf8cf182f577c7ae6c62f14debc9754ec986
treea79176e7373e20f579b88a6afed5736b8bd1aa15
parentbf4807c89d8f92c47404b1e4eeeefb42259d1b50
s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL again

Commit 7ded842b356d ("s390/bpf: Fix bpf_plt pointer arithmetic") has
accidentally removed the critical piece of commit c730fce7c70c
("s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL"), causing
intermittent kernel panics in e.g. perf's on_switch() prog to reappear.

Restore the fix and add a comment.

Fixes: 7ded842b356d ("s390/bpf: Fix bpf_plt pointer arithmetic")
Cc: stable@vger.kernel.org
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20250716194524.48109-2-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/s390/net/bpf_jit_comp.c