Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1691539pxj; Wed, 19 May 2021 11:34:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3Om2JBNvQak1r4mXdjje9+xZ6zrDQQkVk+iJNEO46Ge54YGaO30Nmrhq0XNBYspL1dWAm X-Received: by 2002:a50:ef15:: with SMTP id m21mr439422eds.226.1621449263198; Wed, 19 May 2021 11:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621449263; cv=none; d=google.com; s=arc-20160816; b=SI3qDMTPyAxsuN5mtD5OIFBekBKmkPlG57qaC/5mr4Q2IBCGfVXYrpKWRsPpG5owUp wM2ZnPh0KGGnZz4h5FMr37Uw5bPdSaQRpHUIJs3EixjSFwmtVpEyCCik5OMKUWiTKXui cUzGHssgRTHOi36VCafw6CNU9ZYNqR+JfAgLme1HtBeAm4nM0A3mSrc9J8VxSAa8hq4a lD3FFfmip7jLkBA/x3RqeUwXfUXHIR95q5GGt9+d45QhCn07Cp9nKU37gU4+xgkXOZAC B84/ZmmcrzbbHA554mWPjyZxdGqjMsmvjYnldCsBHHCUjDfNz3ZN9Az0ZltON9CkTmJL LRrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=h4MVyn0nH0x9Z6DZdk5Phdwh3T6QDgKmh+XT8roD9oo=; b=uzUZYpOUEM7tBM5ek6ya/JKxj2Vn4Z/snxR2HRRVjNjAyBafQcP3vPUksGgFikbN7i 34pecLayDyQ51GLXcaXEIp9VPW4mhFgQA2YgaBGplriSEylZRoSpCuK7+SdS9K34aUur gjR5ogj4ZW+5xEzjQiaqSoDeLxWXsRAYPeW2e5fS1vLdYvIHDCUb0LYlmAnomgDMUMDV M/uBTvY7xAIxRCexKhRLlADf+m11ZPTM+8LtfWj6NNj9psRUgxPTKTMzXbw5jM6x1T7e YUhxoUdGWWmE5l55f3gVLVjGrZ23ts0R4bkNQ6DUhCiR5KzJWuLjKL4lmYu/MwO2p/x0 eOXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f25si477396ejh.126.2021.05.19.11.33.59; Wed, 19 May 2021 11:34:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1351938AbhERTqq (ORCPT + 99 others); Tue, 18 May 2021 15:46:46 -0400 Received: from mga07.intel.com ([134.134.136.100]:27039 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351956AbhERTqm (ORCPT ); Tue, 18 May 2021 15:46:42 -0400 IronPort-SDR: zQ0X6kd8P7C2v7/dKEdhUyu6nZleqfLe8HoacyZY7sYuZ1fXWE5a2cmr8gd6dxhn85RNBWp2dZ dVA1Hj5RFtvQ== X-IronPort-AV: E=McAfee;i="6200,9189,9988"; a="264720044" X-IronPort-AV: E=Sophos;i="5.82,310,1613462400"; d="scan'208";a="264720044" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 12:45:18 -0700 IronPort-SDR: tYQi2B82XedKDm6qGiBjeEUdZVyLSN3ijHw1VG6+3/gOUcVnRwKduMlDNvjLJFTLm5urO60hXJ V5q6mwSq98IA== X-IronPort-AV: E=Sophos;i="5.82,310,1613462400"; d="scan'208";a="439600915" Received: from yyu32-mobl1.amr.corp.intel.com (HELO [10.209.166.158]) ([10.209.166.158]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 12:45:16 -0700 Subject: Re: [PATCH v26 24/30] x86/cet/shstk: Introduce shadow stack token setup/verify routines To: Borislav Petkov , Eugene Syromiatnikov 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 , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang , Pengfei Xu , Haitao Huang References: <20210427204315.24153-1-yu-cheng.yu@intel.com> <20210427204315.24153-25-yu-cheng.yu@intel.com> <20210518001316.GR15897@asgard.redhat.com> From: "Yu, Yu-cheng" Message-ID: <10f74571-f8c4-9b08-0157-1570b30a1a6d@intel.com> Date: Tue, 18 May 2021 12:45:13 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/18/2021 10:58 AM, Borislav Petkov wrote: > On Tue, May 18, 2021 at 02:14:14AM +0200, Eugene Syromiatnikov wrote: >> Speaking of which, I wonder what would happen if a 64-bit process makes >> a 32-bit system call (using int 0x80, for example), and gets a signal. > > I guess that's the next patch. And I see amluto has some concerns... > > /me goes read. > In the next revision, there will be no "signal context extension" struct. However, the flow for 64, ia32 and x32 will be similar. I will send that out after some testing. Thanks, Yu-cheng