memfd from ubuntu_kernel_selftests failed to build on B-5.4 (unknown type name ‘__u64’)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Luke Nowakowski-Krijger | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
linux-hwe-5.4 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
BugLink: https:/
There are build issues in selftests/
defined. This is issue is probably due to the fact that in 5.4 there is
a type include in one of the includes in the file, however this include
probably was not there for 4.15. Regardless we fix this by including the
type file directly.
[Fix]
* selftests/memfd: fix __u64 not defined build issue
Add #include <asm/types.h> to define the type
[Test Plan]
Recompile tests to make sure they build and tests pass.
[Where problems could occur]
Should be no problems since we are adding an include file that userspace
files always have access to.
-------
Failed to build on B/linux-hwe-5.4 5.4.0-85.
I am working on a fix for it right now.
13203 fuse_test.c:63:8: error: unknown type name ‘__u64’
13204 static __u64 mfd_assert_
13205 ^~~~~
13206 fuse_test.c:76:42: error: unknown type name ‘__u64’; did you mean ‘__f64’?
13207 static void mfd_assert_
13208 ^~~~~
13209 __f64
13210 fuse_test.c:88:42: error: unknown type name ‘__u64’; did you mean ‘__f64’?
13211 static void mfd_assert_
13212 ^~~~~
13213 __f64
13214 fuse_test.c:102:39: error: unknown type name ‘__u64’; did you mean ‘__f64’?
13215 static int mfd_busy_
13216 ^~~~~
13217 __f64
13218 fuse_test.c: In function ‘sealing_
13219 fuse_test.c:185:6: warning: implicit declaration of function ‘mfd_busy_
13220 r = mfd_busy_
13221 ^~~~~~~~~~~~~~~~~~
13222 mfd_assert_
13223 fuse_test.c:193:3: warning: implicit declaration of function ‘mfd_assert_
13224 mfd_assert_
13225 ^~~~~~~
13226 mfd_assert_
13227 fuse_test.c: In function ‘main’:
13228 fuse_test.c:302:2: warning: implicit declaration of function ‘mfd_assert_
13229 mfd_assert_
13230 ^~~~~~~
13231 mfd_assert_
13232 make[1]: *** [/home/
13233 make: *** [all] Error 2
CVE References
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Luke Nowakowski-Krijger (lukenow) |
description: | updated |
Changed in linux (Ubuntu Focal): | |
status: | New → In Progress |
Changed in linux (Ubuntu): | |
status: | Incomplete → Fix Released |
Changed in linux-hwe-5.4 (Ubuntu Focal): | |
status: | New → Invalid |
Changed in linux-hwe-5.4 (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in linux (Ubuntu Bionic): | |
status: | New → Invalid |
Changed in linux-hwe-5.4 (Ubuntu): | |
status: | New → Invalid |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-focal removed: verification-needed-focal |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1944613
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.