linux-stable/tools/testing
Xu Kuohai 70028a10b6 selftests/bpf: Fix memory leak caused by not destroying skeleton
[ Upstream commit 6e8280b958 ]

Some test cases does not destroy skeleton object correctly, causing ASAN
to report memory leak warning. Fix it.

Fixes: 0ef6740e97 ("selftests/bpf: Add tests for kptr_ref refcounting")
Fixes: 1642a3945e ("selftests/bpf: Add struct argument tests with fentry/fexit programs.")
Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/bpf/20221011120108.782373-4-xukuohai@huaweicloud.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:25:49 +01:00
..
crypto/chacha20-s390 tools/testing/crypto: Use vzalloc instead of vmalloc+memset 2022-07-05 14:46:36 +02:00
cxl tools/testing/cxl: Fix some error exits 2022-11-26 09:27:21 +01:00
fault-injection
ktest
kunit kunit: tool: Enable virtio/PCI by default on UML 2022-07-08 11:22:29 -06:00
memblock memblock updates for v5.20 2022-08-09 09:48:30 -07:00
nvdimm ndtest: Cleanup all of blk namespace specific code 2022-07-12 17:57:55 -07:00
radix-tree tools: Add kmem_cache_alloc_lru() 2022-04-22 14:24:28 -04:00
scatterlist
selftests selftests/bpf: Fix memory leak caused by not destroying skeleton 2022-12-31 13:25:49 +01:00
vsock