]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: add missing fsession to the verifier log
authorMenglong Dong <menglong8.dong@gmail.com>
Sun, 12 Apr 2026 06:03:44 +0000 (14:03 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 12 Apr 2026 19:42:38 +0000 (12:42 -0700)
commit9fd19e3ed7751bbd28cfca1e3f73811e2f1a370f
tree6badb4cf04be6db68c9806aec8b97e86958552b7
parent46ffc1f78295b8fdb587b99ffc18f29e00ec3a30
bpf: add missing fsession to the verifier log

The fsession attach type is missed in the verifier log in
check_get_func_ip(), bpf_check_attach_target() and check_attach_btf_id().
Update them to make the verifier log proper. Meanwhile, update the
corresponding selftests.

Acked-by: Leon Hwang <leon.hwang@linux.dev>
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Link: https://lore.kernel.org/r/20260412060346.142007-2-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c
tools/testing/selftests/bpf/prog_tests/exceptions.c
tools/testing/selftests/bpf/verifier/sleepable.c