Skip to content

Misc BPF fixes from sashiko findings

Daniel Borkmann bpf 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4bpf: Fix vmlinux BTF prep race in bpf_get_btf_vmlinuxkernel/bpf/verifier.c+16 -40 repliesApplied
2/4bpf: Give vmlinux BTF init its own mutexkernel/bpf/btf.c kernel/bpf/verifier.c+5 -40 repliesApplied
3/4bpf: Account insn_aux_data allocation in bpf_checkkernel/bpf/verifier.c+2 -10 repliesApplied
4/4bpf: Account scratch buffer in bpf_prog_calc_tagkernel/bpf/core.c+1 -10 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/4] Misc BPF fixes from sashiko findings

Addressing some misc/random findings from sashiko that are worth fixing which popped up as pre-existing issues while working on the signed BPF loader series.

Daniel Borkmann (4):
bpf: Fix vmlinux BTF prep race in bpf_get_btf_vmlinux
bpf: Give vmlinux BTF init its own mutex
bpf: Account insn_aux_data allocation in bpf_check
bpf: Account scratch buffer in bpf_prog_calc_tag

 kernel/bpf/btf.c      |  2 +-
 kernel/bpf/core.c     |  2 +-
 kernel/bpf/verifier.c | 30 ++++++++++++++++++++++--------
 3 files changed, 24 insertions(+), 10 deletions(-)
Signature · 1 line
2.43.0