Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp298045imm; Wed, 11 Jul 2018 02:38:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfYeiJ3hmvtV4fdeHIoNdCbgKf6rW3HeXAPmo8Y7Nzi/Z8d9c06kUGViCV9ItkbAcXPkZIs X-Received: by 2002:a63:ce12:: with SMTP id y18-v6mr1144753pgf.144.1531301898150; Wed, 11 Jul 2018 02:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531301898; cv=none; d=google.com; s=arc-20160816; b=f20YsZL1n+5mGWnSsIqI9UXgYw8+MaZAjAwOnMFw0BDhYmoI0tpmQt+z5tIB8V5sHL 6s1l3b/Xo3NoKYJchAR1XR1W7K6ohEjYQHQGuLpHd5NinrPbmVb78rI/iV5CkNfujjWM SfBojNxYXgDYs2dio7XyiXPcxu7cHBnYCYM0mkkYxFpxpDocSB5/HVZQSj5wg4ql1MF3 zZHF+saPqWoQnJHdRiyABudpqghZcrWfFZUAXXiQpiEwVowIdpBWgimQ/BGguU5/ci9P XuxEliWVbG4uzErfTKShHSR3UW21DznE+ekOqLEf9CaJaXHRJLcwHy52QWgCeHUBBneA rmJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=iQ8l/LF++fo69Ns9n3OkAsjhcdxyOv6jW4Rsh/+HxJc=; b=MBWaOliyk5COfz34VqTT3/jtbXIkvuCOtjruagGAPYwSYbohQYM25sWiyDM4iz++Mu 3Hn7tHZOB00stkwvDfYcRPn2ND2m9zgUBOWnfg1ZQkg9iwuhAgLG12Fx9W/9GllsuHrX uvR414RaFIxZZtMOxK4jTMe2YVWX/rlFfce8Fb+8cf2eXo5QwblJ+nCLgO51yEqTjHkg 8vhVdPcRD52C1WSUKaK6dod5NGU2He6XuQliUwVrcuGAXUvzowf67QhmmVFn4Q5iuSu0 HGPA9EEP87xv4tK0sp3iO5rlhC1ZeiyT7nv1y9ObJCY+1Fpk00k56FGq/4gpDpDeRa4r fZbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=b7wGQq1Z; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3-v6si1594637pli.289.2018.07.11.02.38.03; Wed, 11 Jul 2018 02:38:18 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=b7wGQq1Z; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732517AbeGKJkG (ORCPT + 99 others); Wed, 11 Jul 2018 05:40:06 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43578 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbeGKJkF (ORCPT ); Wed, 11 Jul 2018 05:40:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iQ8l/LF++fo69Ns9n3OkAsjhcdxyOv6jW4Rsh/+HxJc=; b=b7wGQq1ZeF+48VUa2uPdkjBrf QuWgM5Cnq2+lfZaVDnZH2fV/gC7wLnS5ipddx3+uRgV/EKmIB//EOmOtFVZtGUNwJ8xmovH6Hsrf2 jilSlgcU1HJz+xqz9QiGDYMbkDQUcATAEDKNdQxu3Xuq1sO8Epq0xoOWyLJAx6Qx7gOmzR2Z1+PWm UiZkbjXMs7Z1QFsr7/zQtaWtE24kbucHI1jvU9fJnjCWIp7stvBZm0/fD4VKFyTvfNSLcYXTG7p9d 6CzTne5DESszo7Wdzo1+8ahy86Y8mi7Y4zsgITncyB0yJL9OOs4DlOqVNPeJeOxwQx9BU6qmwtuv9 C4rWf0Wkw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdBXz-0002Wd-GY; Wed, 11 Jul 2018 09:36:31 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 053BE20291063; Wed, 11 Jul 2018 11:36:30 +0200 (CEST) Date: Wed, 11 Jul 2018 11:36:29 +0200 From: Peter Zijlstra To: Yu-cheng Yu 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 Subject: Re: [RFC PATCH v2 17/27] x86/cet/shstk: User-mode shadow stack support Message-ID: <20180711093629.GY2476@hirez.programming.kicks-ass.net> References: <20180710222639.8241-1-yu-cheng.yu@intel.com> <20180710222639.8241-18-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180710222639.8241-18-yu-cheng.yu@intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 10, 2018 at 03:26:29PM -0700, Yu-cheng Yu wrote: > +struct cet_status { > + unsigned long shstk_base; > + unsigned long shstk_size; > + unsigned int shstk_enabled:1; > +}; > @@ -498,6 +499,10 @@ struct thread_struct { > unsigned int sig_on_uaccess_err:1; > unsigned int uaccess_err:1; /* uaccess failed */ > > +#ifdef CONFIG_X86_INTEL_CET > + struct cet_status cet; > +#endif > + > /* Floating point and extended processor state */ > struct fpu fpu; > /* Why does that need a structure? That avoids folding the bitfields.