All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v3 0/9] Fixes for bpf_jit_free
@ 2026-07-25 15:49 Pu Lehui
  2026-07-25 15:49 ` [PATCH bpf-next v3 1/9] bpf: Extract the bpf_jit_binary_hdr helper Pu Lehui
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Pu Lehui @ 2026-07-25 15:49 UTC (permalink / raw)
  To: bpf, linux-kernel
  Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Yonghong Song, Song Liu, Jiri Olsa, Emil Tsalapatis,
	Björn Töpel, Puranjay Mohan, Xu Kuohai, Tiezhu Yang,
	Hengqi Chen, Huacai Chen, Ilya Leoshkevich, Heiko Carstens,
	Vasily Gorbik, Helge Deller, David S. Miller, Shahab Vahedi,
	Hari Bathini, Christophe Leroy (CS GROUP), Naveen N Rao, Pu Lehui,
	Pu Lehui

From: Pu Lehui <pulehui@huawei.com>

Fixes for bpf_jit_free identified by Sashiko, as previously noted in [0].

Link: https://lore.kernel.org/bpf/28ba19a4-b487-49fd-bbba-04410acdb113@iogearbox.net/ [0]

v3:
- Add fix for private stack leak on arm64. (Sashiko)
- Some minor fixes.

v2: https://lore.kernel.org/bpf/20260725102020.2287770-1-pulehui@huaweicloud.com
- Fix JITs not freeing leftover jit_data when jit_subprogs() aborts. (Sashiko)
- Drop fix for loongarch as it's applied.

v1: https://lore.kernel.org/bpf/20260722112754.1615201-1-pulehui@huaweicloud.com


Pu Lehui (9):
  bpf: Extract the bpf_jit_binary_hdr helper
  s390/bpf: Fix memory leak in bpf_jit_free
  parisc: Fix memory leak in bpf_jit_free
  bpf, sparc64: Fix memory leak in bpf_jit_free
  ARC, bpf: Fix memory leak in bpf_jit_free
  bpf, arm64: Fix memory leak in bpf_jit_free
  bpf, arm64: Fix private stack leak when JIT failed
  riscv, bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free
  bpf: Fix double-free RO header in bpf_jit_free

 arch/arc/net/bpf_jit_core.c      | 19 +++++++++++++++++++
 arch/arm64/net/bpf_jit_comp.c    |  6 +++---
 arch/loongarch/net/bpf_jit.c     |  6 ++----
 arch/parisc/net/bpf_jit_core.c   | 19 +++++++++++++++++++
 arch/powerpc/net/bpf_jit_comp.c  |  5 +++--
 arch/riscv/net/bpf_jit_core.c    |  8 +++-----
 arch/s390/net/bpf_jit_comp.c     | 19 +++++++++++++++++++
 arch/sparc/net/bpf_jit_comp_64.c | 19 +++++++++++++++++++
 arch/x86/net/bpf_jit_comp.c      |  7 ++-----
 include/linux/filter.h           |  2 ++
 kernel/bpf/core.c                | 19 ++++++++++---------
 11 files changed, 101 insertions(+), 28 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-07-25 16:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-25 15:49 [PATCH bpf-next v3 0/9] Fixes for bpf_jit_free Pu Lehui
2026-07-25 15:49 ` [PATCH bpf-next v3 1/9] bpf: Extract the bpf_jit_binary_hdr helper Pu Lehui
2026-07-25 15:49 ` [PATCH bpf-next v3 2/9] s390/bpf: Fix memory leak in bpf_jit_free Pu Lehui
2026-07-25 15:49 ` [PATCH bpf-next v3 3/9] parisc: " Pu Lehui
2026-07-25 15:54   ` sashiko-bot
2026-07-25 15:49 ` [PATCH bpf-next v3 4/9] bpf, sparc64: " Pu Lehui
2026-07-25 15:49 ` [PATCH bpf-next v3 5/9] ARC, bpf: " Pu Lehui
2026-07-25 15:49 ` [PATCH bpf-next v3 6/9] bpf, arm64: " Pu Lehui
2026-07-25 16:01   ` sashiko-bot
2026-07-25 15:49 ` [PATCH bpf-next v3 7/9] bpf, arm64: Fix private stack leak when JIT failed Pu Lehui
2026-07-25 15:55   ` sashiko-bot
2026-07-25 15:49 ` [PATCH bpf-next v3 8/9] riscv, bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free Pu Lehui
2026-07-25 15:57   ` sashiko-bot
2026-07-25 15:49 ` [PATCH bpf-next v3 9/9] bpf: Fix double-free RO header " Pu Lehui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.