From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f70.google.com (mail-it0-f70.google.com [209.85.214.70]) by kanga.kvack.org (Postfix) with ESMTP id CEEB36B0038 for ; Fri, 15 Dec 2017 21:52:45 -0500 (EST) Received: by mail-it0-f70.google.com with SMTP id g69so17104829ita.9 for ; Fri, 15 Dec 2017 18:52:45 -0800 (PST) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p12sor4849220itb.39.2017.12.15.18.52.44 for (Google Transport Security); Fri, 15 Dec 2017 18:52:44 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20171216024824.GK21978@ZenIV.linux.org.uk> References: <20171214205450.GI3326@worktop> <8eedb9a3-0ba2-52df-58f6-3ed869d18ca3@intel.com> <20171215075147.nzpsmb7asyr6etig@hirez.programming.kicks-ass.net> <629d90d9-df33-2c31-e644-0bc356b61f25@intel.com> <20171216024824.GK21978@ZenIV.linux.org.uk> From: Linus Torvalds Date: Fri, 15 Dec 2017 18:52:43 -0800 Message-ID: Subject: Re: [PATCH v2 01/17] mm/gup: Fixup p*_access_permitted() Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Al Viro Cc: Dave Hansen , Dan Williams , Peter Zijlstra , Linux Kernel Mailing List , Thomas Gleixner , the arch/x86 maintainers , Andy Lutomirsky , 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 , "Kirill A. Shutemov" On Fri, Dec 15, 2017 at 6:48 PM, Al Viro wrote: > > Treating protection key bits as "escalate to page fault and let that > deal with the checks" should be fine Well, it's *semantically* fine and I think it's the right model from that standpoint. However, since the main use case of protection keys is probably databases (Dave?) and since those also might be performance-sensitive about direct-IO doing page table lookups, it might not be great in practice. Linus -- 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