Skip to content

bpf fix to reject mixing ptr / scalar alu op on unpriv

Daniel Borkmann netdev 1 version Applied

Status from this message: Applied, Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: fix sanitation of alu op with pointer / scalar type from different pathsinclude/linux/bpf_verifier.h kernel/bpf/verifier.c+49 -130 replies
2/2bpf: add various test cases for alu op on mixed dst register typestools/testing/selftests/bpf/test_verifier.c+120 -00 replies

Reviews trailers per patch

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

PatchAlexei Starovoitov
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 0/2] bpf fix to reject mixing ptr / scalar alu op on unpriv

Follow-up fix to 979d63d50c0c ("bpf: prevent out of bounds speculation on pointer arithmetic") in order to reject a corner case for sanitation when ptr / scalars are mixed in the same alu op.

Thanks!

Daniel Borkmann (2):
bpf: fix sanitation of alu op with pointer / scalar type from different paths
bpf: add various test cases for alu op on mixed dst register types

 include/linux/bpf_verifier.h                |   1 +
 kernel/bpf/verifier.c                       |  61 +++++++++++---
 tools/testing/selftests/bpf/test_verifier.c | 120 ++++++++++++++++++++++++++++
 3 files changed, 169 insertions(+), 13 deletions(-)
Signature · 1 line
2.9.5