]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Fix handling maps with no BTF and non-constant offsets for the bpf_wq
authorMykyta Yatsenko <yatsenko@meta.com>
Fri, 10 Oct 2025 16:46:04 +0000 (17:46 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Oct 2025 18:08:10 +0000 (11:08 -0700)
commit5f8d41172931a92339c5cce81a3142065fa56e45
treebb486c0692c96df6a994d51dbc66ea53bd6fda1a
parent7dc484fe481e5cc5b850fc1aa974a46e0f29ed68
bpf: Fix handling maps with no BTF and non-constant offsets for the bpf_wq

Fix handling maps with no BTF and non-constant offsets for the bpf_wq.

This de-duplicates logic with other internal structs (task_work, timer),
keeps error reporting consistent, and makes future changes to the layout
handling centralized.

Fixes: d940c9b94d7e ("bpf: add support for KF_ARG_PTR_TO_WORKQUEUE")
Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20251010164606.147298-1-mykyta.yatsenko5@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c