Kyle Evans
9a8d333368
libc: fix memfd_create's HUGETLB handling
...
The 'simplification' commit referenced below actually broke one aspect
of MFD_HUGETLB: the caller isn't supposed to be required to specify a
size. MFD_HUGETLB by itself without a shift mask just requests a large
page, so we revert that part of memfd_create() back.
While we're here, fix up the related parts of the manpages a little bit,
since MFD_HUGETLB is actually supported. The manpage claims that we
would return ENOSYS if forced mappings weren't supported, but this was
actually not true. However, that seems like a very important
distinction to make between ENOSYS and EOPNOTSUPP, so fix the
implementation to match the docs.
Fixes: 8b8cf4ece6 ("memfd_create: simplify HUGETLB support [...]")
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D56114
2026-04-08 21:37:11 -05:00
..
2025-11-05 21:16:32 +00:00
2026-02-09 11:26:52 -05:00
2026-01-13 10:19:04 -05:00
2025-12-29 14:20:52 +01:00
2025-12-28 20:50:42 +01:00
2024-07-15 16:43:39 -06:00
2025-07-07 06:49:02 +00:00
2024-07-15 16:43:39 -06:00
2026-02-13 13:40:57 +01:00
2026-02-04 21:54:45 -06:00
2024-07-15 16:43:39 -06:00
2024-07-15 16:43:39 -06:00
2026-01-06 04:28:43 +00:00
2026-01-06 04:28:43 +00:00
2024-07-15 16:43:39 -06:00
2025-10-12 16:28:20 +01:00
2025-11-03 21:18:46 +01:00
2025-09-30 11:31:12 +08:00
2025-09-30 09:14:58 +01:00
2025-07-25 13:10:17 -07:00
2025-10-09 22:35:54 -07:00
2026-04-08 21:37:11 -05:00
2024-11-12 12:11:51 -05:00
2024-11-08 17:45:31 +01:00
2024-11-12 12:11:51 -05:00
2024-07-15 16:43:39 -06:00
2025-06-05 21:28:38 -04:00
2024-10-03 14:49:23 -03:00
2025-12-10 10:57:45 +00:00
2024-10-14 10:26:17 -07:00
2025-04-24 16:36:40 +02:00
2025-09-04 14:53:02 +01:00
2024-07-15 16:43:39 -06:00
2025-05-04 13:48:32 +02:00
2025-08-23 01:57:23 +01:00
2025-12-25 19:02:40 +01:00
2025-04-11 09:53:50 -04:00
2025-01-01 15:11:06 -06:00
2026-02-24 20:58:59 -05:00
2024-07-15 16:43:39 -06:00
2025-01-29 10:03:59 -05:00
2024-07-15 16:43:39 -06:00
2026-02-05 15:39:34 +01:00
2024-11-14 06:14:05 +02:00
2024-07-15 16:43:39 -06:00
2025-10-26 02:26:06 +00:00
2025-11-25 11:17:25 -07:00
2024-07-15 16:43:39 -06:00
2025-08-23 01:57:23 +01:00
2024-07-15 16:43:39 -06:00
2026-01-14 17:07:56 +00:00
2026-04-02 08:19:49 +08:00
2026-02-21 02:18:18 +01:00
2025-10-03 19:47:52 +02:00
2024-09-21 05:25:15 -06:00
2025-04-11 09:53:50 -04:00
2026-04-08 16:31:55 +01:00
2026-01-03 21:37:18 +01:00
2025-09-03 21:01:05 +03:00
2024-07-15 16:43:39 -06:00
2026-01-22 10:36:37 -05:00
2025-08-29 17:39:39 +02:00
2024-07-12 06:29:31 +03:00
2024-10-14 10:26:17 -07:00
2026-02-28 19:11:10 +01:00
2026-02-23 23:58:45 -06:00
2024-07-15 16:43:39 -06:00
2026-01-06 12:56:50 -05:00
2025-09-09 17:56:49 +02:00
2024-07-15 16:43:39 -06:00
2024-07-15 16:43:39 -06:00
2025-04-16 10:09:18 -04:00
2026-03-31 18:45:14 -07:00
2025-10-26 02:26:06 +00:00
2026-02-09 11:26:29 -05:00
2024-07-15 16:43:39 -06:00
2025-08-16 21:07:57 +01:00
2025-10-02 02:37:35 +01:00
2024-07-15 16:43:39 -06:00
2026-03-02 14:13:47 -05:00
2026-02-25 23:41:08 -08:00
2024-10-14 10:26:17 -07:00
2026-02-12 10:01:57 -05:00
2025-08-25 10:33:32 +02:00
2025-04-24 16:36:40 +02:00
2025-10-03 19:46:55 +02:00
2025-07-30 11:11:38 +01:00
2026-01-20 18:47:16 -08:00
2025-12-16 12:43:17 -05:00
2026-03-15 00:41:29 -03:00
2026-02-16 13:42:50 +01:00
2026-03-25 15:24:18 -06:00
2025-08-23 01:57:23 +01:00
2025-11-24 10:47:10 -05:00
2025-11-24 10:47:10 -05:00
2025-10-26 02:26:06 +00:00
2025-08-08 13:27:26 -05:00
2026-03-25 18:11:54 -07:00
2025-08-15 17:59:18 +01:00
2024-10-08 16:13:39 -03:00
2025-12-18 17:19:42 -05:00
2024-07-30 12:16:36 -04:00
2025-10-02 02:37:35 +01:00
2024-12-01 20:39:52 -08:00
2025-09-30 09:14:51 +01:00
2025-11-26 21:18:23 -05:00
2025-08-23 01:57:23 +01:00
2024-07-15 16:43:39 -06:00
2025-08-23 01:57:23 +01:00
2025-08-23 01:57:23 +01:00
2024-07-15 16:43:39 -06:00
2024-10-14 10:26:17 -07:00
2024-11-12 12:11:51 -05:00
2024-07-15 16:43:39 -06:00
2025-09-30 09:15:04 +01:00
2025-09-30 09:14:38 +01:00
2026-04-08 21:37:11 -05:00
2026-04-03 08:52:29 +02:00
2025-10-26 02:26:06 +00:00
2025-08-23 01:57:23 +01:00
2026-01-25 17:54:08 +02:00
2024-07-30 12:16:36 -04:00
2024-07-15 16:43:39 -06:00
2026-02-21 19:14:01 -05:00
2024-07-15 16:43:39 -06:00
2024-11-12 12:11:51 -05:00
2025-10-23 12:03:29 -07:00
2026-02-16 09:14:05 +01:00
2026-03-03 16:51:02 -06:00
2025-08-26 16:44:38 -04:00
2025-12-02 05:41:13 +02:00
2024-10-15 17:18:14 -03:00
2025-12-17 15:08:32 +01:00
2025-10-26 02:26:06 +00:00
2025-10-26 02:26:06 +00:00
2025-09-30 09:14:05 +01:00
2025-06-26 09:02:31 +02:00
2026-01-06 04:26:53 +00:00
2026-03-13 23:49:53 +00:00
2026-04-08 14:22:45 -07:00
2026-04-08 17:32:00 +03:00
2026-01-15 07:28:28 +01:00
2025-10-26 02:26:06 +00:00
2025-12-03 14:21:07 +00:00
2024-07-15 16:43:39 -06:00
2026-01-30 18:25:02 +02:00
2026-04-07 21:01:57 -07:00