lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <99dee8e1-dacc-d4d7-2270-dd473b022b74@oracle.com> Date: Thu, 11 Feb 2021 15:59:09 -0800 From: Mike Kravetz <mike.kravetz@...cle.com> To: Axel Rasmussen <axelrasmussen@...gle.com>, Alexander Viro <viro@...iv.linux.org.uk>, Alexey Dobriyan <adobriyan@...il.com>, Andrea Arcangeli <aarcange@...hat.com>, Andrew Morton <akpm@...ux-foundation.org>, Anshuman Khandual <anshuman.khandual@....com>, Catalin Marinas <catalin.marinas@....com>, Chinwen Chang <chinwen.chang@...iatek.com>, Huang Ying <ying.huang@...el.com>, Ingo Molnar <mingo@...hat.com>, Jann Horn <jannh@...gle.com>, Jerome Glisse <jglisse@...hat.com>, Lokesh Gidra <lokeshgidra@...gle.com>, "Matthew Wilcox (Oracle)" <willy@...radead.org>, Michael Ellerman <mpe@...erman.id.au>, Michal Koutný <mkoutny@...e.com>, Michel Lespinasse <walken@...gle.com>, Mike Rapoport <rppt@...ux.vnet.ibm.com>, Nicholas Piggin <npiggin@...il.com>, Peter Xu <peterx@...hat.com>, Shaohua Li <shli@...com>, Shawn Anastasio <shawn@...stas.io>, Steven Rostedt <rostedt@...dmis.org>, Steven Price <steven.price@....com>, Vlastimil Babka <vbabka@...e.cz> Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org, linux-mm@...ck.org, Adam Ruprecht <ruprecht@...gle.com>, Cannon Matthews <cannonmatthews@...gle.com>, "Dr . David Alan Gilbert" <dgilbert@...hat.com>, David Rientjes <rientjes@...gle.com>, Mina Almasry <almasrymina@...gle.com>, Oliver Upton <oupton@...gle.com> Subject: Re: [PATCH v5 01/10] hugetlb: Pass vma into huge_pte_alloc() and huge_pmd_share() On 2/10/21 1:21 PM, Axel Rasmussen wrote: > From: Peter Xu <peterx@...hat.com> > > It is a preparation work to be able to behave differently in the per > architecture huge_pte_alloc() according to different VMA attributes. > > Pass it deeper into huge_pmd_share() so that we can avoid the find_vma() call. > > Suggested-by: Mike Kravetz <mike.kravetz@...cle.com> > Signed-off-by: Peter Xu <peterx@...hat.com> > Signed-off-by: Axel Rasmussen <axelrasmussen@...gle.com> > --- > arch/arm64/mm/hugetlbpage.c | 4 ++-- > arch/ia64/mm/hugetlbpage.c | 3 ++- > arch/mips/mm/hugetlbpage.c | 4 ++-- > arch/parisc/mm/hugetlbpage.c | 2 +- > arch/powerpc/mm/hugetlbpage.c | 3 ++- > arch/s390/mm/hugetlbpage.c | 2 +- > arch/sh/mm/hugetlbpage.c | 2 +- > arch/sparc/mm/hugetlbpage.c | 6 +----- > include/linux/hugetlb.h | 5 +++-- > mm/hugetlb.c | 15 ++++++++------- > mm/userfaultfd.c | 2 +- > 11 files changed, 24 insertions(+), 24 deletions(-) Thanks, this will be needed for multiple features where pmd sharing must be disabled. And, the need to disable sharing is based on information in the vma. Reviewed-by: Mike Kravetz <mike.kravetz@...cle.com> -- Mike Kravetz
Powered by blists - more mailing lists