Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754253AbdLNWuI (ORCPT ); Thu, 14 Dec 2017 17:50:08 -0500 Received: from mail-it0-f43.google.com ([209.85.214.43]:39685 "EHLO mail-it0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754069AbdLNWuD (ORCPT ); Thu, 14 Dec 2017 17:50:03 -0500 X-Google-Smtp-Source: ACJfBotRxoRN8vbH1F5iZR25p9OExryobNPSHtFP14G4NmxKdUkxtmcVNRuQCa3atpNEzHkKt3x+WfiVoS8txZFn2N4= 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 X-Google-Sender-Auth: aIkQ1F7NnAU4BHVNlC-9EkJUaq8 Message-ID: Subject: Re: [PATCH v2 11/17] selftests/x86/ldt_gdt: Prepare for access bit forced 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 512 Lines: 15 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