Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5651491rwb; Tue, 1 Aug 2023 06:09:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJACbHK5D8bWq8JetKxB5Di2/X2GjIsKwcYuV5qzIliFN0vaFtAfxthkozdTIo5L+8JIpQ X-Received: by 2002:a05:6a20:3942:b0:13d:8b57:a080 with SMTP id r2-20020a056a20394200b0013d8b57a080mr7918724pzg.62.1690895356915; Tue, 01 Aug 2023 06:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690895356; cv=none; d=google.com; s=arc-20160816; b=ZKH/2+s6txYqhwHCFXMPn+Ro+vgGnLIab9NhswJDOg+5fBLuM0rlNaSvj+vAZrzaMd 5q/g53ZhwgFU9nRdu8dDlNJV8kT+0Dm/4akld+kI7fjj0+bCliM4WeHAm7NR74ZBHg+E 3d8Fc3zwT1l1sgeTFSg+R2xeT8h1/QhQhUOHEA3XTTcHfbg3O3JNZGW5p+ae9QunZvDz dpkUAOQFBfrKXChgsS0z4rvlW2xlqSGy7te4GPGLqt24bTG1XO8Lscgj0cvnCRf9wpyn 59PxiXrnrlY+FASMXFG0nK/xQSyQvi1bKdtQyfnFkHdZr0oNSHpwScGSSsOMTDVopZan JVXg== 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=6cwKnUfOAeG1toeLwtnYebpI8hyRP4uQhsXCbuPoZzE=; fh=bUsfhlSxo5mbGO/gV6Q/B6Bpk+EeS6wLgNtVxkEE7VY=; b=uBBQ1mf4nY/5lelUjms7OKBNnMU0X5u7/+mqjXoZNG0uFMjcAs4EDpFPi/FMw3Xwvh BujsVQdVeFSvJS5a7zv/V7Bvh8U1SkcARO6r/1lATwEXe9bVnnvD+6JJz1fzdsuQFXnT 8Ls5jee6+ZgfKsoc1j4tKyz/qEoFflR+VYdt7R8aFlLb52E8eOM0fgJMtJhs7sf0jcxZ cpoKFzrbL6os6mrxGow3WSud1uSWq5PMqYFyIfgIcz2H3vad1nsUJqwHT5Gk+z9SGQiV be+9pQJLL85fZvTgUoHTDQfR396e1uuRRB6O2+rpdRIR6Mn4TrDs6m5G4wUrIcQCp6eU 9OKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e5ukiVqC; 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 s7-20020a056a0008c700b0063d19a45a93si9473711pfu.280.2023.08.01.06.09.04; Tue, 01 Aug 2023 06:09:16 -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=e5ukiVqC; 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 S231761AbjHAMqd (ORCPT + 99 others); Tue, 1 Aug 2023 08:46:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231604AbjHAMqc (ORCPT ); Tue, 1 Aug 2023 08:46:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57E921FD0; Tue, 1 Aug 2023 05:46:31 -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 EA44361592; Tue, 1 Aug 2023 12:46:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 536A5C433CD; Tue, 1 Aug 2023 12:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690893990; bh=MXlho9S16+OyJ4ljrjOtHzGNyOHL4ff+oBclsUhFYpI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=e5ukiVqCooJhtidM1Shc5l4sovqkC/PocssFvwu6KOF4hmjjF0QwlD6fEhk8BnkbM fIFVpVDsbJSSdXPXZYwLz3M3/zurjeBF4znqHO5SIiLMP+wgEUR0RWP0vPZFJAnJck a/CevTRiaj/ljXpsOuul9Y31DKVeya63l9/hdxy5IZ2MgtvjopLA+SfvM0d7tBzFou DNN84+2gGFBF+l43U5nG5fFfaDJGRNZ2MnlhXkqsH/hnWFAOWE0cyh5iDfnFRPCinr 2YpVx0HTjW+J9Zw/c2f/dGrHRs8XbbJGwSt2nFVVvrlaFhfsck0XYv1UShYOBB/K2g 6xx2Iq71SPhGg== Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-4f4b2bc1565so8880439e87.2; Tue, 01 Aug 2023 05:46:30 -0700 (PDT) X-Gm-Message-State: ABy/qLZpd4nlGbjpoHlER5koRwXjyT02xWHD4g3xgggl9UAUQII3Q4Vt G9PoD1reaiMSvJq0zRR2ge+uoOoSXKSmTlzVRZI= X-Received: by 2002:a19:e01d:0:b0:4fd:bd94:e6cb with SMTP id x29-20020a19e01d000000b004fdbd94e6cbmr2340331lfg.35.1690893988342; Tue, 01 Aug 2023 05:46:28 -0700 (PDT) MIME-Version: 1.0 References: <20230728090916.1538550-1-ardb@kernel.org> <20230728090916.1538550-15-ardb@kernel.org> <20230801120827.GFZMj1uzNMDs2gIi1f@fat_crate.local> <20230801124054.GGZMj9VrrB+4a4NiZs@fat_crate.local> In-Reply-To: <20230801124054.GGZMj9VrrB+4a4NiZs@fat_crate.local> From: Ard Biesheuvel Date: Tue, 1 Aug 2023 14:46:16 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 14/22] x86/decompressor: Merge trampoline cleanup with switching code 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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, 1 Aug 2023 at 14:41, Borislav Petkov wrote: > > On Tue, Aug 01, 2023 at 02:11:21PM +0200, Ard Biesheuvel wrote: > > Removing it breaks the build for !CONFIG_X86_5LEVEL > > How come? > Because a label cannot be at the end of a block. There needs to be at least one statement. > $ grep 5LEVEL .config > # CONFIG_X86_5LEVEL is not set > > and it builds fine here. > I guess it depends on the compiler version. GCC 10 gives me this : In function 'foo': :4:5: error: label at end of compound statement 4 | bar: | ^~~ but GCC 13 seems to be fine with it. https://godbolt.org/z/KnWbY8vEY