Skip to content

Fix bpf_loop syzbot report

Kumar Kartikeya Dwivedi bpf sashiko-reviews 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Reject non-scalar bpf_loop iteration countsinclude/linux/bpf.h kernel/bpf/bpf_iter.c kernel/bpf/verifier.c+3 -12 repliesApplied
2/2selftests/bpf: Test pointer bpf_loop iteration count rejectiontools/testing/selftests/bpf/progs/verifier_iterating_callbacks.c+17 -01 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEduard Zingerman
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf v1 0/2] Fix bpf_loop syzbot report

Needs Eduard's ack. Fix for the report in
https://lore.kernel.org/bpf/[email protected].

Kumar Kartikeya Dwivedi (2):
bpf: Reject non-scalar bpf_loop iteration counts selftests/bpf: Test pointer bpf_loop iteration count rejection

 include/linux/bpf.h                             |  1 +
 kernel/bpf/bpf_iter.c                           |  2 +-
 kernel/bpf/verifier.c                           |  1 +
 .../bpf/progs/verifier_iterating_callbacks.c    | 17 +++++++++++++++++
 4 files changed, 20 insertions(+), 1 deletion(-)

base-commit: b75a000f2ac15f4778ddd6d9298d60b24ad776fa

Signature · 1 line
2.53.0