Skip to contentSkip to conversation

Comment on "memfd: improve userspace warnings for missing exec-related flags"

DISCUSSION Larry Finger 1 participant 1 message Aug 31, 2023

lore
Share & tools
lore
#0 lore raw

Aleksa,

In commit 434ed3350f57 ("memfd: improve userspace warnings for missing exec-related flags"), your changing of pr_warn_once() to pr_info_ratelimited() was justified as it would "... incentivise userspace to switch to passing MFD_EXEC and MFD_NOEXEC_SEAL, we need to provide a warning on each attempt to call memfd_create() without the new flags."

It would be easier to get userspace to implement these flags if they were documented somewhere other than the kernel source. The man page for memfd_create() does not mention them at all.

Larry