Message ID | 20240813212424.2871455-1-amery.hung@bytedance.com (mailing list archive) |
---|---|
Headers | show |
Series | Support bpf_kptr_xchg into local kptr | expand |
Hello: This series was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <ast@kernel.org>: On Tue, 13 Aug 2024 21:24:19 +0000 you wrote: > This revision adds substaintial changes to patch 2 to support structures > with kptr as the only special btf type. The test is split into > local_kptr_stash and task_kfunc_success to remove dependencies on > bpf_testmod that would break veristat results. > > This series allows stashing kptr into local kptr. Currently, kptrs are > only allowed to be stashed into map value with bpf_kptr_xchg(). A > motivating use case of this series is to enable adding referenced kptr to > bpf_rbtree or bpf_list by using allocated object as graph node and the > storage of referenced kptr. For example, a bpf qdisc [0] enqueuing a > referenced kptr to a struct sk_buff* to a bpf_list serving as a fifo: > > [...] Here is the summary with links: - [v4,bpf-next,1/5] bpf: Let callers of btf_parse_kptr() track life cycle of prog btf https://git.kernel.org/bpf/bpf-next/c/c5ef53420f46 - [v4,bpf-next,2/5] bpf: Search for kptrs in prog BTF structs https://git.kernel.org/bpf/bpf-next/c/7a851ecb1806 - [v4,bpf-next,3/5] bpf: Rename ARG_PTR_TO_KPTR -> ARG_KPTR_XCHG_DEST https://git.kernel.org/bpf/bpf-next/c/d59232afb034 - [v4,bpf-next,4/5] bpf: Support bpf_kptr_xchg into local kptr https://git.kernel.org/bpf/bpf-next/c/b0966c724584 - [v4,bpf-next,5/5] selftests/bpf: Test bpf_kptr_xchg stashing into local kptr https://git.kernel.org/bpf/bpf-next/c/91c96842ab1e You are awesome, thank you!