All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf v2 00/11] Misc BPF gotox fixes
@ 2026-09-14 17:03 Daniel Borkmann
  2026-09-14 17:03 ` [PATCH bpf v2 01/11] bpf: Avoid quadratic successor rescan in bpf_compute_scc Daniel Borkmann
                   ` (10 more replies)
  0 siblings, 11 replies; 29+ messages in thread
From: Daniel Borkmann @ 2026-09-14 17:03 UTC (permalink / raw)
  To: ast; +Cc: memxor, eddyz87, a.s.protopopov, info, bpf

Address various open issues around gotox instruction, see individual
commits for details. Also BPF selftests are added to assert that these
are addressed.

v1 -> v2:
  - Remove jt_spans_subprogs and reject right away (Eduard)
  - Rework jump table to no longer keep it in insn_aux_data (Eduard)
  - Fix up comments in bpf_compute_scc (Eduard)
  - Fix up commit message nit wrt signed_loader (Anton)
  - Added 3 more fixes related to gotox along with BPF selftests

Daniel Borkmann (11):
  bpf: Avoid quadratic successor rescan in bpf_compute_scc
  bpf: Bound the number of indirect jump edges in a program
  bpf: Cache the jump table of a subprogram during CFG discovery
  bpf: Reject indirect jumps that leave their subprogram
  bpf: Don't remove indirect jump targets in the nop removal pass
  bpf: Clear insn array jitted pointers on map reuse
  bpf: Retarget indirect jump targets across prologue prepends
  selftests/bpf: Add tests for the indirect jump edge limit
  selftests/bpf: Add tests for indirect jumps across subprograms
  selftests/bpf: Add tests for gotox nop targets and insn array reuse
  selftests/bpf: Add tests for gotox targets across prologue prepends

 include/linux/bpf.h                           |    2 +-
 include/linux/bpf_verifier.h                  |    6 +-
 kernel/bpf/bpf_insn_array.c                   |   16 +-
 kernel/bpf/cfg.c                              |  208 ++--
 kernel/bpf/fixups.c                           |   63 +-
 kernel/bpf/liveness.c                         |   18 +-
 kernel/bpf/verifier.c                         |   58 +-
 .../selftests/bpf/prog_tests/bpf_insn_array.c | 1061 ++++++++++++++++-
 .../selftests/bpf/progs/verifier_gotox.c      |    2 +-
 9 files changed, 1276 insertions(+), 158 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-09-15  2:36 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-14 17:03 [PATCH bpf v2 00/11] Misc BPF gotox fixes Daniel Borkmann
2026-09-14 17:03 ` [PATCH bpf v2 01/11] bpf: Avoid quadratic successor rescan in bpf_compute_scc Daniel Borkmann
2026-09-14 17:03 ` [PATCH bpf v2 02/11] bpf: Bound the number of indirect jump edges in a program Daniel Borkmann
2026-09-14 18:19   ` bot+bpf-ci
2026-09-14 17:03 ` [PATCH bpf v2 03/11] bpf: Cache the jump table of a subprogram during CFG discovery Daniel Borkmann
2026-09-14 18:19   ` bot+bpf-ci
2026-09-14 20:05     ` Daniel Borkmann
2026-09-14 23:14   ` Eduard Zingerman
2026-09-14 17:03 ` [PATCH bpf v2 04/11] bpf: Reject indirect jumps that leave their subprogram Daniel Borkmann
2026-09-15  0:04   ` Eduard Zingerman
2026-09-14 17:03 ` [PATCH bpf v2 05/11] bpf: Don't remove indirect jump targets in the nop removal pass Daniel Borkmann
2026-09-15  0:14   ` Eduard Zingerman
2026-09-14 17:03 ` [PATCH bpf v2 06/11] bpf: Clear insn array jitted pointers on map reuse Daniel Borkmann
2026-09-14 17:29   ` sashiko-bot
2026-09-14 19:30     ` Daniel Borkmann
2026-09-14 18:19   ` bot+bpf-ci
2026-09-15  0:20   ` Eduard Zingerman
2026-09-14 17:03 ` [PATCH bpf v2 07/11] bpf: Retarget indirect jump targets across prologue prepends Daniel Borkmann
2026-09-14 18:19   ` bot+bpf-ci
2026-09-15  0:41   ` Eduard Zingerman
2026-09-14 17:03 ` [PATCH bpf v2 08/11] selftests/bpf: Add tests for the indirect jump edge limit Daniel Borkmann
2026-09-14 18:19   ` bot+bpf-ci
2026-09-15  1:59   ` Eduard Zingerman
2026-09-14 17:03 ` [PATCH bpf v2 09/11] selftests/bpf: Add tests for indirect jumps across subprograms Daniel Borkmann
2026-09-14 17:03 ` [PATCH bpf v2 10/11] selftests/bpf: Add tests for gotox nop targets and insn array reuse Daniel Borkmann
2026-09-14 18:19   ` bot+bpf-ci
2026-09-15  2:36   ` Eduard Zingerman
2026-09-14 17:03 ` [PATCH bpf v2 11/11] selftests/bpf: Add tests for gotox targets across prologue prepends Daniel Borkmann
2026-09-14 18:19   ` bot+bpf-ci

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.