Skip to content

bpf: avoid verifier failure for 32bit pointer arithmetic

Yonghong Song bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: avoid verifier failure for 32bit pointer arithmetickernel/bpf/verifier.c+5 -03 replies
2/2tools/bpf: add verifier tests for 32bit pointer/scalar arithmetictools/testing/selftests/bpf/verifier/value_ptr_arith.c+38 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJohn Fastabend
1/2A-b
2/2

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-next 0/2] bpf: avoid verifier failure for 32bit pointer arithmetic

This patch set tried to fix a verifier failure related to 32bit pointer arithmetic. Please see Patch #1 for the failure case and how to fix it in verifier. Patch #2 added two test_verifier subtests to cover the verifier change.

Yonghong Song (2):
bpf: avoid verifier failure for 32bit pointer arithmetic tools/bpf: add verifier tests for 32bit pointer/scalar arithmetic

 kernel/bpf/verifier.c                         |  5 +++
 .../selftests/bpf/verifier/value_ptr_arith.c  | 38 +++++++++++++++++++
 2 files changed, 43 insertions(+)
Signature · 1 line
2.24.1