commit: d9c8947f54fabbccc95968fa207c21e8843cb4f6 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Fri Feb 23 13:28:43 2024 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Fri Feb 23 13:28:43 2024 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d9c8947f
Remove redundant patch Removed: 1800_mm-32-bit-huge-page-alignment-fix.patch Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> 0000_README | 4 -- 1800_mm-32-bit-huge-page-alignment-fix.patch | 57 ---------------------------- 2 files changed, 61 deletions(-) diff --git a/0000_README b/0000_README index 4a76a3a5..879736ee 100644 --- a/0000_README +++ b/0000_README @@ -79,10 +79,6 @@ Patch: 1730_parisc-Disable-prctl.patch From: https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git Desc: prctl: Temporarily disable prctl(PR_SET_MDWE) on parisc -Patch: 1800_mm-32-bit-huge-page-alignment-fix.patch -From: https://lore.kernel.org/all/[email protected]/T/ -Desc: mm: huge_memory: don't force huge page alignment on 32 bit - Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/[email protected]/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 diff --git a/1800_mm-32-bit-huge-page-alignment-fix.patch b/1800_mm-32-bit-huge-page-alignment-fix.patch deleted file mode 100644 index 5ad5d49b..00000000 --- a/1800_mm-32-bit-huge-page-alignment-fix.patch +++ /dev/null @@ -1,57 +0,0 @@ -From: Yang Shi @ 2024-01-18 13:35 UTC (permalink / raw) - To: jirislaby, surenb, riel, willy, cl, akpm; +Cc: yang, linux-mm, linux-kernel - -From: Yang Shi <[email protected]> - -The 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/cahblzkqa1scba10yjwtta2mkcsok5+m1bthsdl8rovuq2xx...@mail.gmail.com/T/#mf211643a0427f8d6495b5b53f8132f453d60ab95 -[2] https://lore.kernel.org/linux-mm/cahblzkqa1scba10yjwtta2mkcsok5+m1bthsdl8rovuq2xx...@mail.gmail.com/T/#me93dff2ccbd9902c3e395e1c022fb454e48ecb1d - -Fixes: efa7df3e3bb5 ("mm: align larger anonymous mappings on THP boundaries") -Reported-by: Jiri Slaby <[email protected]> -Reported-by: Suren Baghdasaryan <[email protected]> -Tested-by: Jiri Slaby <[email protected]> -Tested-by: Suren Baghdasaryan <[email protected]> -Cc: Rik van Riel <[email protected]> -Cc: Matthew Wilcox <[email protected]> -Cc: Christopher Lameter <[email protected]> -Signed-off-by: Yang Shi <[email protected]> ---- - mm/huge_memory.c | 9 +++++++++ - 1 file changed, 9 insertions(+) - -diff --git a/mm/huge_memory.c b/mm/huge_memory.c -index 94ef5c02b459..e9fbaccbe0c0 100644 ---- a/mm/huge_memory.c -+++ b/mm/huge_memory.c -@@ -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,14 @@ static unsigned long __thp_get_unmapped_area(struct file *filp, - loff_t off_align = round_up(off, size); - unsigned long len_pad, ret; - -+ /* -+ * It doesn't make too much sense to froce huge page alignment on -+ * 32 bit system or compat userspace due to the contrained virtual -+ * address space and address entropy. -+ */ -+ if (IS_ENABLED(CONFIG_32BIT) || in_compat_syscall()) -+ return 0; -+ - if (off_end <= off_align || (off_end - off_align) < size) - return 0; - --- -2.41.0
