Comment on "memfd: improve userspace warnings for missing exec-related flags"
From: Larry Finger
Date: Thu Aug 31 2023 - 16:56:48 EST
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