Received: by 2002:a05:7208:70d5:b0:7f:5597:fa5c with SMTP id q21csp1280696rba; Fri, 22 Mar 2024 09:12:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW74bh4EDx606WEWGognODoEUoVosgu6O4X3/vhrBULaHqeR+MFDsyvFdaxxxppkTfr329wQGJM4ITG1f4NW/S5JTfsuS5tLUHOsMUA0Q== X-Google-Smtp-Source: AGHT+IGoVSPWSquHjoJkw2Yd0sHZBYFfnCwVw9OUbXPj4jB07IgN25k1TXniGWxaXiYuXF1XF7MB X-Received: by 2002:a17:906:7c4e:b0:a47:347f:f0fd with SMTP id g14-20020a1709067c4e00b00a47347ff0fdmr122238ejp.53.1711123933455; Fri, 22 Mar 2024 09:12:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711123933; cv=pass; d=google.com; s=arc-20160816; b=qQ19q667PsNxD0SzQiw5+t2+VC7UibLLIShQyNMmTKCN/QEKdx3RsN8CcwYTbIuAEk /mcKDr6OwdEFW38+lwvaz98TtviF9HtiFj8OYHxqy0GyzwIsblBYPaKCCNbPhtKR18Rs 4WKMjz9uRrX7lTvdhbqNytIpSoO8rTYc3O37t92dMy/z+ZBZtcXjUXmRflSfM0dRB2k+ 5B9lxoC7KxObD01tXD/uT0O62GcjJFQyikNlpc3ClRNXxrvv3F+zst72fJ15bJwSZ3Uv hKVIrp+VZm5C8L2iXVbbujfub+FLjLdmmtDimMABoS59oFgRPtk06ECMUH5eZGzM62Ki czjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=xxj9zaTdMixI9nA1mtjdnxIiUQAMmBn3Nsr3nDit/zY=; fh=NCzknu+4qkStdc54EnghiurL4My7F+KFmrviFDU3wnE=; b=hoC7yeH+DB5iyvq9FIR/A+URheTTABHExaNeIFe0zD9l+FaTyO5zqpSTGNdMyqVBeq L1/BSyKwDioMWteBYE5er3VM0xlSUmdy2CFv+b6bLp2DpLVOyw7CGMwJCFQtf+pq8cY9 49bfM8rgDRhjKA6ST3c3VjQOCkQTL46MsK0idl5xfXiak/fG4cw3G/oHRYt1u9Qxwpc2 4XdtcLa49tEjV+9GknaAg9Et0PhlQp9U4HicfNN+eyd785VCcCWHC1MlMaIx5b0eEl1U VttCWCP5tTtRJlsccEhQJkUIxPiNb5L7ElWFMd+Aig8AtexeVNAA9bdJ5rIxmuAHgVHO 0Ofg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BFsTfxU4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b18-20020a1709062b5200b00a46a93ac2e1si992104ejg.977.2024.03.22.09.12.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 09:12:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BFsTfxU4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E4ADD1F213E2 for ; Fri, 22 Mar 2024 16:12:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 083345FDD5; Fri, 22 Mar 2024 16:11:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BFsTfxU4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2EDDE5FDD1 for ; Fri, 22 Mar 2024 16:11:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711123865; cv=none; b=YFFSOSr71jTpUmG7tJapbwOtn29J606WFLKFqw2D31P9cLa4P8L2p/GV7dIVMyUSxqbfWDt4R1tT4VDPNnLdG1ODVyDGwZAD3XryhLQAOG/9q2K9i4wLZX+q568JFUMw0snU7IBCCPL5oEpwCOKITfBeqNzdTgPbhKHNI6jYPrs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711123865; c=relaxed/simple; bh=xxj9zaTdMixI9nA1mtjdnxIiUQAMmBn3Nsr3nDit/zY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=EQSpxG6klcQhqph1WPJTZ05a5WfFKP+MU1mlKLC13FAzWXO6+OR39+EgZRjyL0sTqwvnyqgjYhkbs0M8i75ySHEWIYFqJURgX4uAbCz/3VI2yX7n7DmoCj6MPpvN9HEeAg7G22x9yQ8y3mmCO8R6EZ4dfvZwgAlF93te/5jt6P8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BFsTfxU4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D559C433B1 for ; Fri, 22 Mar 2024 16:11:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711123865; bh=xxj9zaTdMixI9nA1mtjdnxIiUQAMmBn3Nsr3nDit/zY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BFsTfxU4+1Ym8UVTWxfWsZIoYEqTj6qj8qTfuwyf9RImj7J44WjqZQgBlDEqP+jcy 3pEYzLS+G8b1g3HvVhPqeCmDqjf3/YTEW8OztuQ7LmIC2w6Nn8VuF4vhp4go2HfH6/ dPZk/DWrgS5Sr8LvrWLDieF+8DaxlGoGiHAeqIe+IuB8Nbys3Vqy5EvPIwVMZtkv17 MMsSMwnMolQZ8+t0WSFLFjr1UpsAuVMfhaXA7h42kqzt+ogRHQmdtsoa1aNdQ23l6K B2WbSMDDkkUGdrPbffOAL4d6pgP9stMN2mODlwhcSO8sio/F70gK40FaJeEiblBbFp zvGHzq4TJpgZw== Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-513d23be0b6so2770559e87.0 for ; Fri, 22 Mar 2024 09:11:04 -0700 (PDT) X-Gm-Message-State: AOJu0YxU9wGAxwqWWKkBipDzChggtt3ke7M/qN3t3Lp1vEpZ61t9m8Pe pu31lpyUnhRJHOaO+VGa7kovu5rFILybmnYdy6m/KOu+UF7G2fwOF7CgXymDvdfUBodN5y4ft8/ 5GRCuhPA8be5NjOvxjrcNhKC1sPk= X-Received: by 2002:a19:7616:0:b0:515:973b:746 with SMTP id c22-20020a197616000000b00515973b0746mr1884638lff.16.1711123863371; Fri, 22 Mar 2024 09:11:03 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Fri, 22 Mar 2024 18:10:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] Fixes for recent x86/boot rip-relative addressing changes To: Tom Lendacky Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen Content-Type: text/plain; charset="UTF-8" On Fri, 22 Mar 2024 at 17:41, Tom Lendacky wrote: > > This patch series provides fixes for the recent x86/boot rip-relative > addressing changes that causes system crashes when booting with 5-level > pagetables and SME active. > > I thought I had tested 5-level paging with SME, but must have missed > it. There are two patches to fix the issues that can be squashed into > a single patch with multiple Fixes: tags if desired. > Perhaps you tested the entire series, where the final patch removed those variables altogether? > The second patch is sort of a revert, but instead uses the newer > RIP_REL_REF() macro instead of reverting the fix and continuing to use > the fixup_pointer() support. > Thanks for fixing this. Series Reviewed-by: Ard Biesheuvel