summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXu Yunxiang <xyx2021@mail.ustc.edu.cn>2026-10-24 18:06:47 +0800
committerAlexei Starovoitov <ast@kernel.org>2026-10-25 01:20:29 +0000
commit2d7eaeb05ae265bd64270376e6a2c0d80244771f (patch)
tree53d9a4ca5f243d5849b4147f50d9a0dc2bd37fde /include
parentd09c2aa3109f5cb1d0be7d382231ab5d58583cad (diff)
selftests/bpf: Test borrowed iterator result lifetimes
Exercise borrowed VMA results before and after iterator advancement and destruction, including NULL next, trusted fields, and a FILE dynptr that must be discarded before advancing. Keep positive controls for using the current element and discarding the dynptr first. Use a test-module iterator returning current to verify the explicit independent-lifetime exception. Retain controls for RCU-protected results. Also check the generic trusted-field rule outside iterators: reading file->f_inode while holding an acquired file reference succeeds, but using the saved inode pointer after bpf_put_file() is rejected. The annotated programs check verifier loading and diagnostics; they do not request runtime execution of the added programs. Signed-off-by: Xu Yunxiang <xyx2021@mail.ustc.edu.cn> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Reviewed-by: Amery Hung <ameryhung@gmail.com> Link: https://patch.msgid.link/20261024100647.2579244-3-xyx2021@mail.ustc.edu.cn
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions