diff options
| author | Alexei Starovoitov <[email protected]> | 2025-03-19 02:07:18 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-03-19 02:07:24 +0000 |
| commit | 6ca21620b475e9d359c80a5db9ede7ce4abc4d03 (patch) | |
| tree | f99c75ef5e0aa594a31a2d5376db8512df9620aa /tools/lib/bpf/str_error.c | |
| parent | bpf: Only fails the busy counter check in bpf_cgrp_storage_get if it creates ... (diff) | |
| parent | selftests/bpf: Add selftest for attaching fexit to __noreturn functions (diff) | |
| download | kernel-6ca21620b475e9d359c80a5db9ede7ce4abc4d03.tar.gz kernel-6ca21620b475e9d359c80a5db9ede7ce4abc4d03.zip | |
Merge branch 'bpf-reject-attaching-fexit-fmod_ret-to-noreturn-functions'
Yafang Shao says:
====================
Attaching fexit probes to functions marked with __noreturn may lead to
unpredictable behavior. To avoid this, we will reject attaching probes to
such functions. Currently, there is no ideal solution, so we will hardcode
a check for all __noreturn functions.
Once a more robust solution is implemented, this workaround can be removed.
v4->v5:
- Remove unnecessary functions (Alexei)
- Use BTF_ID directly (Alexei)
v3->v4: https://lore.kernel.org/bpf/[email protected]/
- Reject also fmod_ret (Alexei)
- Fix build warnings and remove unnecessary functions (Alexei)
v1->v2: https://lore.kernel.org/bpf/[email protected]/
- keep tools/objtool/noreturns.h as is (Josh)
- Add noreturns.h to objtool/sync-check.sh (Josh)
- Add verbose for the reject and simplify the test case (Song)
v1: https://lore.kernel.org/bpf/[email protected]/
====================
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/str_error.c')
0 files changed, 0 insertions, 0 deletions
