From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f71.google.com (mail-pg0-f71.google.com [74.125.83.71]) by kanga.kvack.org (Postfix) with ESMTP id D65EA6B0033 for ; Thu, 14 Dec 2017 17:02:38 -0500 (EST) Received: by mail-pg0-f71.google.com with SMTP id v190so5130728pgv.11 for ; Thu, 14 Dec 2017 14:02:38 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id h82si3874447pfa.196.2017.12.14.14.02.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 14:02:37 -0800 (PST) Date: Thu, 14 Dec 2017 23:02:26 +0100 From: Peter Zijlstra Subject: Re: [PATCH v2 11/17] selftests/x86/ldt_gdt: Prepare for access bit forced Message-ID: <20171214220226.GL3326@worktop> References: <20171214112726.742649793@infradead.org> <20171214113851.647809433@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds Cc: Andy Lutomirski , "linux-kernel@vger.kernel.org" , Thomas Gleixner , X86 ML , Dave Hansen , Borislav Petkov , Greg KH , Kees Cook , Hugh Dickins , Brian Gerst , Josh Poimboeuf , Denys Vlasenko , Boris Ostrovsky , Juergen Gross , David Laight , Eduardo Valentin , "Liguori, Anthony" , Will Deacon , "linux-mm@kvack.org" , "Kirill A. Shutemov" , Dan Williams On Thu, Dec 14, 2017 at 01:48:50PM -0800, Linus Torvalds wrote: > Actually, just clearing PAGE_USER should make gup avoid it automatically. _Should_ being the operative word, because I cannot currently see it DTRT. But maybe I'm missing the obvious -- I tend to do that at times. We don't appear to have pte_bad() and pte_access_permitted() is currently all sorts of wrong. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org