Message ID | 20231216131052.27621-1-houtao@huaweicloud.com (mailing list archive) |
---|---|
Headers | show |
Series | bpf: Fix warning in check_obj_size() | expand |
Hello: This series was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <ast@kernel.org>: On Sat, 16 Dec 2023 21:10:50 +0800 you wrote: > From: Hou Tao <houtao1@huawei.com> > > Hi, > > The patch set aims to fix the warning in check_obj_size() as reported by > lkp [1]. Patch #1 fixes the warning by selecting target cache for free > request through c->unit_size, so the unnecessary adjustment of > size_index and the checking in check_obj_size() can be removed. Patch #2 > fixes the test failure in test_bpf_ma after applying patch #1. > > [...] Here is the summary with links: - [bpf-next,1/2] bpf: Use c->unit_size to select target cache during free https://git.kernel.org/bpf/bpf-next/c/7ac5c53e0073 - [bpf-next,2/2] selftests/bpf: Remove tests for zeroed-array kptr https://git.kernel.org/bpf/bpf-next/c/69ff403d87be You are awesome, thank you!
From: Hou Tao <houtao1@huawei.com> Hi, The patch set aims to fix the warning in check_obj_size() as reported by lkp [1]. Patch #1 fixes the warning by selecting target cache for free request through c->unit_size, so the unnecessary adjustment of size_index and the checking in check_obj_size() can be removed. Patch #2 fixes the test failure in test_bpf_ma after applying patch #1. Please see individual patches for more details. And comments are always welcome. [1]: https://lore.kernel.org/bpf/202310302113.9f8fe705-oliver.sang@intel.com/ Hou Tao (2): bpf: Use c->unit_size to select target cache during free selftests/bpf: Remove tests for zeroed-array kptr kernel/bpf/memalloc.c | 105 ++---------------- .../testing/selftests/bpf/progs/test_bpf_ma.c | 100 ++++++++--------- 2 files changed, 60 insertions(+), 145 deletions(-)