Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1830215rwb; Sun, 6 Aug 2023 04:07:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+eFzZhT8O4U0NgKjvaNB8osJBQiJ4Sggt5WjB+JoV3KweKhsNEUMVH7ZPpY06Y36SNFeI X-Received: by 2002:a05:6a00:98c:b0:687:5415:7282 with SMTP id u12-20020a056a00098c00b0068754157282mr8857053pfg.23.1691320059610; Sun, 06 Aug 2023 04:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691320059; cv=none; d=google.com; s=arc-20160816; b=OOfUyRrSnGrJICQzYKCv1BNaBjCzRwtMsE86ebwNHrAmJj3xs7RKlzR8jYUa2r8/vG VuhDWcaNomV2MfM/soRJXy8ixsT6XC+12mbQwv3FW7AvWHW/GStKdsb0IZ1MsJlcawhl gh4ATdZTulBDigBCJ2f+nfmTMT1N3fnMRwc7JkRlxPF6W4Vqhd3oKW7hpjMdQZNyKbt1 GSaLEaRpK0z6SA/RFlJrIXBKCC+HaLSeDKVmP5yfNrru8VliRN3Efzk7hWtO1zGtJU3Z pF1OiaAW6FCS6lhCML+7e4V1HVZqNgQEYBoiZqPIGR3vbI7Sb9a97QDl7RwPyoicI9GN SUng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nrAfH7LH9Od4hEskOHM+3mH2LgC6KSFIfJLI2MMy2ok=; fh=bUsfhlSxo5mbGO/gV6Q/B6Bpk+EeS6wLgNtVxkEE7VY=; b=cOlaWoGTr1rrSqVYM9V4ckSBq028+YisgbfPMu9648pK9o/S1MwIGFPayPyCtPKubW OqrPQTHrdv48H284sbLs4rZ3m5pOebspeECTTfN1tFgsOTU1J+OjbpznvW4sKYeW7Z10 9rqCCboGEXeypYgWzgCmrUepcr9wQ+F4vusbhwU5ejWk8kTsps+vldTY6p9kQbTv1T/p YiASn8/tF28kaY9TWf6UCWD2Cwtmp2s0w7QGVYMQLXOYPqXHHjz8G6wmw+s3bZ6mbblg fprnxoi86fv3Fl2uPrgc3qTHC/CX/pV4oGjQ8lCtXw1/RQMnmvuShgvA+BrUE5d483Vp plAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uafJ0Qgm; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a634446000000b0056477be59ecsi1273135pgk.286.2023.08.06.04.07.28; Sun, 06 Aug 2023 04:07:39 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=uafJ0Qgm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbjHFKV4 (ORCPT + 99 others); Sun, 6 Aug 2023 06:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230298AbjHFKVy (ORCPT ); Sun, 6 Aug 2023 06:21:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DE571BC2; Sun, 6 Aug 2023 03:21:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 00FB561041; Sun, 6 Aug 2023 10:21:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63408C4339A; Sun, 6 Aug 2023 10:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691317310; bh=5MxN0ZEI3oscpBXHNaeo0xXUc0krIcllOd8IitDAOXc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uafJ0QgmsAFeLeqLuvbtI/tAaTVRrwmMkeXtAGD8Md2MMg/TkR8ieB7x9qevNpTTR XifxV4+1exA/A4e0GVHJY/+nGViC2bcebPxLuWQfpNtGsxkv6WvHjLhdAdxPTR3c0b PcUS+nnKRMoHN9Cy3tZX1B591oLlKMipfWRiepu7fjGydw4LHpalrdYc8wgeMK4g8x VlLxfYqeZrbNewR/5ynQmYTdU9Np+MOt78DNpWlYhKH2VRyiO0J9JibZBt0mHXvi8s K4Yb6T2a1EJJh0zkO7biO/kMuNRmakMrRVMTrBA18MQKMb7v/xr+jI7emb11mG+OX8 5GhJNXU6X6v/Q== Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-4fe28e4671dso5814250e87.0; Sun, 06 Aug 2023 03:21:50 -0700 (PDT) X-Gm-Message-State: AOJu0Yx56i6wZ9qS20twKuWS4eBC/iPQrWK4IxE8O/r1dApZwmx+WMrC qx3ZOfR72K1MAWzFyjy1mFPZxCUIUVBX/tCmgSs= X-Received: by 2002:a05:6512:3586:b0:4f4:d071:be48 with SMTP id m6-20020a056512358600b004f4d071be48mr3825926lfr.14.1691317308158; Sun, 06 Aug 2023 03:21:48 -0700 (PDT) MIME-Version: 1.0 References: <20230802154831.2147855-1-ardb@kernel.org> <20230805144030.GDZM5fXvaqXBLxwXfj@fat_crate.local> <20230805210631.GEZM6518W3qOCYYgNK@fat_crate.local> <20230806101710.GAZM9zJjwoNKFSfWD6@fat_crate.local> In-Reply-To: <20230806101710.GAZM9zJjwoNKFSfWD6@fat_crate.local> From: Ard Biesheuvel Date: Sun, 6 Aug 2023 12:21:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v8 00/23] efi/x86: Avoid bare metal decompressor during EFI boot To: Borislav Petkov Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Evgeniy Baskov , Andy Lutomirski , Dave Hansen , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexey Khoroshilov , Peter Jones , Gerd Hoffmann , Dave Young , Mario Limonciello , Kees Cook , Tom Lendacky , "Kirill A . Shutemov" , Linus Torvalds , Joerg Roedel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 Sun, 6 Aug 2023 at 12:17, Borislav Petkov wrote: > > On Sun, Aug 06, 2023 at 12:05:25PM +0200, Ard Biesheuvel wrote: > > I suspect this should fix the issue: > > > > --- a/arch/x86/kernel/head_64.S > > +++ b/arch/x86/kernel/head_64.S > > @@ -110,6 +110,7 @@ SYM_CODE_START_NOALIGN(startup_64) > > * programmed into CR3. > > */ > > leaq _text(%rip), %rdi > > + movq %r15, %rsi > > call __startup_64 > > Yah, I was suspecting we're not passing boot_params properly somewhere. > Aaand there it is. > > So yes, that fixes it. > > Lemme know when you've refreshed your branch so that I can continue > testing. > https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/log/?h=x86-efistub-cleanup-v9