diff options
| author | Ning Ding <dingning04@gmail.com> | 2026-08-03 04:26:09 -0700 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-08-04 11:34:02 +0200 |
| commit | bb2df6fd891d6332cc180d198914e9f40ada50e8 (patch) | |
| tree | 4ade5cdc840234563d248a23db0752fa229eb58b /kernel | |
| parent | 180c7000712db77063b3a26f4c97e7dd9038f449 (diff) | |
selftests/bpf: Test RCU pointer invalidation after spin unlock
The verifier previously accepted a task kptr after the final spin unlock
ended its RCU protection in a sleepable program. The pointer could then be
used after the task was freed.
Add a negative test for that case. Add positive controls showing that the
pointer remains valid in a non-sleepable program and while an explicit RCU
read-side section is still active.
Assisted-by: Codex:gpt-5.6-sol
Assisted-by: ChatGPT:GPT-5.6-Pro
Signed-off-by: Ning Ding <dingning04@gmail.com>
Link: https://lore.kernel.org/bpf/20260803112615.3362122-3-dingning04@gmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
