Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp151731ybs; Sun, 24 May 2020 00:46:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrn0pe8SqZM4uiCud1FVaxIDAEhHNiCTkbl/nPpZ9m3ARb7pUo1ARkMCQNw0BlRs1LGxcr X-Received: by 2002:aa7:da98:: with SMTP id q24mr5096158eds.259.1590306374009; Sun, 24 May 2020 00:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590306374; cv=none; d=google.com; s=arc-20160816; b=C9kXiKw+yXtNgEuLyHcxJCaqaDmV1kbmxOyfmdV4nClok98RuaTKQ5dmGnnVF7uzna LavC8K0NdDacd2tFsjv6u+H+4uGn3F6TU0qTkGpmGHaDCoV5c8UC2a1OUdYuKt/VqoNi I2E8YWF7FtEE77fesxaT6/qJGUbbjKmsliEm3fU41Aw4hR9QSP4BLB3O31DM/1J1C6TX KmLXWxczrEm8eXhmiw/MKkfaxx4uvQjFKaqr+q9VrA9Kx8YrYAvJnTmg6J0UzwEph9/v 5nDYeotefzBgEVIfhr9JZDapii7zUQ+LZfBe5eTgdcHKNy7a9OnXCtU3HhBj+lADQQ2U b81Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IW12OxD6YKPgg3/q1AalmSbCmH1oairWtxhbFIeoTYI=; b=AHQEBFCaCZkULNhzUL/hMvo6HILiEH4+ehRsXPAGRNNjcZHCenrZEmVVWMM0py4EP0 SSimY2RnJV1nw3T/s64mcH+kE4zg/0UNJzrs5ih5qc78rKvMvuYfnb4rrRO8s3Ydp9QC HFcUq5vDVOfFWmKHxWOR4fvjZD3WnXFRtzk7AaMCi7rJTy6XNecW0yKXfOMCW+sWARz6 YJzXhgnRUr+OCxdqYEz0zNWX4ie4z5WMQtyARnrnFQSMNg3dQej+0248ORHO/MqTYTRy ADzC3uMl8xAy2uFm2KY+PXIRImVURJlTYgk+52v1mURzZ9qcSeHgcehadNwdahlM6U5g Fp1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fWl1umd9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fy14si7618603ejb.628.2020.05.24.00.45.33; Sun, 24 May 2020 00:46:13 -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=pass header.i=@kernel.org header.s=default header.b=fWl1umd9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728029AbgEXHmj (ORCPT + 99 others); Sun, 24 May 2020 03:42:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:53022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726331AbgEXHmj (ORCPT ); Sun, 24 May 2020 03:42:39 -0400 Received: from kernel.org (unknown [87.71.47.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 26E322076C; Sun, 24 May 2020 07:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590306158; bh=+/fFoXXRcAaUgRrF312cHC7kEgpII3DvTDA8eGvdehk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fWl1umd9MDaNFTQL8vtXp9S91lOpXqHQ9cMIrKzvtvJqxr0KCUvLsyHedTsuWhcK+ 8p4N/kJG9k+82H1sIQsHwOKs9c4FXoHV+iXDzQ5Oe5TQpYgYs5FXHs7PZNERJRIt75 vZQkuQA7RKAczl+NpjOLI6H7+2WtBYbABL56OTvw= Date: Sun, 24 May 2020 10:42:30 +0300 From: Mike Rapoport To: Matthew Wilcox Cc: "Kirill A. Shutemov" , linux-mm@kvack.org, 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: Re: [PATCH 0/7] Record the mm_struct in the page table pages Message-ID: <20200524074230.GM1118872@kernel.org> References: <20200428194449.22615-1-willy@infradead.org> <20200429002624.qkhb362moj6v3vtw@box> <20200429015126.GP29705@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200429015126.GP29705@bombadil.infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 28, 2020 at 06:51:26PM -0700, Matthew Wilcox wrote: > On Wed, Apr 29, 2020 at 03:26:24AM +0300, Kirill A. Shutemov wrote: > > On Tue, Apr 28, 2020 at 12:44:42PM -0700, Matthew Wilcox wrote: > > > 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): > > > > How does it work for kernel side of virtual address space? > > init_mm A note to keep in mind is that most of the kernel page tables are seen as PG_reserved rather than PageTable(). > > And your employer may be interested in semantics around > > CONFIG_ARCH_WANT_HUGE_PMD_SHARE :P > > I was thinking about that. Right now, it's only useful for debugging > purposes (as you point out in a later email). I think it's OK if shared > PMDs aren't supported as well as regular PTEs, just because there are > so few of them that uncorrectable errors are less likely to strike in > those pages. > -- Sincerely yours, Mike.