Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dmesg complains about missing obscure flags for memfd_create
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sigra
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2006
Posts: 137

PostPosted: Thu May 23, 2024 8:04 pm    Post subject: dmesg complains about missing obscure flags for memfd_create Reply with quote

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
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 556

PostPosted: Thu May 23, 2024 10:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum