diff options
| author | 2026-08-05 23:33:39 +0800 | |
|---|---|---|
| committer | 2026-08-06 10:58:04 +0200 | |
| commit | 7619a0ee9340b3cef114b1c7aae42c0835cf2bff (patch) | |
| tree | df3cd17c2d2a7f4d4b63a56e72f28c8881d3ef6f /scripts/Makefile.thinlto | |
| parent | bpf: Add KF_SPINLOCK_SAFE flag for kfuncs under bpf_spin_lock (diff) | |
bpf: Mark existing lock-safe kfuncs with KF_SPINLOCK_SAFE
The verifier currently keeps a hard-coded list of kfuncs that may be
called while holding a bpf_spin_lock. With KF_SPINLOCK_SAFE available,
retaining this list creates two sources of truth and requires verifier
changes whenever another lock-safe kfunc is added.
Mark every kfunc currently accepted by kfunc_spin_allowed() with
KF_SPINLOCK_SAFE. This covers the graph, numeric iterator, resource
spin lock, arena, and stream kfuncs.
Remove the obsolete category checks and make kfunc_spin_allowed() rely
solely on the kfunc registration metadata. This preserves the behavior
of existing kfuncs while using the same mechanism for built-in and
module kfuncs.
Signed-off-by: Kaitao Cheng <chengkaitao@kylinos.cn>
Acked-by: Leon Hwang <leon.hwang@linux.dev>
Link: https://lore.kernel.org/bpf/20260805153340.34776-3-kaitao.cheng@linux.dev
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
