mm-huge_memory-dont-force-huge-page-alignment-on-32-bit.patch removed from -mm tree
The quilt patch titled
Subject: mm: huge_memory: don't force huge page alignment on 32 bit
has been removed from the -mm tree. Its filename was
mm-huge_memory-dont-force-huge-page-alignment-on-32-bit.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Yang Shi <[email protected]>
Subject: mm: huge_memory: don't force huge page alignment on 32 bit
Date: Thu, 18 Jan 2024 10:05:05 -0800
commit efa7df3e3bb5 ("mm: align larger anonymous mappings on THP boundaries") caused two issues [1] [2] reported on 32 bit system or compat userspace.
It doesn't make too much sense to force huge page alignment on 32 bit system due to the constrained virtual address space.
[1] https://lore.kernel.org/linux-mm/[email protected]/
[2] https://lore.kernel.org/linux-mm/CAJuCfpHXLdQy1a2B6xN2d7quTYwg2OoZseYPZTRpU0eHHKD-sQ@mail.gmail.com/
---
mm/huge_memory.c | 4 ++++ 1 file changed, 4 insertions(+)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-huge_memory-dont-force-huge-page-alignment-on-32-bit +4 -0
@@ -37,6 +37,7 @@#include <linux/page_owner.h> #include <linux/sched/sysctl.h> #include <linux/memory-tiers.h> +#include <linux/compat.h> #include <asm/tlb.h> #include <asm/pgalloc.h>
@@ -811,6 +812,9 @@ static unsigned long __thp_get_unmapped_loff_t off_align =round_up (off, size);unsigned long len_pad, ret; +if (IS_ENABLED (CONFIG_32BIT ) ||in_compat_syscall ()) +return 0 ; +if (off_end <= off_align || (off_end - off_align) < size)return 0 ;
_
Patches currently in -mm which might be from [email protected] are
mm-mmap-no-need-to-call-khugepaged_enter_vma-for-stack.patch