mbox series

[bpf-next,0/2] Two tiny fixes for btf record

Message ID 20240912012845.3458483-1-houtao@huaweicloud.com (mailing list archive)
Headers show
Series Two tiny fixes for btf record | expand

Message

Hou Tao Sept. 12, 2024, 1:28 a.m. UTC
From: Hou Tao <houtao1@huawei.com>

Hi,

The tiny patch set aims to fix two problems found during the development
of supporting dynptr key in hash table. Patch #1 fixes the missed
btf_record_free() when map creation fails and patch #2 fixes the missed
kfree() when there is no special field in the passed btf.

Comments are always welcome.

Hou Tao (2):
  bpf: Call the missed btf_record_free() when map creation fails
  bpf: Call the missed kfree() when there is no special field in btf

 kernel/bpf/btf.c     |  4 +++-
 kernel/bpf/syscall.c | 19 ++++++++++++-------
 2 files changed, 15 insertions(+), 8 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Sept. 14, 2024, midnight UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Thu, 12 Sep 2024 09:28:43 +0800 you wrote:
> From: Hou Tao <houtao1@huawei.com>
> 
> Hi,
> 
> The tiny patch set aims to fix two problems found during the development
> of supporting dynptr key in hash table. Patch #1 fixes the missed
> btf_record_free() when map creation fails and patch #2 fixes the missed
> kfree() when there is no special field in the passed btf.
> 
> [...]

Here is the summary with links:
  - [bpf-next,1/2] bpf: Call the missed btf_record_free() when map creation fails
    https://git.kernel.org/bpf/bpf-next/c/87e9675a0dfd
  - [bpf-next,2/2] bpf: Call the missed kfree() when there is no special field in btf
    https://git.kernel.org/bpf/bpf-next/c/986deb297d48

You are awesome, thank you!