]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Update sk_storage_omem_uncharge test
authorAmery Hung <ameryhung@gmail.com>
Thu, 5 Feb 2026 22:29:10 +0000 (14:29 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 6 Feb 2026 22:48:04 +0000 (14:48 -0800)
commitd652f425d5e332125d358a92158a840084061107
treeb96f4392afc3f1a5376f684b4828623c8f6da61a
parent0be08389c7f2f9db0194ee666d2e4870886e6ffb
selftests/bpf: Update sk_storage_omem_uncharge test

Check sk_omem_alloc when the caller of bpf_local_storage_destroy()
returns. bpf_local_storage_destroy() now returns the memory to uncharge
to the caller instead of directly uncharge. Therefore, in the
sk_storage_omem_uncharge, check sk_omem_alloc when bpf_sk_storage_free()
returns instead of bpf_local_storage_destroy().

Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20260205222916.1788211-13-ameryhung@gmail.com
tools/testing/selftests/bpf/progs/sk_storage_omem_uncharge.c