Skip to content

fix BPF backports

Frank van der Linden bpf stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: Fix backport of "bpf: restrict unknown scalars of mixed signed bounds for unprivileged"kernel/bpf/verifier.c+7 -70 replies
2/2bpf: fix up selftests after backports were fixedtools/testing/selftests/bpf/test_verifier.c+12 -00 replies

Reviews trailers per patch

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

PatchFrank van der LindenEthan ChenYonghong Song
1/2R-b R-b A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 4.14 0/2] fix BPF backports

These are the first two patches in https://lore.kernel.org/stable/[email protected]/

I will re-send the rest of that series as soon as the other bpf backports hit the 4.19 branch.

This fixes errors in earlier bpf 4.14 backports. The verifier fix was sent in earlier to bpf@ by Sam, and acked. I added the selftests fix.

Essentially, together with the previous backports that had errors, this produces correct backports of:

9d7eceede76 ("bpf: restrict unknown scalars of mixed signed bounds for unprivileged")
80c9b2fae87b ("bpf: add various test cases to selftests")

Commits:

<4.14 only> ("bpf: Fix backport of "bpf: restrict unknown scalars of mixed signed bounds for unprivileged")
This was sent in by Sam to bpf@ earlier, and acked by Yonghong Song,
https://lore.kernel.org/bpf/[email protected]/T/#u

I am including it so that it is 'formally' submitted it to -stable.

<4.14 only> ("bpf: fix up selftests after backports were fixed")
This is a follow-up to the previous by me, to fix selftests. It's from 80c9b2fae87b ("bpf: add various test cases to selftests"), but since that one was already partially added to the 4.14 branch in 03f11a51a196 ("bpf: Fix selftests are changes for CVE 2019-7308"), it's not a "backport" as such. To avoid confusion, I created a separate commit for it, referencing the original commit in the message. I examined each individual changed test, and went through the history to see that the error message was indeed as expected.