A quick check shows this test was introduced in 544029862c
selftests/memfd: add tests for F_SEAL_FUTURE_WRITE seal [1]
As this issue does not exist in F-5.4, I think it might have something
to do with B-hwe-5.4.
Run `git grep F_SEAL_FUTURE_WRITE` in B-hwe-5.4 and Focal tree shows the
following is missing on the former:
include/linux/mm.h: * seal_check_future_write - Check for F_SEAL_FUTURE_WRITE
flag and handle it
include/linux/mm.h: * Check whether F_SEAL_FUTURE_WRITE is set; if so, do
proper check/handling on
include/linux/mm.h: if (seals & F_SEAL_FUTURE_WRITE) {
include/linux/mm.h: * Since an F_SEAL_FUTURE_WRITE sealed memfd
can be mapped as
Diff: https://pastebin.ubuntu.com/p/8k5djst6C3/
[1]
https://github.com/torvalds/linux/commit/544029862cbb1d7903e19f2e58f48d4884e1201b
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-hwe in Ubuntu.
https://bugs.launchpad.net/bugs/1926142
Title:
memfd from ubuntu_kernel_selftests failed to build on B-5.4
Status in ubuntu-kernel-tests:
New
Status in linux-hwe package in Ubuntu:
New
Status in linux-hwe-5.4 package in Ubuntu:
New
Status in linux-hwe source package in Bionic:
New
Status in linux-hwe-5.4 source package in Bionic:
New
Bug description:
Test build on B-5.4 (5.4.0-73.82~18.04.1) failed with:
error: ‘F_SEAL_FUTURE_WRITE’ undeclared
Build log:
$ sudo make TARGETS=memfd
make --no-builtin-rules ARCH=x86 -C ../../.. headers_install
make[1]: Entering directory
'/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
INSTALL ./usr/include
make[1]: Leaving directory
'/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
make[1]: Entering directory
'/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/memfd'
gcc -D_FILE_OFFSET_BITS=64 -I../../../../include/uapi/ -I../../../../include/
-I../../../../usr/include/ memfd_test.c common.o -o
/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/memfd/memfd_test
memfd_test.c: In function ‘test_seal_future_write’:
memfd_test.c:749:27: error: ‘F_SEAL_FUTURE_WRITE’ undeclared (first use in
this function); did you mean ‘F_SEAL_WRITE’?
mfd_assert_add_seals(fd, F_SEAL_FUTURE_WRITE);
^~~~~~~~~~~~~~~~~~~
F_SEAL_WRITE
memfd_test.c:749:27: note: each undeclared identifier is reported only once
for each function it appears in
../lib.mk:141: recipe for target
'/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/memfd/memfd_test'
failed
make[1]: ***
[/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/memfd/memfd_test]
Error 1
make[1]: Leaving directory
'/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/memfd'
Makefile:143: recipe for target 'all' failed
make: *** [all] Error 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1926142/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp