test_072_strict_devmem from ubuntu_qrt_kernel_security failed to build on F-OEM-5.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QA Regression Testing |
Fix Released
|
Undecided
|
Unassigned | ||
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Unassigned | ||
linux-oem-5.6 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
=====
FAIL: test_072_
/dev/mem unreadable for kernel memory
-----
Traceback (most recent call last):
File "./test-
self.
File "/home/
self.
AssertionError: Got exit code 2, expected 0
Command: 'make'
Output:
cc -Wall -Werror -O2 readmem.c -o readmem -lcap
make -C signpost
make[1]: Entering directory '/home/
make -C /usr/src/
make[2]: Entering directory '/usr/src/
CC [M] /home/ubuntu/
/home/
/home/
101 | PROC_CREATE(entry, "signpost_virt", S_IRUGO, &signpost_
| ^~~~~~~
| |
| const struct file_operations *
/home/
78 | entry = proc_create(name, mode, NULL, func)
| ^~~~
In file included from /home/ubuntu/
./include/
64 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
| ^~~~~~~~~~~
/home/
107 | PROC_CREATE(entry, "signpost_phys", S_IRUGO, &signpost_
| ^~~~~~~
| |
| const struct file_operations *
/home/
78 | entry = proc_create(name, mode, NULL, func)
| ^~~~
In file included from /home/ubuntu/
./include/
64 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
| ^~~~~~~~~~~
/home/
113 | PROC_CREATE(entry, "signpost_value", S_IRUGO, &signpost_
| ^~~~~~~
| |
| const struct file_operations *
/home/
78 | entry = proc_create(name, mode, NULL, func)
| ^~~~
In file included from /home/ubuntu/
./include/
64 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/
make[2]: *** [Makefile:1695: /home/ubuntu/
make[2]: Leaving directory '/usr/src/
make[1]: *** [Makefile:4: all] Error 2
make[1]: Leaving directory '/home/
make: *** [Makefile:6: all] Error 2
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.6.0-1010-oem x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
Date: Mon May 18 14:47:03 2020
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: linux-signed-
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | linux-signed-oem-5.6 (Ubuntu) → linux-oem-5.6 (Ubuntu) |
tags: | added: sru-20200518 |
This issue ultimately has the same root cause as LP: #1880659, namely that in the 5.6 development cycle, the proc_fs infrastructure was modified to not use the generic file_operations struct and instead use a simplified procfs_ops struct (see d56c0d45f0e27 'proc: decouple proc from VFS with "struct proc_ops"'), which is why this test is failing.
This has been fixed in the qa-regression- testing tree in https:/ /git.launchpad. net/qa- regression- testing/ commit/ ?id=f815e50b3ff d0cacdca98dee62 d324ff1488bcb3
Thanks.