summaryrefslogtreecommitdiffstats
path: root/kernel/static_call.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2024-02-12 15:32:19 -0800
committerAlexei Starovoitov <ast@kernel.org>2024-02-13 18:46:47 -0800
commit824c58fb1090ae5e502284400682e30841280a87 (patch)
tree268b666e38890c286cc91c2cc2780a1304706902 /kernel/static_call.c
parentfb5b86cfd4ef21ea18966718f6bf6c8f1b9df12e (diff)
downloadlinux-stable-824c58fb1090ae5e502284400682e30841280a87.tar.gz
linux-stable-824c58fb1090ae5e502284400682e30841280a87.tar.bz2
linux-stable-824c58fb1090ae5e502284400682e30841280a87.zip
bpf: handle bpf_user_pt_regs_t typedef explicitly for PTR_TO_CTX global arg
Expected canonical argument type for global function arguments representing PTR_TO_CTX is `bpf_user_pt_regs_t *ctx`. This currently works on s390x by accident because kernel resolves such typedef to underlying struct (which is anonymous on s390x), and erroneously accepting it as expected context type. We are fixing this problem next, which would break s390x arch, so we need to handle `bpf_user_pt_regs_t` case explicitly for KPROBE programs. Fixes: 91cc1a99740e ("bpf: Annotate context types") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/r/20240212233221.2575350-3-andrii@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/static_call.c')
0 files changed, 0 insertions, 0 deletions