]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
test_bpf: flag tests that cannot be jited on s390
authorKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 10 Jul 2018 11:13:00 +0000 (13:13 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:30:51 +0000 (12:30 +0200)
commit3dfa1c904fcf138e64658c03f054ef102f52c6ec
tree3542c7baeadaba04ecac0c5ab1bdfe6db81e7388
parentff2912212b6bf504db960c33f98d2d2b83af28f5
test_bpf: flag tests that cannot be jited on s390

BugLink: https://bugs.launchpad.net/bugs/1753941
Flag with FLAG_EXPECTED_FAIL the BPF_MAXINSNS tests that cannot be jited
on s390 because they exceed BPF_SIZE_MAX and fail when
CONFIG_BPF_JIT_ALWAYS_ON is set. Also set .expected_errcode to -ENOTSUPP
so the tests pass in that case.

Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
(backported from commit 3203c9010060806ff88c9989aeab4dc8d9a474dc)
[ klebers: compile out for s390 also the testcases:
  - BPF_MAXINSNS: ld_abs+vlan_push/pop
  - BPF_MAXINSNS: jump around ld_abs ]
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
lib/test_bpf.c