Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5557831rwb; Mon, 14 Nov 2022 06:25:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oB4QIDQaGlpCfleRhKVayY28DxntZNS9p1wIj9o67Z1vrCxO0BxYTM7dSUaTbSCAJWyET X-Received: by 2002:a17:90b:2750:b0:212:c87e:dc8b with SMTP id qi16-20020a17090b275000b00212c87edc8bmr14019535pjb.229.1668435937373; Mon, 14 Nov 2022 06:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668435937; cv=none; d=google.com; s=arc-20160816; b=QfsdsLVBIZCRSoMge2NVdRzfdKYtmFTqv4EYi1StT3VqRXe5inrKVkBNRj37WV/4wT DlRP9KWk6HFXOsgBR6VBGXrny3qikYbSJgg+SpxAu0C5BXFdKcLGb0PArgKhYYLKw77V xUyVP7U9Db+/tbOBTozVDjn6ewDlsxZ32XpywfmQuxgb63yU4cU+n3D7dIIc+BLnYRT3 xfGPXUJ3QaVfYHyfiztZhW9OITY+W/IJr3U/se5rTPklVzryWULRQ+3hfOlX6rOXWwBP e3QFBgsTB5SVCU4wNiMrhBM7P5UnoCJSL5NRKM3Dcvkh78zfLEdHVokYaf1sikDUyQlM O6mA== 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=rHSkLT53Nv/ib2Ggyg8R8XnjvwWSO7MjKfJFJvq+vrM=; b=dKUJAHLlPQ790fBofLw3dRPGtMdgF1hYy4zBpwCj92XSY0pxf9IkIKgsmLauMMROOf Z+F4D2u1HiMWupaGObLyirfWqtijLFmSAtWI+OmoZr7DPyKT5F3TbNqe249q9YcNVVoY MqRaKpzIb7zYWM+frOvb2mahmp602nJwkkr7QTzSwijYI7aAU9LitXhl0l+YEV1AL1RA 1XAoK2EwVTRQ5oUJCPpzdnkKK35btFwv5D4TPsxjocSRa2BeyWWpkWt9wusSqmDfOoQN LqXJfe/4ntaExVEDtZofvkpuCsE1vIvEfLF4e2KXzSFnxSflVwb3sYRFNfUZ6KVlBA9h qoBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K61oir9H; 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 z17-20020a056a00241100b0056da577864fsi10101896pfh.241.2022.11.14.06.25.24; Mon, 14 Nov 2022 06:25:37 -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=@kernel.org header.s=k20201202 header.b=K61oir9H; 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 S237040AbiKNL7u (ORCPT + 88 others); Mon, 14 Nov 2022 06:59:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237035AbiKNL67 (ORCPT ); Mon, 14 Nov 2022 06:58:59 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A622122B35 for ; Mon, 14 Nov 2022 03:56:59 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 599A1B80E7E for ; Mon, 14 Nov 2022 11:56:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DC95C43147 for ; Mon, 14 Nov 2022 11:56:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668427017; bh=rHSkLT53Nv/ib2Ggyg8R8XnjvwWSO7MjKfJFJvq+vrM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=K61oir9HYVf2Kl8Zg7LLJaR9C4ZmEHf6qzWLLS9AMF8wizEZ8H7/a4VX1r88AuAYx 0WUKhMnd/CEWXm7qXAVA9jBoOv1hObLlJpp5jLUNvWvwst134qw+2z1Dqv8ZijsjLd gyzi69ytG0c8KQN43Wm1pt7oxyBpUJ0fFzFPXk9jxqwRqBnR5TxjMZuzodU29ldtby M4kMNecm6R0aYj9hJIPpVTmhBzr7z3YaUIDCKVj1t2qVvwBBKjm/t1oEsJwSGXUZuK 8TrVHBzxBjoihN7Bog9oMGJZKMTkwhmP2ajAsuGZwRECrQRXKsjpG2nZR5AAoz4U5E RyObfa0MZQyyQ== Received: by mail-lf1-f50.google.com with SMTP id j4so18931799lfk.0 for ; Mon, 14 Nov 2022 03:56:56 -0800 (PST) X-Gm-Message-State: ANoB5pnDwJNiOytS3PEzBsiEDNbmBjfvybLcnTARtd76pMPmk7U0Fxay AbWeyALn67pDDGthZnv4eolRks5rZiSwQAu+/Y8= X-Received: by 2002:ac2:5044:0:b0:4b0:cca8:bdb3 with SMTP id a4-20020ac25044000000b004b0cca8bdb3mr4165197lfm.539.1668427014943; Mon, 14 Nov 2022 03:56:54 -0800 (PST) MIME-Version: 1.0 References: <20221114114344.18650-1-jirislaby@kernel.org> In-Reply-To: <20221114114344.18650-1-jirislaby@kernel.org> From: Ard Biesheuvel Date: Mon, 14 Nov 2022 12:56:43 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/46] gcc-LTO support for the kernel To: "Jiri Slaby (SUSE)" , Borislav Petkov Cc: linux-kernel@vger.kernel.org, Alexander Potapenko , Alexander Shishkin , Alexei Starovoitov , Alexey Makhalov , Andrew Morton , Andrey Konovalov , Andrey Ryabinin , Andrii Nakryiko , Andy Lutomirski , Arnaldo Carvalho de Melo , Ben Segall , Daniel Borkmann , Daniel Bristot de Oliveira , Dave Hansen , Dietmar Eggemann , Dmitry Vyukov , Don Zickus , Hao Luo , "H . J . Lu" , "H. Peter Anvin" , Huang Rui , Ingo Molnar , Jan Hubicka , Jason Baron , Jiri Kosina , Jiri Olsa , Joe Lawrence , John Fastabend , Josh Poimboeuf , Juergen Gross , Juri Lelli , KP Singh , Mark Rutland , Martin KaFai Lau , Martin Liska , Masahiro Yamada , Mel Gorman , Miguel Ojeda , Michal Marek , Miroslav Benes , Namhyung Kim , Nick Desaulniers , Oleksandr Tyshchenko , Peter Zijlstra , Petr Mladek , "Rafael J. Wysocki" , Richard Biener , Sedat Dilek , Song Liu , Stanislav Fomichev , Stefano Stabellini , Steven Rostedt , Thomas Gleixner , Valentin Schneider , Vincent Guittot , Vincenzo Frascino , Viresh Kumar , VMware PV-Drivers Reviewers , Yonghong Song 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 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 Mon, 14 Nov 2022 at 12:44, Jiri Slaby (SUSE) wrote: > > Hi, > > this is the first call for comments (and kbuild complaints) for this > support of gcc (full) LTO in the kernel. Most of the patches come from > Andi. Me and Martin rebased them to new kernels and fixed the to-use > known issues. Also I updated most of the commit logs and reordered the > patches to groups of patches with similar intent. > > The very first patch comes from Alexander and is pending on some x86 > queue already (I believe). I am attaching it only for completeness. > Without that, the kernel does not boot (LTO reorders a lot). > You didn't cc me on that patch so I will reply here: I don't think this is the right solution. On x86, there is a lot of stuff injected into .head.text that simply does not belong there, and getting rid of the __head annotation and dropping __HEAD from the Xen pvh head.S file would be a much better solution.