Commit ff345ab
committed
bpf: Show precise rejected function when attaching fexit/fmod_ret to __noreturn functions
JIRA: https://issues.redhat.com/browse/RHEL-78204
commit a5a6b29
Author: KaFai Wan <[email protected]>
Date: Thu Jul 24 23:14:51 2025 +0800
bpf: Show precise rejected function when attaching fexit/fmod_ret to __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]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Jerome Marchand <[email protected]>1 parent 6f33e36 commit ff345ab
File tree
2 files changed
+3
-2
lines changed- kernel/bpf
- tools/testing/selftests/bpf/progs
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23989 | 23989 | | |
23990 | 23990 | | |
23991 | 23991 | | |
23992 | | - | |
| 23992 | + | |
| 23993 | + | |
23993 | 23994 | | |
23994 | 23995 | | |
23995 | 23996 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments