[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 06/70] x86: Introduce support for CET-IBT


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 28 Feb 2022 13:58:28 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YoSZ/LGH2JLPAvVg1wsK8TIky8uV/2hj0t3L4LzJP6w=; b=dkzQ2Y3ZKORcHdTEykctl1DEydecc+cm47dKzlwp9Cd1lioO4R8hrFHQDvIPTww9JsWL3rt0fLxZVwABJ02vCjZ1akSmtKfBfZldEkaYddQDEUJTRNrSr3HKU2CoEsUUB25J4GZeS4kV8WDOB3bqTjOPK0K/a00glV1Fr5AdvWJeqia4sOyNXsfvLuPjR+hvxr1vNc0QyQoNdxm+xX+kuEl/9Zfxk1RhYWT7+dCOR9FPn9zkjKesBo44DKTJivj3GMPfPZGjIK0iE8ZD0laqInBzeqX4ne3RaxtNhJnvUZmF7beXLqfCIjyNSaSRR+DX8fiIFliPZueW6+dT6RfH6Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gp8tM92x7Ec8qwuepvCKYG1V8U/sTol+sdlPw5ez+TPLwUopxzfAf/1xSYx8CWMtj2SXImYzXC9/wO7aOP40sW4GYU70lWF9Pe3OjDlU5o9s1oOE8cIwgThDVKM+4J8D91j+dXDKMkQh1fIWpYeyo+KE29tZAmow1mhcGH24XU95vlFoYepWPNnQDJjX+eOaqasIRyy28cIk2Fc3v7/J4A0FDnAtzRu1LZ8LUkw6r7MhqOyn9KJ5MbQWHNTCZwpJkNBBbNoFGxHfIYMBov+rfyCn2oOO4vGpCY/WlrR0EhNaIL93waAU4wz8ii6E26bLRZSCet6PumS12FNItczn8A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 28 Feb 2022 12:58:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 22.02.2022 16:26, Andrew Cooper wrote:
> --- a/xen/arch/x86/Kconfig
> +++ b/xen/arch/x86/Kconfig
> @@ -40,6 +40,11 @@ config HAS_AS_CET_SS
>       # binutils >= 2.29 or LLVM >= 6
>       def_bool $(as-instr,wrssq %rax$(comma)0;setssbsy)
>  
> +config HAS_CC_CET_IBT
> +     # GCC >= 9 and binutils >= 2.29
> +     # Retpoline check to work around 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93654
> +     def_bool $(cc-option,-fcf-protection=branch -mmanual-endbr 
> -mindirect-branch=thunk-extern) && $(as-instr,endbr64)

Noticed only now: Since the commit message doesn't say anything either
way, was it intentional for this to differ from XEN_SHSTK in the EXPERT
dependency?

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.