BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] Two tiny fixes for btf record
@ 2024-09-12  1:28 Hou Tao
  2024-09-12  1:28 ` [PATCH bpf-next 1/2] bpf: Call the missed btf_record_free() when map creation fails Hou Tao
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Hou Tao @ 2024-09-12  1:28 UTC (permalink / raw)
  To: bpf
  Cc: Martin KaFai Lau, Alexei Starovoitov, Andrii Nakryiko,
	Eduard Zingerman, Song Liu, Hao Luo, Yonghong Song,
	Daniel Borkmann, KP Singh, Stanislav Fomichev, Jiri Olsa,
	John Fastabend, Amery Hung, Dave Marchevsky, houtao1, xukuohai

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(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-14  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-12  1:28 [PATCH bpf-next 0/2] Two tiny fixes for btf record Hou Tao
2024-09-12  1:28 ` [PATCH bpf-next 1/2] bpf: Call the missed btf_record_free() when map creation fails Hou Tao
2024-09-12  7:55   ` Jiri Olsa
2024-09-12  1:28 ` [PATCH bpf-next 2/2] bpf: Call the missed kfree() when there is no special field in btf Hou Tao
2024-09-12  7:53   ` Jiri Olsa
2024-09-14  0:00 ` [PATCH bpf-next 0/2] Two tiny fixes for btf record patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox