Implement bpf_dynptr_memset() kfunc and add tests for it. v2->v3: * nits and slow-path loop rewrite (Andrii) * simplify xdp chunks test (Mykyta) v1->v2: * handle non-linear buffers with bpf_dynptr_write() * change function signature to include offset arg * add more test cases v2: https://lore.kernel.org/bpf/20250624205240.1311453-1-isolodrai@xxxxxxxx/ v1: https://lore.kernel.org/bpf/20250618223310.3684760-1-isolodrai@xxxxxxxx/ Ihor Solodrai (2): bpf: add bpf_dynptr_memset() kfunc selftests/bpf: add test cases for bpf_dynptr_memset() kernel/bpf/helpers.c | 47 ++++++ .../testing/selftests/bpf/prog_tests/dynptr.c | 8 + .../selftests/bpf/progs/dynptr_success.c | 158 ++++++++++++++++++ 3 files changed, 213 insertions(+) -- 2.47.1