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>
BPF_EXIT_INSN(),
},
.result = ACCEPT,
- .retval = 0,
},
{
"unpriv: partial copy of pointer",