summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorNing Ding <dingning04@gmail.com>2026-09-04 10:43:21 +0200
committerAlexei Starovoitov <ast@kernel.org>2026-09-04 07:58:36 -0700
commit9492baf8532ca285c58b82a269acd7a57e205ae9 (patch)
treeec8406fa98b9cc67556f8bfd4f637a2612600ec9 /scripts/Makefile.thinlto
parent7441ee8276641bddaf1cba7bb75ef9c1458ceb3b (diff)
downloadlinux-9492baf8532ca285c58b82a269acd7a57e205ae9.tar.gz
linux-9492baf8532ca285c58b82a269acd7a57e205ae9.zip
selftests/bpf: Reject refcount acquisition after RCU unlock
Add a sleepable verifier test that loads a refcount-only local kptr in an explicit RCU read-side critical section, ends the section, and passes the pointer to bpf_refcount_acquire(). The loaded pointer never carries NON_OWN_REF. After RCU unlock it retains MEM_ALLOC while becoming PTR_UNTRUSTED, which previously made the kfunc argument check accept it as a live allocated object. Expect verification to reject the untrusted argument instead. Signed-off-by: Ning Ding <dingning04@gmail.com> [ kkd: Rewrote commit log ] Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20260904084325.52250-9-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions