Received: by 10.223.164.202 with SMTP id h10csp1560927wrb; Mon, 27 Nov 2017 04:32:29 -0800 (PST) X-Google-Smtp-Source: AGs4zMYow2NWzrYxPItUaCPU4S6rcFUVY/w1F0VstOK2zncJLvieRaUwrggnjYGml60rzIac/44U X-Received: by 10.101.78.7 with SMTP id r7mr36892258pgt.209.1511785949224; Mon, 27 Nov 2017 04:32:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511785949; cv=none; d=google.com; s=arc-20160816; b=nanvO75WF5hEEKwWpLSMTXHiR0CGKoNNRYOcAC0LyNkvlxQnMIWn8pYWcwx53FhoJs 8RaYsnPxp/m1MoJisnI1NREONvkMbZjjMsFPzpOUmatE+eRVu8HIQUDHmit0PXuiRtYl 1x6G86wKMTRxbkIUEgf+6GTilrhSPFSkRKgEaAFftQLIV08DSJdFhgIHPPBIAdBh7n9m zs2caEeufNSET+6Su29vfpoV3jZQnGi/n21vdOCes9jcaNivEqFdu8vY9xNVNNmpLqAU LjKLm4g8K4nTnXVsCf1dolGG4rqYPjNcvtkKYH2CSLbTJF62V6pUHCURxZrrBxVKLxqE L+cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=0IZYrM+1NSuLRoEtiefZsWnCEtaXuOkumZ+Nv58fC1o=; b=Vl2AgFdbqKdkxs8LxvWiF2KzEMhFBIim7AMDka4/3G6qxoDMHYZwFRGoKPMns+CpjD Ei/TRjWbGJzqAbCr+W4yL0Y/xmccOWOpu2RI++FbLAH109TU3YV0hxKboWkfpuFjqvD8 3pFkSX6S6hy1l3ZJg1S+/ZoPLc+RnjbojSlUvP0ROEfKitsTs2dCchwbNgzwsw/pUktp kjH2N2rEVi41+SMtiNNTTtfVghOO26p0h+oD7/9byro/xbBfDD8tWJHbh3T3pN7t9vzp 3WEfZQSJyqa30AlAe7ULfSOQs2aEXEj8WDfg0UOxS/J7NEQ7rrmb1iFSkXO8X0yikysM 62Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P6GHpx0w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184si25025265pfg.115.2017.11.27.04.32.17; Mon, 27 Nov 2017 04:32:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P6GHpx0w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752037AbdK0Mbk (ORCPT + 77 others); Mon, 27 Nov 2017 07:31:40 -0500 Received: from mail-io0-f177.google.com ([209.85.223.177]:35803 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbdK0Mbj (ORCPT ); Mon, 27 Nov 2017 07:31:39 -0500 Received: by mail-io0-f177.google.com with SMTP id i38so36107682iod.2 for ; Mon, 27 Nov 2017 04:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0IZYrM+1NSuLRoEtiefZsWnCEtaXuOkumZ+Nv58fC1o=; b=P6GHpx0w//xbWqiXUwCiWvxHO0KuKyPHwPa5aPbLgJySbwgQvH/mWd7B6Fdw85x4gh Zmw456uSXyrvCg0YgnTuqeAYnFZgkKATin7rVe3ACr2El8BehFvBqyYObjJMT9dKBuif tyZTfOw1uW/8wwv6zv/mWhFqitJZ3ZY4fuhX6ba9Ujpe0hNqt3mbqQ7f+gnidxiWu6/q qQ+PyXHDDbYtqNb9TMA4HXCLv3a/P+t01vTLDdAh4otKZj4Sjph24rKWmCyeCVCcRUos dk0KfQYU0qV+J2dipSvYl1izgtfwP3oGXWy0e2l01wRINf6DPNvwHJhC2Z+Fm7czXtDT hc7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0IZYrM+1NSuLRoEtiefZsWnCEtaXuOkumZ+Nv58fC1o=; b=Y2VENkQp9uZ/ztR6HeEAoup2qenCxe3VSWFT3EKuXEZLqkvZjK7yZ2YVZo2gw8cUQy fWWyiX8+CcZxEZCkfBAhJ9kQGODDO4EGUECqJHxcvMga11L82zwMe3aM8VNHqraxJEME VMGIa/EpUnYyVioi1zM/E+JVG7W8paJIx1x3cGjuz2B0UZp5GCwrSg9Xn7nobZVeBtXF 7eZpRJ+QaGgABVIvM5/yMRuFNZwhBml4q3UsJMKwcMXO8vepKd2YhgHdhgjipOzMH4F0 GKj/f3xo3CW9Z/bZBLFhbwbqdIMIM32o4lAzyZbCbmPhuxu2BjOwIP1sPD/n2ETonY+n KI/g== X-Gm-Message-State: AJaThX7laZcBmENViduX2u3ztRIMLxHiPQPcDv3TsWM00a3FD2FyQCbI T4y0Zcl0TW7kdmKsQL3JvVov8AIvd77gTUo7UQ== X-Received: by 10.107.22.71 with SMTP id 68mr35067993iow.150.1511785898327; Mon, 27 Nov 2017 04:31:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.146.65 with HTTP; Mon, 27 Nov 2017 04:31:37 -0800 (PST) In-Reply-To: References: <20171126231403.657575796@linutronix.de> <20171126232414.313869499@linutronix.de> <20171127095737.ocolhqaxsaboycwa@hirez.programming.kicks-ass.net> From: Brian Gerst Date: Mon, 27 Nov 2017 07:31:37 -0500 Message-ID: Subject: Re: [patch V2 1/5] x86/kaiser: Respect disabled CPU features To: Thomas Gleixner Cc: Peter Zijlstra , LKML , Dave Hansen , Andy Lutomirski , Ingo Molnar , Borislav Petkov , Denys Vlasenko , "H. Peter Anvin" , Josh Poimboeuf , Linus Torvalds , Rik van Riel , Daniel Gruss , Hugh Dickins , Kees Cook , Linux-MM , michael.schwarz@iaik.tugraz.at, moritz.lipp@iaik.tugraz.at, richard.fellner@student.tugraz.at Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 27, 2017 at 6:47 AM, Thomas Gleixner wrote: > On Mon, 27 Nov 2017, Peter Zijlstra wrote: >> On Mon, Nov 27, 2017 at 12:14:04AM +0100, Thomas Gleixner wrote: >> > PAGE_NX and PAGE_GLOBAL might be not supported or disabled on the command >> > line, but KAISER sets them unconditionally. >> >> So KAISER is x86_64 only, right? AFAIK there is no x86_64 without NX >> support. So would it not make sense to mandate NX for KAISER?, that is >> instead of making "noexec" + KAISER work, make "noexec" kill KAISER + >> emit a warning. > > OTOH, disabling NX is a simple way to verify that DEBUG_WX works correctly > also on the shadow maps. > > But surely we can drop the PAGE_GLOBAL thing, as all 64bit systems have it. I seem to recall that some virtualized environments (maybe Xen?) don't support global pages. -- Brian Gerst From 1585219738179725496@xxx Mon Nov 27 11:49:10 +0000 2017 X-GM-THRID: 1585173015380938331 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread