2021-10-22 00:05:34 |
Kelsey Steele |
bug |
|
|
added bug |
2021-10-22 00:05:36 |
Kelsey Steele |
tags |
|
kernel-adt-failure |
|
2021-10-22 00:07:38 |
Kelsey Steele |
tags |
kernel-adt-failure |
focal kernel-adt-failure |
|
2021-10-22 00:08:55 |
Kelsey Steele |
description |
This is a scripted bug report about ADT failures while running linux tests for linux/5.4.0-90.101 on focal. Whether this is caused by the dep8 tests of the tested source or the kernel has yet to be determined.
Testing failed on:
ppc64el: https://autopkgtest.ubuntu.com/results/autopkgtest-focal/focal/ppc64el/l/linux/20211021_141544_eda49@/log.gz |
This is a scripted bug report about ADT failures while running linux tests for linux/5.4.0-90.101 on focal. Whether this is caused by the dep8 tests of the tested source or the kernel has yet to be determined.
Consistently failing on Focal/linux 5.4.0-90.101
13:15:26 DEBUG| [stdout] # selftests: net: test_bpf.sh
13:15:27 DEBUG| [stdout] # test_bpf: [FAIL]
13:15:27 DEBUG| [stdout] not ok 9 selftests: net: test_bpf.sh # exit=1
Testing failed on:
ppc64el: https://autopkgtest.ubuntu.com/results/autopkgtest-focal/focal/ppc64el/l/linux/20211021_141544_eda49@/log.gz |
|
2021-10-22 00:09:22 |
Kelsey Steele |
summary |
linux ADT test failure with linux/5.4.0-90.101 |
linux ADT test_bpf failure with linux/5.4.0-90.101 |
|
2021-10-22 00:30:09 |
Ubuntu Kernel Bot |
linux (Ubuntu): status |
New |
Incomplete |
|
2021-10-22 08:19:43 |
Po-Hsu Lin |
nominated for series |
|
Ubuntu Focal |
|
2021-10-22 08:19:43 |
Po-Hsu Lin |
bug task added |
|
linux (Ubuntu Focal) |
|
2021-10-22 12:01:46 |
Po-Hsu Lin |
bug |
|
|
added subscriber Po-Hsu Lin |
2021-10-22 14:29:32 |
Thadeu Lima de Souza Cascardo |
nominated for series |
|
Ubuntu Bionic |
|
2021-10-22 14:29:32 |
Thadeu Lima de Souza Cascardo |
bug task added |
|
linux (Ubuntu Bionic) |
|
2021-10-22 14:29:40 |
Thadeu Lima de Souza Cascardo |
linux (Ubuntu Bionic): status |
New |
In Progress |
|
2021-10-22 14:29:44 |
Thadeu Lima de Souza Cascardo |
linux (Ubuntu Focal): status |
New |
In Progress |
|
2021-10-22 14:29:46 |
Thadeu Lima de Souza Cascardo |
linux (Ubuntu Bionic): assignee |
|
Thadeu Lima de Souza Cascardo (cascardo) |
|
2021-10-22 14:29:48 |
Thadeu Lima de Souza Cascardo |
linux (Ubuntu Focal): assignee |
|
Thadeu Lima de Souza Cascardo (cascardo) |
|
2021-10-22 14:29:51 |
Thadeu Lima de Souza Cascardo |
linux (Ubuntu Focal): importance |
Undecided |
Medium |
|
2021-10-22 14:29:54 |
Thadeu Lima de Souza Cascardo |
linux (Ubuntu Bionic): importance |
Undecided |
Medium |
|
2021-10-22 15:23:47 |
Thadeu Lima de Souza Cascardo |
summary |
linux ADT test_bpf failure with linux/5.4.0-90.101 |
ppc64 BPF JIT mod by 1 will not return 0 |
|
2021-10-22 16:54:43 |
Thadeu Lima de Souza Cascardo |
nominated for series |
|
Ubuntu Hirsute |
|
2021-10-22 16:54:43 |
Thadeu Lima de Souza Cascardo |
bug task added |
|
linux (Ubuntu Hirsute) |
|
2021-10-22 21:00:26 |
Thadeu Lima de Souza Cascardo |
description |
This is a scripted bug report about ADT failures while running linux tests for linux/5.4.0-90.101 on focal. Whether this is caused by the dep8 tests of the tested source or the kernel has yet to be determined.
Consistently failing on Focal/linux 5.4.0-90.101
13:15:26 DEBUG| [stdout] # selftests: net: test_bpf.sh
13:15:27 DEBUG| [stdout] # test_bpf: [FAIL]
13:15:27 DEBUG| [stdout] not ok 9 selftests: net: test_bpf.sh # exit=1
Testing failed on:
ppc64el: https://autopkgtest.ubuntu.com/results/autopkgtest-focal/focal/ppc64el/l/linux/20211021_141544_eda49@/log.gz |
[Impact]
When doing MOD by 1 with a immediate/constant divisor on PPC, the JIT will produce code that returns the dividend, just like a division, instead of 0.
Both eBPF and cBPF will fail as well when doing such operations.
[Test case]
$ cat bpf-mod1.c
#include <linux/bpf.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/socket.h>
#include <stdio.h>
#include <sys/prctl.h>
#include <stdlib.h>
#include <errno.h>
#include <limits.h>
#include <err.h>
#include <string.h>
#include <linux/filter.h>
#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
static int pair[2];
static int attach()
{
int r;
struct sock_filter insn[] = {
{ BPF_LD | BPF_W | BPF_ABS, 0, 0, 0 },
{ BPF_ALU | BPF_MOD, 0, 0, 1 },
{ BPF_RET | BPF_A, 0, 0, 0 },
};
struct sock_fprog prog = {};
prog.filter = insn;
prog.len = ARRAY_SIZE(insn);
socketpair(AF_UNIX, SOCK_DGRAM, 0, pair);
setsockopt(pair[1], SOL_SOCKET, SO_ATTACH_FILTER, &prog, sizeof(prog));
return 0;
}
int main(int argc, char **argv)
{
int buf[5];
int r;
r = attach();
if (r < 0) {
err(1, "function will error out already");
}
write(pair[0], "hello", 5);
r = recv(pair[1], buf, 5, MSG_DONTWAIT);
if (r != -1 || errno != EAGAIN) {
err(1, "program failed");
}
return 0;
}
$ gcc -o bpf-mod1 bpf-mod1.c
$ ./bpf-mod1
cbpf-mod1: program failed: Success
After fix:
$ ./bpf-mod1
$ echo $?
0
[Potential regression]
BPF programs might be misbehave on ppc64el.
========================================================
This is a scripted bug report about ADT failures while running linux tests for linux/5.4.0-90.101 on focal. Whether this is caused by the dep8 tests of the tested source or the kernel has yet to be determined.
Consistently failing on Focal/linux 5.4.0-90.101
13:15:26 DEBUG| [stdout] # selftests: net: test_bpf.sh
13:15:27 DEBUG| [stdout] # test_bpf: [FAIL]
13:15:27 DEBUG| [stdout] not ok 9 selftests: net: test_bpf.sh # exit=1
Testing failed on:
ppc64el: https://autopkgtest.ubuntu.com/results/autopkgtest-focal/focal/ppc64el/l/linux/20211021_141544_eda49@/log.gz |
|
2021-10-25 08:45:24 |
Stefan Bader |
linux (Ubuntu Hirsute): importance |
Undecided |
Medium |
|
2021-10-25 08:45:24 |
Stefan Bader |
linux (Ubuntu Hirsute): status |
New |
In Progress |
|
2021-10-25 08:47:28 |
Stefan Bader |
nominated for series |
|
Ubuntu Impish |
|
2021-10-25 08:47:28 |
Stefan Bader |
bug task added |
|
linux (Ubuntu Impish) |
|
2021-10-25 08:47:45 |
Stefan Bader |
linux (Ubuntu Impish): importance |
Undecided |
Medium |
|
2021-10-25 08:47:45 |
Stefan Bader |
linux (Ubuntu Impish): status |
New |
In Progress |
|
2021-11-04 16:19:45 |
Kleber Sacilotto de Souza |
linux (Ubuntu Bionic): status |
In Progress |
Fix Committed |
|
2021-11-04 16:19:48 |
Kleber Sacilotto de Souza |
linux (Ubuntu Focal): status |
In Progress |
Fix Committed |
|
2021-11-04 16:20:46 |
Kleber Sacilotto de Souza |
linux (Ubuntu Hirsute): status |
In Progress |
Fix Committed |
|
2021-11-04 16:20:48 |
Kleber Sacilotto de Souza |
linux (Ubuntu Impish): status |
In Progress |
Fix Committed |
|
2021-11-09 12:37:38 |
Ubuntu Kernel Bot |
tags |
focal kernel-adt-failure |
focal kernel-adt-failure verification-needed-impish |
|
2021-11-09 12:39:43 |
Ubuntu Kernel Bot |
tags |
focal kernel-adt-failure verification-needed-impish |
focal kernel-adt-failure verification-needed-hirsute verification-needed-impish |
|
2021-11-09 12:42:49 |
Ubuntu Kernel Bot |
tags |
focal kernel-adt-failure verification-needed-hirsute verification-needed-impish |
focal kernel-adt-failure verification-needed-focal verification-needed-hirsute verification-needed-impish |
|
2021-11-09 12:46:02 |
Ubuntu Kernel Bot |
tags |
focal kernel-adt-failure verification-needed-focal verification-needed-hirsute verification-needed-impish |
focal kernel-adt-failure verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-impish |
|
2021-11-23 16:06:14 |
Stefan Bader |
tags |
focal kernel-adt-failure verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-impish |
focal kernel-adt-failure verification-done-hirsute verification-needed-bionic verification-needed-focal verification-needed-impish |
|
2021-11-24 16:35:14 |
Kleber Sacilotto de Souza |
tags |
focal kernel-adt-failure verification-done-hirsute verification-needed-bionic verification-needed-focal verification-needed-impish |
focal kernel-adt-failure verification-done-bionic verification-done-hirsute verification-needed-focal verification-needed-impish |
|
2021-11-25 01:32:30 |
Kelsey Steele |
tags |
focal kernel-adt-failure verification-done-bionic verification-done-hirsute verification-needed-focal verification-needed-impish |
focal kernel-adt-failure verification-done-bionic verification-done-focal verification-done-hirsute verification-done-impish |
|
2021-11-29 14:48:38 |
Launchpad Janitor |
linux (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2021-11-29 14:52:06 |
Launchpad Janitor |
linux (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2021-11-29 14:57:38 |
Launchpad Janitor |
linux (Ubuntu Hirsute): status |
Fix Committed |
Fix Released |
|
2021-11-29 14:57:38 |
Launchpad Janitor |
cve linked |
|
2021-3744 |
|
2021-11-29 14:57:38 |
Launchpad Janitor |
cve linked |
|
2021-3764 |
|
2021-11-29 14:59:48 |
Launchpad Janitor |
linux (Ubuntu Impish): status |
Fix Committed |
Fix Released |
|
2021-11-30 09:26:36 |
Po-Hsu Lin |
linux (Ubuntu): status |
Incomplete |
Fix Released |
|