Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp859781imm; Wed, 11 Jul 2018 12:12:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpejbRdttCrj/U9gBBnwmeXqejRwmmvHdiNZtE1gIbXMo/2oTbYSw5U+qNJ8cmrzXWROkh2L X-Received: by 2002:aa7:86d7:: with SMTP id h23-v6mr31335060pfo.132.1531336367553; Wed, 11 Jul 2018 12:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531336367; cv=none; d=google.com; s=arc-20160816; b=ygqXtAYo4gL7lMHlcBOBxGhedwAcEkhHWD0Qdov+kvsoliuy7mBVc6I3F0z5WW/FK0 0RQgzmmyzKmK9Rim8h0xvNhLeBD5zRCjHyXJUo160YlsOWhdHiVfp8QklykeJdiQhkA5 b5N7Rok3t/cFGhBmzGqA+Ou+xCrT0zMpKXi83lWss/buQibL0oRv9p6RX32Wz3YT4LPQ xfRlKhKaYNLySHnv89nwoWIDLh6TUJS3XaijFXYLD7V4VLMEvwz+YYKJw29R99UrKFBA t2geRo02/jf7nlANE9nwJPSCyn9FGHgPXW73cF6+B/u2JaHywGNjOsFti3arMcs4SPRG 0j2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=BhGPuhtFUlqQIQicaz6yyNh4J/VT5RGd9oNrBJguDLI=; b=QB+DK52A2LjSAQMBKcQWeDCRo0qO/G4goPmdJFwVFx6dTJd7XatbllqMKlaijOaEeY 65npg8SePr1WIO1t4e5x6kXeTtuMCCtEmiVhOzIGLboIDD90CP6YOQvbcRb1gu9Dj0ZS //bKMvAj+I3vOezAs45ZKfYmX73QtTWPKJZlvQ4eESXKgtb2S+GAQ7SBM/AH38UfRbhF Ew7TnwcBKl/3uiV9dOBKZfhvJBOjEPBD71Zae5JUPuZ6JvfIqVKm9Z1IjbfK/GfuGNmT q7+ms3BC1dZUPdV1dBVCGLCxGdgMLXLK+gDBeUwoKO6i6qWdOLaXL0KQARWfaFBz4Rjw Jo/w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13-v6si18331827pgq.316.2018.07.11.12.12.32; Wed, 11 Jul 2018 12:12:47 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389671AbeGKQXx (ORCPT + 99 others); Wed, 11 Jul 2018 12:23:53 -0400 Received: from mga12.intel.com ([192.55.52.136]:42440 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733247AbeGKQXx (ORCPT ); Wed, 11 Jul 2018 12:23:53 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2018 09:18:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,338,1526367600"; d="scan'208";a="71471984" Received: from 2b52.sc.intel.com ([143.183.136.52]) by fmsmga001.fm.intel.com with ESMTP; 11 Jul 2018 09:18:38 -0700 Message-ID: <1531325701.13297.32.camel@intel.com> Subject: Re: [RFC PATCH v2 08/27] mm: Introduce VM_SHSTK for shadow stack memory From: Yu-cheng Yu To: Peter Zijlstra Cc: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , "Ravi V. Shankar" , Vedvyas Shanbhogue Date: Wed, 11 Jul 2018 09:15:01 -0700 In-Reply-To: <20180711083412.GP2476@hirez.programming.kicks-ass.net> References: <20180710222639.8241-1-yu-cheng.yu@intel.com> <20180710222639.8241-9-yu-cheng.yu@intel.com> <20180711083412.GP2476@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-07-11 at 10:34 +0200, Peter Zijlstra wrote: > On Tue, Jul 10, 2018 at 03:26:20PM -0700, Yu-cheng Yu wrote: > > > > VM_SHSTK indicates a shadow stack memory area. > > > > A shadow stack PTE must be read-only and dirty.  For non shadow > > stack, we use a spare bit of the 64-bit PTE for dirty.  The PTE > > changes are in the next patch. > This doesn't make any sense.. the $subject and the patch seem > completely > unrelated to this Changelog. I was trying to say why this is only defined for 64-bit.  I will fix it. Yu-cheng