]> git.hungrycats.org Git - linux/commit
bpf: Move sleepable verification code to btf_id_allow_sleepable
authorJiri Olsa <jolsa@kernel.org>
Sat, 6 Jun 2026 12:39:36 +0000 (14:39 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 7 Jun 2026 17:03:01 +0000 (10:03 -0700)
commitbd06659d3b8abe7a79ae473209ee89bf3a23af36
tree4ae2e1d611172591bb2f835e2b420bf5d4c85300
parentd14e6b4346bf397eca7cb5f4b7b0b8054be632d8
bpf: Move sleepable verification code to btf_id_allow_sleepable

Move sleepable verification code to btf_id_allow_sleepable function.
It will be used in following changes.

Adding code to retrieve type's name instead of passing it from
bpf_check_attach_target function, because this function will be
called from another place in following changes and it's easier
to retrieve the name directly in here.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20260606123955.345967-12-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c