Fix sleepable context checks in verifier
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: Fix sleepable context checks and remove in_sleepable helperkernel/ | +4 | 6 replies | |
| 2/2 | selftests/bpf: Test sleepable context distinctionstools/ | +153 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH bpf-next v1 0/2] Fix sleepable context checks in verifier
Fix insufficient in_sleepable() checks that allowed sleepable iterators and kfuncs in non-sleepable contexts (e.g., inside bpf_rcu_read_lock()). Remove in_sleepable() helper and enforce in_sleepable_context() everywhere, with direct env->cur_state->in_sleepable checks where needed. Add selftests that fail before the fix and pass after the fix.
Kumar Kartikeya Dwivedi (2):
bpf: Fix sleepable context checks and remove in_sleepable helper selftests/bpf: Test sleepable context distinctions
kernel/bpf/verifier.c | 13 +- .../selftests/bpf/progs/iters_task_failure.c | 153 ++++++++++++++++++ 2 files changed, 157 insertions(+), 9 deletions(-)
base-commit: 8c7f55d60aa3512fd3da7e9cf313723460e487b4
Signature · 1 line
2.53.0-Meta