So, test_bpf is not doing either conversion and any other use on the
kernel should either be using something like sk_attach*,
bpf_prog_create*, or just using a fd that was created from
BPF_PROG_LOAD. Any user that accepts BPF programs without those checks
are up to cause issues worse than a simple div-by-zero.

So far, I could not find any such user by code inspection.

I also tested that a SO_ATTACH_FILTER (classic BPF) that does a div-by-
zero behaves the same way on 4.15.0-145, 4.15.0-147 and 4.15.0-149, that
is, the program will have an "exception", which means it returns 0. With
sockets, this means the packet is dropped. That is expected behavior.

Marking this bug priority as low as a result.
Cascardo.

** Changed in: linux (Ubuntu Bionic)
   Importance: Undecided => Low

-- 
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

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/+source/linux/+bug/1934414/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to