From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f71.google.com (mail-it0-f71.google.com [209.85.214.71]) by kanga.kvack.org (Postfix) with ESMTP id 975416B0038 for ; Thu, 14 Dec 2017 17:50:04 -0500 (EST) Received: by mail-it0-f71.google.com with SMTP id r6so11327182itr.1 for ; Thu, 14 Dec 2017 14:50:04 -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 n8sor3295579itn.147.2017.12.14.14.50.03 for (Google Transport Security); Thu, 14 Dec 2017 14:50:03 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20171214112726.742649793@infradead.org> <20171214113851.647809433@infradead.org> From: Linus Torvalds Date: Thu, 14 Dec 2017 14:50:02 -0800 Message-ID: Subject: Re: [PATCH v2 11/17] selftests/x86/ldt_gdt: Prepare for access bit forced Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Thomas Gleixner Cc: Andy Lutomirski , Peter Zijlstra , "linux-kernel@vger.kernel.org" , 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 2:23 PM, Thomas Gleixner wrote: > > The user knows the LDT contents because he put it there and it can be read > via modify_ldt(0, ) anyway. Or am I misunderstanding what you are trying to > say? I don't think they are secret, it's more of a "if they can read it, they can write it" kind of thing. The whole "it should be RO" makes no sense. The first choice should be "it should be inaccessible". And that actually seems the _simpler_ choice. 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