From: Greg Kroah-Hartman Date: Mon, 26 Jul 2021 07:47:59 +0000 (+0200) Subject: 4.9-stable patches X-Git-Tag: v4.4.277~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13bbc8eabebd6cdcd893522e190202e200ae72b8;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: revert-mips-add-pmd-table-accounting-into-mips-pmd_alloc_one.patch --- diff --git a/queue-4.9/revert-mips-add-pmd-table-accounting-into-mips-pmd_alloc_one.patch b/queue-4.9/revert-mips-add-pmd-table-accounting-into-mips-pmd_alloc_one.patch new file mode 100644 index 00000000000..ad40c19de81 --- /dev/null +++ b/queue-4.9/revert-mips-add-pmd-table-accounting-into-mips-pmd_alloc_one.patch @@ -0,0 +1,44 @@ +From huangpei@loongson.cn Mon Jul 26 09:44:23 2021 +From: Huang Pei +Date: Mon, 26 Jul 2021 15:26:42 +0800 +Subject: [PATCH] Revert "MIPS: add PMD table accounting into MIPS'pmd_alloc_one" +To: Thomas Bogendoerfer , ambrosehua@gmail.com +Cc: Bibo Mao , stable@vger.kernel.org, Greg Kroah-Hartman , Jiaxun Yang , Li Xuefeng , Yang Tiezhu , Gao Juxin , Huacai Chen , Jinyang He +Message-ID: <20210726072642.551510-2-huangpei@loongson.cn> + +From: Huang Pei + +This reverts commit fc5705b28e51f61c5549679fe6b433dc9471cffc which is +commit ed914d48b6a1040d1039d371b56273d422c0081e upstream. + +Commit b2b29d6d011944 (mm: account PMD tables like PTE tables) is +introduced between v5.9 and v5.10, so this fix (commit 002d8b395fa1) +should NOT apply to any pre-5.10 branch. + +Signed-off-by: Huang Pei +Signed-off-by: Greg Kroah-Hartman +--- + arch/mips/include/asm/pgalloc.h | 10 +++------- + 1 file changed, 3 insertions(+), 7 deletions(-) + +--- a/arch/mips/include/asm/pgalloc.h ++++ b/arch/mips/include/asm/pgalloc.h +@@ -107,15 +107,11 @@ do { \ + + static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) + { +- pmd_t *pmd = NULL; +- struct page *pg; ++ pmd_t *pmd; + +- pg = alloc_pages(GFP_KERNEL | __GFP_ACCOUNT, PMD_ORDER); +- if (pg) { +- pgtable_pmd_page_ctor(pg); +- pmd = (pmd_t *)page_address(pg); ++ pmd = (pmd_t *) __get_free_pages(GFP_KERNEL, PMD_ORDER); ++ if (pmd) + pmd_init((unsigned long)pmd, (unsigned long)invalid_pte_table); +- } + return pmd; + } + diff --git a/queue-4.9/series b/queue-4.9/series index 5c53c643e9b..d8a2729a339 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -40,3 +40,4 @@ scsi-iscsi-fix-iface-sysfs-attr-detection.patch scsi-target-fix-protect-handling-in-write-same-32.patch revert-usb-quirks-ignore-remote-wake-up-on-fibocom-l.patch proc-avoid-mixing-integer-types-in-mem_rw.patch +revert-mips-add-pmd-table-accounting-into-mips-pmd_alloc_one.patch