]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
UBUNTU: SAUCE: Fix "bpf: relax verifier restriction on BPF_MOV | BPF_ALU"
authorKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 22 Aug 2019 15:32:00 +0000 (17:32 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 22 Aug 2019 16:29:56 +0000 (18:29 +0200)
BugLink: https://bugs.launchpad.net/bugs/1840935
Commit a25d38b54163 (bpf: relax verifier restriction on BPF_MOV |
BPF_ALU), upstream commit e434b8cdf788568ba65a0a0fd9f3cb41f3ca1803,
breaks the compilation of bpf selftests because Bionic misses
111e6b45315c (selftests/bpf: make test_verifier run most programs),
which adds the 'retval' member to struct bpf_test.

Fix it by removing the setting of '.retval = 0', which isn't needed for
the current code in Bionic.

Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Acked-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tools/testing/selftests/bpf/test_verifier.c

index 5a25a4d7d81fe3b1df59056807e763bafd6e7a36..95e9e751862a93d5f267e0838e41e8ac82d48917 100644 (file)
@@ -2170,7 +2170,6 @@ static struct bpf_test tests[] = {
                        BPF_EXIT_INSN(),
                },
                .result = ACCEPT,
-               .retval = 0,
        },
        {
                "unpriv: partial copy of pointer",