summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorXu Yunxiang <xyx2021@mail.ustc.edu.cn>2026-09-27 20:04:22 +0800
committerKumar Kartikeya Dwivedi <memxor@gmail.com>2026-10-06 01:29:11 +0200
commitb04ba9375a9e73f554183ea851cecce475cd1f80 (patch)
treedea6f8fcffc5788669fbfe1391dd2a390a2c8187 /include/uapi/linux
parentb65cc81792eb07436879d9f0be8ebd18a78fffb4 (diff)
downloadlinux-next-b04ba9375a9e73f554183ea851cecce475cd1f80.tar.gz
linux-next-b04ba9375a9e73f554183ea851cecce475cd1f80.zip
selftests/bpf: Test dynptr teardown on subprog return
Add failure tests for slices that escape a subprogram from a dynptr in the callee stack. Cover immediate use of a ring buffer clone slice, release-time invalidation of a caller dynptr slice after it crosses a subprogram return, and immediate use of an skb dynptr slice in a qdisc program. Cover the error path where a subprogram would otherwise lose the last dynptr capable of releasing a referenced resource. Also add a success control which derives a slice from a caller-owned dynptr and creates a separate clone in the callee. Destroying that callee-local clone on return must not invalidate the caller dynptr's slice. Signed-off-by: Xu Yunxiang <xyx2021@mail.ustc.edu.cn> Reviewed-by: Amery Hung <ameryhung@gmail.com> Link: https://lore.kernel.org/bpf/20260927120422.1042107-3-xyx2021@mail.ustc.edu.cn Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions