Skip to content

fix a verifier failure with xor

Yonghong Song bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: fix a verifier failure with xorkernel/bpf/verifier.c+66 -014 replies
2/2selftests/bpf: add verifier tests for xor operationtools/testing/selftests/bpf/verifier/bounds.c+146 -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] fix a verifier failure with xor

The bpf selftest test_progs/test_sk_assign failed with llvm11 and llvm12. The reason is that the verifier did not handle xor operation and generate very conservative register bound. Patch #1 tries to fix the verifier issue and Patch #2 added additional tests in selftest test_verifier.

Yonghong Song (2):
bpf: fix a verifier failure with xor selftests/bpf: add verifier tests for xor operation

 kernel/bpf/verifier.c                         |  66 ++++++++
 tools/testing/selftests/bpf/verifier/bounds.c | 146 ++++++++++++++++++
 2 files changed, 212 insertions(+)
Signature · 1 line
2.24.1