Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2530038rwd; Wed, 17 May 2023 10:53:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52euBqVQaVt9KOYHGcYjHBFzVCklCwmpEC3KM0sBNSED+UVmAW+aJOpvpxu0b9t3PAHib7 X-Received: by 2002:a17:90a:7108:b0:24e:1c3d:e624 with SMTP id h8-20020a17090a710800b0024e1c3de624mr436628pjk.25.1684346025837; Wed, 17 May 2023 10:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684346025; cv=none; d=google.com; s=arc-20160816; b=dq77oc6KiVKTwAfEKedPzdYSvfkoP/ZlKmgugpwnXWuzDpng1No3xkEyBmhWZ3knw5 RYyKIP9p1CUow6FWlRlkpLfggky9uS7mb45Ye/6MsLPxVvnG1q2eTwlmQ72JO1e38RGc qhWesARILSH0rEa3D9vTy1qtH4W/IMITLrF8dprp69WtP8chqoW+VPnXMENQwzMT0V1H VdnwTtwGFHGmYYh+dEt4Z3+yI0DUWMHBMEEXUi86oSML3zjcEo/+3CcpTO3IHog/mRUH VxoPoBczSOaV5Kl5M0I7GLdY4ar+AE/ecKXRfjvIx0uZrmERtz6DJcbWcqJeR38/R6oz nvOQ== 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=jH1gvszCRUv/jvdFMpejYyHJziuHGJaOBhO38CRZTwI=; b=lyCNiHq0cPDSJdOkfNBT1dH7z8eq+h1MRTsn2tC8jK9976TskFq4/sUiFDFz78t0yw H80d8EObCmetK/qbTLbxFb7n4x2GM+4+8kJsD/cFvDEFfHPwfNlbHeOOh7oFDNPGNnCr 74NChBKnEJP77uhuRvrHYYI9nCSN4UEUOZAqlo/zZvAHxkxyZKGIX46RN4VgevH6o1qH Ue/yKqdIwOeHUCNBgGGNh0ya8+w6EA3C3z91oHGfEoLe+5VMM7j4g+MzXEO1gtU+bqU3 jirfkxOWFXClSZHRzYiRbXb2hpRDVdkfcAHL6GIrtv46awSUqRvhDbelfjyeEIUTSKCm UpJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O2/GZIQP"; 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 f29-20020a63381d000000b0051820b42b57si21824031pga.619.2023.05.17.10.53.31; Wed, 17 May 2023 10:53:45 -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="O2/GZIQP"; 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 S229683AbjEQRmF (ORCPT + 99 others); Wed, 17 May 2023 13:42:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbjEQRmE (ORCPT ); Wed, 17 May 2023 13:42:04 -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 02F53AD19; Wed, 17 May 2023 10:41:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 56AE464390; Wed, 17 May 2023 17:40:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB806C433A1; Wed, 17 May 2023 17:40:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684345207; bh=lvKXtjDORl9iw1fOnUstd2Teiz7vlo2hm0s7WvCeLOw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=O2/GZIQPJR7wKLD/kkg345IgeUxO7+DWoYfnD3C6KtrDK/zJ6ar7goy5CIJ6Ppipc 733okSusKkLdhjUNFQwi8+Ypm8inMUdnUxz7WmjvIKxDYski5+VE+X86zDLS2OlyrF wQg2A0uQz65PiN14AQ5x9k+IIgLSEW/IBJkfTe70bNAeT8aZxnArwypLq9CNgN6koD u1DfcrRG7qVARqk5rrwFDCNvE3FDSg73eR/Mc2Ro1w+69SEEEfK1r88hxfQwgr0iS/ io0Xj8SQ9EOH3IVlzfrqVdrej0auJhcq78gnxVd1EV/f2NnH4Vzar2Cim2auxGcPfr s/DMtDawCmnvQ== Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2ac78bb48eeso10566331fa.1; Wed, 17 May 2023 10:40:07 -0700 (PDT) X-Gm-Message-State: AC+VfDw6PawqVpOr410hJWxy5UfhT2Q4R0JBdWpBDzHx871vLLgMZ1t+ fJdsFHYYx6HYIPxz9swn0dwgQFYIoyaNZLM+YoY= X-Received: by 2002:a2e:99c7:0:b0:2ad:dab5:fe8e with SMTP id l7-20020a2e99c7000000b002addab5fe8emr7223536ljj.47.1684345205492; Wed, 17 May 2023 10:40:05 -0700 (PDT) MIME-Version: 1.0 References: <20230508070330.582131-1-ardb@kernel.org> <20230508070330.582131-2-ardb@kernel.org> <20230517173145.GEZGUPgRTiUFB2GwgG@fat_crate.local> In-Reply-To: <20230517173145.GEZGUPgRTiUFB2GwgG@fat_crate.local> From: Ard Biesheuvel Date: Wed, 17 May 2023 19:39:54 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 01/20] x86: decompressor: Use proper sequence to take the address of the GOT 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, 17 May 2023 at 19:31, Borislav Petkov wrote: > > Please fix all your subjects as explained here: > > https://kernel.org/doc/html/latest/process/maintainer-tip.html#patch-subject > > On Mon, May 08, 2023 at 09:03:11AM +0200, Ard Biesheuvel wrote: > > We don't actually use a global offset table (GOT) in the 32-bit > > Please use passive voice in your commit message: no "we" or "I", etc, > and describe your changes in imperative mood. > > Personal pronouns are ambiguous in text, especially with > so many parties/companies/etc developing the kernel so let's avoid them > please. > Ack. > > diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S > > index 987ae727cf9f0d04..53cbee1e2a93efce 100644 > > --- a/arch/x86/boot/compressed/head_32.S > > +++ b/arch/x86/boot/compressed/head_32.S > > @@ -58,7 +58,7 @@ SYM_FUNC_START(startup_32) > > leal (BP_scratch+4)(%esi), %esp > > call 1f > > 1: popl %edx > > - addl $_GLOBAL_OFFSET_TABLE_+(.-1b), %edx > > + leal (_GLOBAL_OFFSET_TABLE_ - 1b)(%edx), %edx > > Yeah, that's a bit better. > > Thx. > > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette