From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 630DEC83004 for ; Tue, 28 Apr 2020 19:45:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1EBCF21707 for ; Tue, 28 Apr 2020 19:45:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="tva7EJtJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1EBCF21707 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EA44C8E000F; Tue, 28 Apr 2020 15:45:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E5E9E8E000B; Tue, 28 Apr 2020 15:45:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D6B108E000F; Tue, 28 Apr 2020 15:45:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0183.hostedemail.com [216.40.44.183]) by kanga.kvack.org (Postfix) with ESMTP id BE7368E000B for ; Tue, 28 Apr 2020 15:45:06 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 7F64D52D1 for ; Tue, 28 Apr 2020 19:45:06 +0000 (UTC) X-FDA: 76758292212.15.magic74_f75e65034b0e X-HE-Tag: magic74_f75e65034b0e X-Filterd-Recvd-Size: 3750 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf12.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Apr 2020 19:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=n/mwyxuh6jEA/eyR9En+7lR2Ld3WWTxEHQLarZr3GYc=; b=tva7EJtJFel515fW/3FbcvC4rY BvyFUdgCP+lN/F5qXTHVweJ2W0ck56r0CArRjqfeVTPTZqOa5Xi40cdqtCIflTfxhH10QyzxZ7/TY ApbmnE+Tiw2yker64AMaa27S6DcIy+74W/CJ2z/BV5gbuRKrKqewE5TXckJODmT/OKpb2wYUBajij 7bRQkBThPrR00i8beic6xJZlczWpIGpA01ps4NVmE1uw1zeXFKOD5E2dRGWJ0YBZqQ9zhpDjSie/S HevTSyQulWZjBzfSlvsQvdui777JEaZD4KwGuNROpLfQtZESEHsqQThzu6W/Qh036Ry73tkytKM8o BXDI7ucw==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jTW9y-0005uN-SM; Tue, 28 Apr 2020 19:44:50 +0000 From: Matthew Wilcox To: linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Will Deacon , Catalin Marinas , Russell King , Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org Subject: [PATCH 0/7] Record the mm_struct in the page table pages Date: Tue, 28 Apr 2020 12:44:42 -0700 Message-Id: <20200428194449.22615-1-willy@infradead.org> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Matthew Wilcox (Oracle)" Pages which are in use as page tables have some space unused in struct page. It would be handy to have a pointer to the struct mm_struct that they belong to so that we can handle uncorrectable errors in page tables more gracefully. There are a few other things we could use it for too, such as checking that the page table entry actually belongs to the task we think it ought to. This patch series does none of that, but does lay the groundwork for it. Matthew Wilcox (Oracle) (7): mm: Document x86 uses a linked list of pgds mm: Move pt_mm within struct page arm: Thread mm_struct throughout page table allocation arm64: Thread mm_struct throughout page table allocation m68k: Thread mm_struct throughout page table allocation mm: Set pt_mm in PTE constructor mm: Set pt_mm in PMD constructor arch/arc/include/asm/pgalloc.h | 2 +- arch/arm/mm/mmu.c | 66 ++++++++--------- arch/arm64/include/asm/pgalloc.h | 2 +- arch/arm64/mm/mmu.c | 93 ++++++++++++------------ arch/m68k/include/asm/mcf_pgalloc.h | 2 +- arch/m68k/include/asm/motorola_pgalloc.h | 10 +-- arch/m68k/mm/motorola.c | 4 +- arch/openrisc/include/asm/pgalloc.h | 2 +- arch/powerpc/mm/book3s64/pgtable.c | 2 +- arch/powerpc/mm/pgtable-frag.c | 2 +- arch/s390/include/asm/pgalloc.h | 2 +- arch/s390/mm/pgalloc.c | 2 +- arch/sparc/mm/init_64.c | 2 +- arch/sparc/mm/srmmu.c | 2 +- arch/x86/include/asm/pgalloc.h | 2 +- arch/x86/mm/pgtable.c | 3 +- arch/xtensa/include/asm/pgalloc.h | 2 +- include/asm-generic/pgalloc.h | 2 +- include/linux/mm.h | 18 ++++- include/linux/mm_types.h | 12 +-- 20 files changed, 122 insertions(+), 110 deletions(-) base-commit: 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c --=20 2.26.2