From patchwork Wed Feb 28 13:50:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 13575482 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B70C6C47DD9 for ; Wed, 28 Feb 2024 13:51:09 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.686634.1068865 (Exim 4.92) (envelope-from ) id 1rfKKj-00009S-72; Wed, 28 Feb 2024 13:50:53 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 686634.1068865; Wed, 28 Feb 2024 13:50:53 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rfKKj-00009L-3n; Wed, 28 Feb 2024 13:50:53 +0000 Received: by outflank-mailman (input) for mailman id 686634; Wed, 28 Feb 2024 13:50:52 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rfKKi-00009D-9W for xen-devel@lists.xenproject.org; Wed, 28 Feb 2024 13:50:52 +0000 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [2a00:1450:4864:20::52b]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 61de7fb9-d640-11ee-afd7-a90da7624cb6; Wed, 28 Feb 2024 14:50:50 +0100 (CET) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-563c403719cso6918096a12.2 for ; Wed, 28 Feb 2024 05:50:51 -0800 (PST) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id i2-20020a0564020f0200b00565efe074f4sm1794127eda.85.2024.02.28.05.50.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Feb 2024 05:50:50 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 61de7fb9-d640-11ee-afd7-a90da7624cb6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1709128250; x=1709733050; darn=lists.xenproject.org; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=6gLhTWaeA6K8LvtOWvt7viO6z/8krLAbtiOifZaThhE=; b=TVi2a1bxTWJgJ5+853KE5vL/R53OsK7MLIsilsohma0pQhiXxVb605Z+7myFDByo35 55QSpGGJGkxo7ETDgu82XdKTNoqa08fnIPsyXaOX/yRY/DVmb7QbzTcFUUAqiObd7Uyq B2l78WwSW/z3yD/fqVWK/lwcBdbYIA/DP3yCRQjsNf1AbbCDw/O6Flx//3kYmrr2xoQw hktRIupX+nOqyPhjVDCYn7m4zr8TK6R/YGIT4p33IVpF/4vsarPP5ug2hagh9raOzDpT d8eZfDcQZnEGgXSY07dYskZDsgJwYiHsF2FIkQ/e99Mdxj0Zzkq9cXtx6V3Zkk04JdGM swMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709128250; x=1709733050; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6gLhTWaeA6K8LvtOWvt7viO6z/8krLAbtiOifZaThhE=; b=NS/LYuF56kAUQEoinQ/UFrAEKh5oy+NBDsfEtxbYb4eO94zXzRZcmqERzuiVXCLp6X MCPIKyCVz6MWaZKULaWNbzoT6jHFXJKgjGkSjArkT+8pm+eBJOus0RlSn3SUsP1sXVV8 ogh9g/Y7Dub7peN4i1IbY084+hJFV2FXl64E0Yu+Jh/b9vnqRkBRUHIQKIaQGsT7/pxI /NhBwyspYSSeJcnoogAFtYbw5fe90FXYG7DAD/jkxs9fnqwTNIpcoQ/9bFaSODMIw6WK vIIc+1RuWTvXa4vp4Sl46vb2j4TfFQTki5g0ucsjl/+NrFwi4hc9UOOcGxQYmUhYqFwW 7aRw== X-Gm-Message-State: AOJu0YybPog6921a70FNvnQ0gKY5KTJ0FIeC4GO8lpnhsQrBJt5Gqhdg PJtVIG/9Q4dwqv6yYhjbjAywN7V+rGkoRWCYe/Fc7s/y9yDdwlB1yRpir0VbsMrEnDY5iXHPf2c = X-Google-Smtp-Source: AGHT+IGzeq78e3YxEG9nZClAs6SJQ65DIRxb3NLzC5C3F+8ZUOyPNLllO+WuGMaN3l/lc8lAscKSnA== X-Received: by 2002:aa7:d694:0:b0:566:ba0:414c with SMTP id d20-20020aa7d694000000b005660ba0414cmr5519206edr.26.1709128250605; Wed, 28 Feb 2024 05:50:50 -0800 (PST) Message-ID: <33da6f8b-af22-48c8-acce-3aa55c0e0414@suse.com> Date: Wed, 28 Feb 2024 14:50:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , Wei Liu , =?utf-8?q?Roger_Pau_Monn=C3=A9?= From: Jan Beulich Subject: [PATCH 0/4] x86: CET-SS related adjustments Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj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L9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL One might think of this as follow-on to XSA-451, but that's not quite the right order of events. There are a few open aspects; see individual patches. 1: remove redundant XEN_SHSTK check from reinit_bsp_stack() 2: record SSP at non-guest entry points 3: traps: use entry_ssp in fixup_exception_return() 4: prefer shadow stack for producing call traces Jan