]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:27 +0000 (14:02 +0100)
commit19e359b18ae346d444f882eeb30733fed8f04484
tree029790f16a5ea540903836df81a851e40dd6bef2
parentd8edc163ccf59547ccdcbb09ede8f4a1afbac582
bpf: Fix handling maps with no BTF and non-constant offsets for the bpf_wq

[ Upstream commit 5f8d41172931a92339c5cce81a3142065fa56e45 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/bpf/verifier.c