From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f198.google.com (mail-io0-f198.google.com [209.85.223.198]) by kanga.kvack.org (Postfix) with ESMTP id CD27E6B0069 for ; Thu, 2 Nov 2017 14:25:00 -0400 (EDT) Received: by mail-io0-f198.google.com with SMTP id b186so867865iof.21 for ; Thu, 02 Nov 2017 11:25:00 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 70sor1765537ior.358.2017.11.02.11.24.59 for (Google Transport Security); Thu, 02 Nov 2017 11:24:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20171031223146.6B47C861@viggo.jf.intel.com> <20171031223150.AB41C68F@viggo.jf.intel.com> From: Linus Torvalds Date: Thu, 2 Nov 2017 11:24:59 -0700 Message-ID: Subject: Re: [PATCH 02/23] x86, kaiser: do not set _PAGE_USER for init_mm page tables Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Andy Lutomirski Cc: Dave Hansen , Thomas Gleixner , Andy Lutomirski , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , moritz.lipp@iaik.tugraz.at, Daniel Gruss , michael.schwarz@iaik.tugraz.at, Kees Cook , Hugh Dickins , X86 ML On Thu, Nov 2, 2017 at 11:19 AM, Andy Lutomirski wrote: > > We'd have to force NONE, and Linus won't like it. Oh, I think it's fine for the kaiser case. I am not convinced anybody will actually use it, but if you do use it, I suspect "the legacy vsyscall page no longer works" is the least of your worries. That said, I think you can keep emulation, and just make it unreadable. That will keep legacy binaries still working, and will break a much smaller subset. So we have four cases: - native - read-only emulation - unreadable emulation - none and kaiser triggering that unreadable case sounds like the option least likely to cause trouble. vsyscalls still work, anybody who tries to trace them and look at the code will not. 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