summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorKaitao Cheng <chengkaitao@kylinos.cn>2026-02-14 20:40:40 +0800
committerAlexei Starovoitov <ast@kernel.org>2026-02-23 17:37:06 -0800
commit580fa3430b5d164fe8841e99825601d7a85af0d3 (patch)
treee7954cedba25a4260533c490f2af2545ff10f271 /kernel
parentee9886c40aaeb0fa0817e28d995bb7c58d66ab25 (diff)
selftests/bpf: Add supplementary tests for bpf_kptr_xchg
1. Allow using bpf_kptr_xchg while holding a lock. 2. When the rb_node contains a __kptr pointer, we do not need to perform a remove-read-add operation. This patch implements the following workflow: 1. Construct a rbtree with 16 elements. 2. Traverse the rbtree, locate the kptr pointer in the target node, and read the content pointed to by the pointer. 3. Remove all nodes from the rbtree. Signed-off-by: Kaitao Cheng <chengkaitao@kylinos.cn> Signed-off-by: Feng Yang <yangfeng@kylinos.cn> Link: https://lore.kernel.org/r/20260214124042.62229-4-pilgrimtao@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions