As Thadeu mentioned, this happens because the test_bpf module doesn't go
through the verifier causing the failure when the code is not jitted.
Upstream fixed the testcase with 21ccaf21497b (bpf: add further test
cases around div/mod and others) by replacing "INT: DIV by zero" by
"INT: DIV by -1" on test_bpf and moving/adding the div by zero tests to
tools/testing/selftests/bpf/test_verifier.c.

Changing the div test from zero to -1 in bionic is trivial, however this
would leave the zero case uncovered. Making the proper fix would require
backporting 21ccaf21497b, which in turn would need at least 87c1793b1b7f
(bpf: add couple of test cases for div/mod by zero) and 111e6b45315c
(selftests/bpf: make test_verifier run most programs) but possibly many
others.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1934414

Title:
  test_bpf.sh from ubuntu_kernel_selftests.net from linux ADT test
  failure with linux/4.15.0-149.153 i386 (Segmentation fault)

Status in ubuntu-kernel-tests:
  New
Status in linux package in Ubuntu:
  Invalid
Status in linux source package in Bionic:
  In Progress

Bug description:
  This is a scripted bug report about ADT failures while running linux
  tests for linux/4.15.0-149.153 on bionic. Whether this is caused by
  the dep8 tests of the tested source or the kernel has yet to be
  determined.

  Testing failed on:
      i386: 
https://autopkgtest.ubuntu.com/results/autopkgtest-bionic/bionic/i386/l/linux/20210702_010055_445cd@/log.gz

  
  03:37:02 DEBUG| [stdout] selftests: test_bpf.sh
  03:37:02 DEBUG| [stdout] ========================================
  03:37:03 ERROR| [stderr] Segmentation fault
  03:37:03 DEBUG| [stdout] test_bpf: [FAIL]
  03:37:03 DEBUG| [stdout] not ok 1..8 selftests:  test_bpf.sh [FAIL]
  03:37:03 DEBUG| [stdout] selftests: netdevice.sh
  03:37:03 DEBUG| [stdout] ========================================

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1934414/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to