[PATCH bpf-next v4 0/2] bpf: add bpf_strcat,bpf_strncat kfunc
From: Rong Tao
Date: Mon Jul 20 2026 - 04:38:13 EST
Add string concatenation kfuncs.
Rong Tao (2):
bpf: add bpf_strcat,bpf_strncat kfunc
selftests/bpf: Test bpf_strcat,bpf_strncat kfuncs
kernel/bpf/helpers.c | 70 +++++++++++++++++++
.../selftests/bpf/prog_tests/string_kfuncs.c | 2 +
.../bpf/progs/string_kfuncs_failure1.c | 53 ++++++++------
.../bpf/progs/string_kfuncs_failure2.c | 3 +
.../bpf/progs/string_kfuncs_success.c | 10 +++
5 files changed, 117 insertions(+), 21 deletions(-)
---
v4: Addressed Viktor's review comments (see v3)
v3: Use bpf_probe_read_kernel_str and resolve some bot suggestion issues
https://lore.kernel.org/lkml/3e73aeb2-afce-4ae9-9163-51e4dc1ded01@xxxxxxxxxx/
v2: Resolve some bot suggestion issues
https://lore.kernel.org/lkml/tencent_9EC04DC824CBF5124305E73564341511C405@xxxxxx/
v1: https://lore.kernel.org/lkml/tencent_59689407B1C3204B08362BEEF244A5FE5505@xxxxxx/
--
2.55.0