test_120_smep_works from ubuntu_qrt_kernel_security fail 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
Issue found on Focal 5.6.0-1011-oem, this failure can only be reproduce on node kili, with reproduce rate 2 out of 2 attempts. Skipped on the other 2 nodes (rizzo and onibi)
=====
FAIL: test_120_smep_works (__main_
SMEP works
-----
Traceback (most recent call last):
File "./test-
self.
File "/home/
self.
AssertionError: Got exit code 2, expected 0
Command: 'make'
Output:
make -C execuser
make[1]: Entering directory '/home/
make -C /usr/src/
make[2]: Entering directory '/usr/src/
CC [M] /home/ubuntu/
/home/
/home/
80 | PROC_CREATE(entry, "execuser_mapped", S_IRUGO, &execuser_
| ^~~~~~~
| |
| const struct file_operations *
/home/
64 | 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/
86 | PROC_CREATE(entry, "execuser_
| ^~~~~~~
| |
| const struct file_operations *
/home/
64 | 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:1703: /home/ubuntu/
make[2]: Leaving directory '/usr/src/
make[1]: *** [Makefile:4: all] Error 2
make[1]: Leaving directory '/home/
make: *** [Makefile:4: all] Error 2
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.6.0-1011-oem x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
Date: Tue May 26 07:41:19 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)
tags: | added: kqa-blocker |
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.
I've fixed this in QRT with some compatibility definitions in https:/ /git.launchpad. net/qa- regression- testing/ commit/ ?id=f815e50b3ff d0cacdca98dee62 d324ff1488bcb3