selftests/bpf: Add test to cover ktls with bpf_msg_pop_data
authorJiayuan Chen <jiayuan.chen@linux.dev>
Mon, 9 Jun 2025 02:08:53 +0000 (10:08 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 11 Jun 2025 14:59:45 +0000 (16:59 +0200)
commitf1c025773f257b534f6fa77dca29b0967dfed459
treec72ddefbb27b592ab6e82c6fa1f931f110bd2578
parent178f6a5c8cb3b6be1602de0964cd440243f493c9
selftests/bpf: Add test to cover ktls with bpf_msg_pop_data

The selftest can reproduce an issue where using bpf_msg_pop_data() in
ktls causes errors on the receiving end.

Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20250609020910.397930-3-jiayuan.chen@linux.dev
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
tools/testing/selftests/bpf/progs/test_sockmap_ktls.c