]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Migrate bpf_task_work_schedule_* kfuncs to KF_IMPLICIT_ARGS
authorIhor Solodrai <ihor.solodrai@linux.dev>
Tue, 20 Jan 2026 22:26:34 +0000 (14:26 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 21 Jan 2026 00:22:20 +0000 (16:22 -0800)
commit6e663ffdf7600168338fdfa2fd1eed83395d58a3
tree2a29fc675969dcb8031a01913d7c641a17c38b2c
parent8157cc739ad301b7fb6dfc4cfc5497cedd33df4e
bpf: Migrate bpf_task_work_schedule_* kfuncs to KF_IMPLICIT_ARGS

Implement bpf_task_work_schedule_* with an implicit bpf_prog_aux
argument, and remove corresponding _impl funcs from the kernel.

Update special kfunc checks in the verifier accordingly.

Update the selftests to use the new API with implicit argument.

Reviewed-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://lore.kernel.org/r/20260120222638.3976562-10-ihor.solodrai@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/helpers.c
kernel/bpf/verifier.c
tools/testing/selftests/bpf/progs/file_reader.c
tools/testing/selftests/bpf/progs/task_work.c
tools/testing/selftests/bpf/progs/task_work_fail.c
tools/testing/selftests/bpf/progs/task_work_stress.c
tools/testing/selftests/bpf/progs/verifier_async_cb_context.c