diff options
| author | Xu Xin <xu.xin16@zte.com.cn> | 2026-07-29 14:11:59 +0800 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2026-07-30 16:29:03 -0700 |
| commit | f0e80dee4e32fd11e6ee1b714b75f681c7cafd3e (patch) | |
| tree | 9e311b9cd8ecdba62475b6a60f8f264769317027 /tools/perf/scripts | |
| parent | 863f3ddd0b8ac65abfb50d3be0869268ac0e277b (diff) | |
bpf: Log error code on trampoline unlink failure
Replace silent WARN_ON_ONCE with WARN_ONCE that prints the actual error
code from bpf_trampoline_unlink_prog(). This aids debugging of race
conditions during link teardown, while keeping the warning rate limited
to avoid log flooding.
This will be very helpful for speeding up trouble-shooting of some crash
UAF due to bpf_trampoline_unlink_prog failures.
No change to unlink behavior.
Signed-off-by: Xu Xin <xu.xin16@zte.com.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Acked-by: Leon Hwang <leon.hwang@linux.dev>
Link: https://lore.kernel.org/bpf/20260729141159128mEJmS_aujBKr-cBu1p_UI@zte.com.cn
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
