[K/Unstable][SRU][PATCH 0/3] Fix test_bpf test on K-powerpc

Andrea Righi andrea.righi at canonical.com
Wed Jan 4 12:34:25 UTC 2023


On Wed, Jan 04, 2023 at 01:31:34PM +0100, Andrea Righi wrote:
> On Wed, Jan 04, 2023 at 07:43:28PM +0800, Po-Hsu Lin wrote:
> > [Impact]
> > The BPF_AND, BPF_OR, BPF_XOR, BPF_FETCH, BPF_XCHG and BPF_CMPXCHG
> > related tests will fail in the net:test_bpf test from
> > ubuntu_kernel_selftests as they are not supported.
> > 
> > Partial test output:
> >   test_bpf: #361 BPF_ATOMIC | BPF_W, BPF_AND: Test: 0x12 & 0xab = 0x02
> >   eBPF filter atomic op code c3 (@3) unsupported
> >   FAIL to select_runtime err=-524
> >   ...
> >   test_bpf: #365 BPF_ATOMIC | BPF_W, BPF_AND | BPF_FETCH: Test: 0x12 & 0xab = 0x02
> >   eBPF filter atomic op code c3 (@3) unsupported
> >   FAIL to select_runtime err=-524
> >   ...
> >   test_bpf: #377 BPF_ATOMIC | BPF_W, BPF_OR: Test: 0x12 | 0xab = 0xbb FAIL to select_runtime err=-524
> >   ...
> >   test_bpf: #393 BPF_ATOMIC | BPF_W, BPF_XOR: Test: 0x12 ^ 0xab = 0xb9 FAIL to select_runtime err=-524
> >   ...
> >   test_bpf: #409 BPF_ATOMIC | BPF_W, BPF_XCHG: Test: 0x12 xchg 0xab = 0xab
> >   eBPF filter atomic op code c3 (@3) unsupported
> >   FAIL to select_runtime err=-524
> >   ...
> >   test_bpf: #417 BPF_ATOMIC | BPF_W, BPF_CMPXCHG: Test successful return
> >   eBPF filter atomic op code c3 (@3) unsupported
> >   FAIL to select_runtime err=-524
> >   ...
> >   test_bpf: Summary: 894 PASSED, 132 FAILED, [882/882 JIT'ed]
> > 
> > Please find attachment for the complete test log.
> > 
> > [Fix]
> > * 6511270911 powerpc/bpf/64: add support for BPF_ATOMIC bitwise operations
> > * dbe6e2456f powerpc/bpf/64: add support for atomic fetch operations
> > * 1e82dfaa78 powerpc/bpf/64: Add instructions for atomic_[cmp]xchg
> > 
> > These patches can be cherry-picked into Kinetic kernel.
> 
> Target release should be Lunar right? linux-unstable moved to lunar a
> while ago.

Hm... both lunar:linux and lunar:linux-unstable have these commits
already applied, so it's not clear to me which is the target
kernel/release, maybe it's kinetic/linux?

-Andrea



More information about the kernel-team mailing list