diff options
| author | Yiyang Chen <chenyy23@mails.tsinghua.edu.cn> | 2026-10-07 16:25:30 +0000 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-10-19 03:51:40 +0200 |
| commit | 71b6a960c73f2ccff0932ff70aaf066bc21a960c (patch) | |
| tree | 0b909a1f2278a0a1788fdffbff01158c410adb16 /rust/kernel/alloc | |
| parent | c3a0bfddaee4e1e5fce7f4426004669c017cd8f1 (diff) | |
selftests/bpf: Cover trusted BTF ID argument provenance
Extend verifier_global_ptr_args.c with calls that pass bare and
RCU-protected task pointers to a global __arg_trusted parameter. Both
calls must be rejected because neither pointer is referenced or trusted.
Add paired test-module kfuncs that return and accept a nullable trusted
task pointer. Passing the return value directly must succeed, covering
PTR_TRUSTED | PTR_MAYBE_NULL handling in the common argument checker.
Signed-off-by: Yiyang Chen <chenyy23@mails.tsinghua.edu.cn>
Reviewed-by: Amery Hung <ameryhung@gmail.com>
Link: https://lore.kernel.org/bpf/20261007-a3-arg-trusted-v4-v4-2-253ef3a1a69a@mails.tsinghua.edu.cn
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
