View previous topic :: View next topic |
Author |
Message |
sigra Tux's lil' helper
Joined: 03 Feb 2006 Posts: 137
|
Posted: Thu May 23, 2024 8:04 pm Post subject: dmesg complains about missing obscure flags for memfd_create |
|
|
Why does dmesg complain about missing obscure flags for memfd_create that are not even in the manual?
Code: | memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set |
Happens when starting sddm-greeter with 6.6.31-gentoo but not with 6.1.96-gentoo.
Executing man memfd_create shows that the function should only have the flags MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, MFD_HUGE_2MB and MFD_HUGE_1GB.
Installed version of sys-apps/man-pages is 6.06 and portage has no newer version except 9999.
See also: https://lwn.net/Articles/918106/ |
|
Back to top |
|
|
salahx Guru
Joined: 12 Mar 2005 Posts: 556
|
Posted: Thu May 23, 2024 10:14 pm Post subject: |
|
|
This is intentional. The original memfd_create syscall created executable memory by default, rather than make the caller opt in.
See https://lore.kernel.org/lkml/20221207154939.2532830-1-jeffxu@google.com/ for the use of these flags.
You can safely ignore it if you are not a developer maintaining a program that uses memfd_create. |
|
Back to top |
|
|
|