Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6551044rwb; Tue, 22 Nov 2022 15:15:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf7MxnViVyNF3uNkgIm6U4T+MQ3xZ2dkkFltZ7B+Qg45WbfXcaSBgkhhcDA/7wAQE1XAOP5A X-Received: by 2002:a17:906:6153:b0:7ad:b51d:39d0 with SMTP id p19-20020a170906615300b007adb51d39d0mr20903019ejl.571.1669158913556; Tue, 22 Nov 2022 15:15:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669158913; cv=none; d=google.com; s=arc-20160816; b=f1oxz5Rz9fwXzTAvp+/dCtF4RpiqXjzgn4sETEPjEoj3xOEBtEkl2Rquj9uP+g+Lrc ni6OP4jxvmf97xAVFPeOXHz96tciMfhg2ygRVhvrMTmUXlsvc8hwV6y7eK9oMm/HEeje JbyPi0vrJMQvaqj0T4OMAPBrHG3cMZzzSAShQm4CrUYyI4jvZQZB+OMZFuzbjxudcLNV 4wYgmr1IhAy8wfIL6VqFqgt/y+xPWvvlG9rlpHItpzhG/80MWys1td2DZqzjkJMGDswh qx7kaXMvu/KeudmDATAsBb+S1iq9um2/2RU9/0shBh2ioVkdIAp5+NkQUeV6x45RHj4Y 8SJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=G05chkNzHPwsnntJ7kKJqsGoQ7jN0j3yQmiJPWOBUig=; b=VI3EbLGs8lhfJcKzSexkCtRXa7zeOKz4Yu4s5bXjwXRCtiDoQGYRjEycdx8Jr98Uf2 zq5uyr3JMIVp621OKQgis1/qcPvSXgv7/zKs79CMgqI674zxoPNNtCiODSRaMsHUnSbm ZMk9ZOOyP56N5Q4qDWzU3RS2OdIS6heVE4EhJFpncmE/FYhJi5Y/H41QlwkHlGa9Ax/F 4T6eSHzNGni1DXlhnv6XRGQbrgFKKruN61uD6KF/KYFIU8+Fd2cPgsLjXun004ceO8/b 1hkFM1ZUpM6qHxEepQXTxA1Bek6BESJzQONnCd8FjqGr4bzol0LqQYeLIjA5Fjw/ydGO sV4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=pBV3uk6u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a05640250ca00b0045dc9b4c034si14216727edb.582.2022.11.22.15.14.52; Tue, 22 Nov 2022 15:15:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=pBV3uk6u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234840AbiKVWUk (ORCPT + 89 others); Tue, 22 Nov 2022 17:20:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233239AbiKVWUh (ORCPT ); Tue, 22 Nov 2022 17:20:37 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 926BC6152F; Tue, 22 Nov 2022 14:20:36 -0800 (PST) Received: from zn.tnic (p200300ea9733e747329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e747:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 2BD901EC064F; Tue, 22 Nov 2022 23:20:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1669155635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=G05chkNzHPwsnntJ7kKJqsGoQ7jN0j3yQmiJPWOBUig=; b=pBV3uk6uVc0xbuzgFpJ8P3ZQeUfwthJqqhIYnbtaVyN9jUSjdEMQbBVURfI+RPJZgD46VU fSN5aq6/8+Mms8O6poECGpDeLoUl4zww2JKAD4Stt6qdZnNQdpIVmIRDXHFGalfIZU/GEY 5PAr2F+pxlAGXWYy1P4F027wcYBaQ+Q= Date: Tue, 22 Nov 2022 23:20:34 +0100 From: Borislav Petkov To: Tom Lendacky Cc: Ard Biesheuvel , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , Michael Roth Subject: Re: [PATCH v3 00/17] x86: head_64.S spring cleaning Message-ID: References: <20221122161017.2426828-1-ardb@kernel.org> <5750d157-43dd-6f3d-1407-f41af3cff207@amd.com> <26c34f9e-3b09-7b10-09a2-993a50790447@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <26c34f9e-3b09-7b10-09a2-993a50790447@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 22, 2022 at 03:49:29PM -0600, Tom Lendacky wrote: > I bisected it to: > > 99b7f4b23d9f ("x86/boot/compressed, efi: Merge multiple definitions of image_offset into one") > > And doing the following fixed it: > > diff --git a/drivers/firmware/efi/libstub/x86-stub.c b/drivers/firmware/efi/libstub/x86-stub.c > index cb5f0befee57..a0bfd31358ba 100644 > --- a/drivers/firmware/efi/libstub/x86-stub.c > +++ b/drivers/firmware/efi/libstub/x86-stub.c > @@ -23,7 +23,7 @@ > const efi_system_table_t *efi_system_table; > const efi_dxe_services_table_t *efi_dxe_table; > -u32 image_offset; > +u32 image_offset __section(".data"); > static efi_loaded_image_t *image = NULL; > static efi_status_t > > I assume it has to do with being in .data vs .bss and not being explicitly > cleared with the encryption bit set. With the change to put image_offset in > the .data section, it is read as zero, where as when it was in the .bss > section it was reading "ciphertext". Thank you both. I'll refresh the set and run it here tomorrow too, to make sure it boots here too. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette