-
Notifications
You must be signed in to change notification settings - Fork 147
bpf: Show precise rejected function when attaching to __noreturn and deny list functions #9342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Upstream branch: 95993dc |
Upstream branch: 95993dc |
0a9ad1d
to
bee2dc5
Compare
Upstream branch: 95993dc |
bee2dc5
to
e1227f3
Compare
Upstream branch: 95993dc |
e1227f3
to
c605d3d
Compare
Upstream branch: 95993dc |
c605d3d
to
c594593
Compare
95edab2
to
b70a88e
Compare
Upstream branch: 9ea0691 |
c594593
to
ca567d5
Compare
b70a88e
to
ee1737b
Compare
Upstream branch: b7b3500 |
ca567d5
to
34f9589
Compare
ee1737b
to
7e8b66d
Compare
Upstream branch: b114fce |
34f9589
to
7b374b1
Compare
7e8b66d
to
30b3e47
Compare
Upstream branch: e9f545d |
7b374b1
to
15dda44
Compare
30b3e47
to
b5fabf3
Compare
Upstream branch: 5345e64 |
15dda44
to
403ca3d
Compare
b5fabf3
to
c883dca
Compare
…__noreturn functions With this change, we know the precise rejected function name when attaching fexit/fmod_ret to __noreturn functions from log. $ ./fexit libbpf: prog 'fexit': BPF program load failed: -EINVAL libbpf: prog 'fexit': -- BEGIN PROG LOAD LOG -- Attaching fexit/fmod_ret to __noreturn function 'do_exit' is rejected. Suggested-by: Leon Hwang <[email protected]> Signed-off-by: KaFai Wan <[email protected]> Acked-by: Yafang Shao <[email protected]> Acked-by: Yonghong Song <[email protected]>
Show the rejected function name when attaching tracing programs to functions in deny list. With this change, we know why tracing programs can't attach to functions like __rcu_read_lock() from log. $ ./fentry libbpf: prog '__rcu_read_lock': BPF program load failed: -EINVAL libbpf: prog '__rcu_read_lock': -- BEGIN PROG LOAD LOG -- Attaching tracing programs to function '__rcu_read_lock' is rejected. Suggested-by: Leon Hwang <[email protected]> Signed-off-by: KaFai Wan <[email protected]> Acked-by: Yafang Shao <[email protected]> Acked-by: Yonghong Song <[email protected]>
…ns in deny list The result: $ tools/testing/selftests/bpf/test_progs -t tracing_failure/tracing_deny #468/3 tracing_failure/tracing_deny:OK #468 tracing_failure:OK Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED Signed-off-by: KaFai Wan <[email protected]> Acked-by: Yonghong Song <[email protected]>
Upstream branch: 5b4c54a |
… suite Delete fexit_noreturns.c files and migrate the cases into tracing_failure.c files. The result: $ tools/testing/selftests/bpf/test_progs -t tracing_failure/fexit_noreturns #467/4 tracing_failure/fexit_noreturns:OK #467 tracing_failure:OK Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED Signed-off-by: KaFai Wan <[email protected]> Acked-by: Yonghong Song <[email protected]>
403ca3d
to
136ba21
Compare
c883dca
to
c82c120
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=985629 irrelevant now. Closing PR. |
Pull request for series with
subject: bpf: Show precise rejected function when attaching to __noreturn and deny list functions
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=984770