s390: Introduce bpf_get_lowcore() kfunc

Implementing BPF version of preempt_count() requires accessing lowcore
from BPF. Since lowcore can be relocated, open-coding
(struct lowcore *)0 does not work, so add a kfunc.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20260217160813.100855-2-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
Ilya Leoshkevich 2026-02-17 17:05:08 +01:00 • committed by Alexei Starovoitov
commit 6fe54677bc
4 changed files with 21 additions and 0 deletions