Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4518182ybz; Tue, 28 Apr 2020 12:46:54 -0700 (PDT) X-Google-Smtp-Source: APiQypJ61pqUSnQWUZGCJd9BCc6OpYUTPJY+I3HRsSNDPQn/CF3zJJHPG3jagKpOH6MKWw9Yl22c X-Received: by 2002:a17:906:400a:: with SMTP id v10mr25227472ejj.300.1588103214718; Tue, 28 Apr 2020 12:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588103214; cv=none; d=google.com; s=arc-20160816; b=xBWBRUAni+cQUKm7AEt2MY9V4ydyR3vYu88/Rm00weO0975tEpddTo9CYgkzMbM3tn /p9+tlG5p8QBa109QOTaxoTV2I/2grMuvRsqBeedYz30Dg6JqXRt646i0UuVra0rstKC L8VFW0K+YYe+wKL0aowejyWU4O6cFrZdoi7WYUMBmTwk9s392ti4uf/FivjUkjsWTyg6 pWzWH2pgMNrou8TOGHdHN20WInYYT9J5OEdis8BKVzR8K7VpQTdVCB8MXfSZsPpr9esf u1AkrBb89d+KzfIqA/BiTf76jhrxuK1mDzr5cMML6K9G62G0VZ2U6kTWYJdIbpUfZCSt 9T2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=n/mwyxuh6jEA/eyR9En+7lR2Ld3WWTxEHQLarZr3GYc=; b=DpVy2AnhteNhRIKyOMRYWU15YsvM5oIAhBXt4EjisPTa6uC6ztpLbjvNIZU57KTC3Z uD2bZkiFPttFnEz2+k6scoHm/8U/IhfzR3s7ch0JyDfqU7UIFOAxEFyW7bxht3ziku+l XHzby0Epd2qhWDye5RcIYv+5qUF0Kt6xjB02VxR6CQNGiAntHEoh0NTsgevj3DEoKJk0 Q5uXXXOHUMFXmA2ULKc2rK8rltTif9u557PVU/WQw8mQDth20NMn9pbX7pcqyua2KMiv sXskUJ9Sbpu+1HX5q7KFDtbJo4/by81GWRXkmUHDhEH69GvvAbcZEvxf7UA3HLbGVUzI /iTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tva7EJtJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w22si2272568edu.568.2020.04.28.12.46.30; Tue, 28 Apr 2020 12:46:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tva7EJtJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729165AbgD1TpC (ORCPT + 99 others); Tue, 28 Apr 2020 15:45:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728987AbgD1TpB (ORCPT ); Tue, 28 Apr 2020 15:45:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE135C03C1AB; Tue, 28 Apr 2020 12:45:01 -0700 (PDT) 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: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.26.2