Re: [PATCH] man/man2/memfd_secret.2: tfix

Alejandro Colomar <[email protected]> Sat, 18 Jul 2026 14:08:50 +0200
Newsgroups org.kernel.vger.linux-man
Message-ID <altstsU94cjelV5C@devuan>
Hi Štěpán,

On 2026-07-13T14:11:11+0200, Štěpán Němec wrote:
> Fixes: ac5edfeb1dd6 (2021-08-27; "memfd_secret.2: New page describing memfd_secret() system call")
> Cc: Mike Rapoport <[email protected]>
> Signed-off-by: Štěpán Němec <[email protected]>
> ---
> On Fri, 10 Jul 2026 18:44:19 +0200
> Alejandro Colomar wrote:
> 
> > I think I'd fix this typo in a separate commit, since it's a meaningful
> > typo (both EMFILE and ENFILE exist, and they have a slightly different
> > meaning).
> >
> > In the fix, please include the following tags:
> >
> > 	Fixes: ac5edfeb1dd6 (2021-08-27; "memfd_secret.2: New page describing memfd_secret() system call")
> > 	Cc: Mike Rapoport <[email protected]>
> 
> Fair enough.
> 
> FWIW, out of abundance of caution (admittedly verging on paranoia), I
> did verify that unprivileged memfd_secret distinguished EMFILE and
> ENFILE as expected (brought about by setrlimit for the former and
> limiting fs.file-max for the latter in a VM running a recent alpine-edge
> image) before sending the original patch, but the hypothesis that this
> was anything other than a typo or a copy-paste error seemed too
> far-fetched to mention that.

Thanks!  I've applied the patch.


Have a lovely day!
Alex

> 
>  man/man2/memfd_secret.2 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man/man2/memfd_secret.2 b/man/man2/memfd_secret.2
> index 0ea4b8e93c37..4033adc75772 100644
> --- a/man/man2/memfd_secret.2
> +++ b/man/man2/memfd_secret.2
> @@ -119,7 +119,7 @@ .SH ERRORS
>  .B EMFILE
>  The per-process limit on the number of open file descriptors has been reached.
>  .TP
> -.B EMFILE
> +.B ENFILE
>  The system-wide limit on the total number of open files has been reached.
>  .TP
>  .B ENOMEM
> 
> -- 
> 2.55.0
> 
> 

-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmpbbNEACgkQ64mZXMKQ
wqmlJA//ddU9G2q6F71RpsqonnROvaTnqXkW3VIrT8C8AcPlFVpCnRWg3iNL5NjV
YxrAu9komQ/7+YFhz6TZC4cD0ydfEJb1SduS2Rq/jYL2lfdkcWu01SLV0lUWKazw
g72kB3saintRPH1gAa2gPO8TT9eDHy/VoSHsG+HSd12mtcQgFEhZItsxo8q/HEri
L+SjlP9lAJzPVW33BcJ6jg65awyDg2Hk/RdUlWxgIg81Rm+55PvEcFpiGfnUpqGh
6wD1aPN+dYg4+w3mKKN6KfkOJrMw1ZNzBFUw1IVbjmQTbQwTkePxw6bY+hkXwWGR
VSgUd6cL2XLATQJWJ4GtRZxyU8rYJtajRJqRgBnqQ444lVy+XjqamnLC7Vs7/PHZ
ukANL70Obr+VSxLqY/DSBOUNL8TCWDMO6e3nuRmJUgYn28utf0eE18lWsbRcEwew
0bIz+Veeab1gptpqYZitvUkXOA1SBLP1ltTfd52QLCK4arLgzNU1eTqglf3UX6I1
pyArDCqzpkSh7gg4ePhsmoQ1z+18lk/nMJQHqPdwPwHtuOH9P6obkDaTawItbtfL
SQEOw+GzfznP8SK0MIfgb1Bn5a3goO/ccIgjlWwI3NHaUAl0ZTn3F/jHyEzU/d8A
aMzaDHiJckNMvNeBBSgES3OAu3Wa34wqQdLjoXu/o877wkSa+Vo=
=ApXo
-----END PGP SIGNATURE-----