Re: [PATCH v5] binfmt_elf: Align eligible read-only PT_LOAD segments to PMD_SIZE for THP

From: Usama Arif

Date: Sun Mar 15 2026 - 09:12:24 EST




On 15/03/2026 06:46, Lance Yang wrote:
> Hi Rui,
>
> CC Baolin and Usama
>
> It would be better to keep earlier CC list across revisions, especially
> for people who have already reviewed or were explicitly include before.
> Otherwise, they may simply never see subsequent revisions, and from
> their side the discussion just stops there ...
>
> Thanks,
> Lance
>
Thanks! Also adding Ryan who did the exec_folio_order() work for ARM,
and also raised good concerns in [1]

The problem is not just alignment for elf, we need to fix more things like
mmap heuristics [2] and how unmapped areas are gotten [3].

[1] https://lore.kernel.org/all/cfdfca9c-4752-4037-a289-03e6e7a00d47@xxxxxxx/
[2] https://lore.kernel.org/all/20260310145406.3073394-3-usama.arif@xxxxxxxxx/
[3] https://lore.kernel.org/all/20260310145406.3073394-5-usama.arif@xxxxxxxxx/