Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5928316rwb; Mon, 14 Nov 2022 11:30:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Z/OZS3oW6O6CocWdNrWbZBr2zHUHJdWMxyGzsjxnhXklfHuZdbxl6duE/K2Sh7Y1zmRr5 X-Received: by 2002:a65:6d93:0:b0:44e:466f:4759 with SMTP id bc19-20020a656d93000000b0044e466f4759mr12923455pgb.194.1668454228189; Mon, 14 Nov 2022 11:30:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668454228; cv=none; d=google.com; s=arc-20160816; b=XCZYvpnPJuItBzKWteR+nss0KLfMs1s7h3VzD1BTkk6xpRXZmofMmUxO9t8UwJF7Fb EkCqqW+q2WvqpmOc51iA2Hws/rAjtZgGUmGAxsLFEdvILARsbyMViiPerOyCKNc8SpMu FO2L69bwepzHlzGcLfz0l4B+n9qCODIgu0/lJJJQpbqCyx9aFuBulB9RhyKcDccmVKyK adNhDvc+QM9VJSp+8iAjeIFw9XnhOrEMYQUyo/1ZDji9cXo4PaaRlg7H9Twyvx0epZz0 bICtdorMBI0GPJsTQFG455oxClSsZXZaWGZmElg9xoeMrLCW0MLNnNaUYPRSTIPRmtZ3 NPrA== 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=rDuAJtSbDSEqRAnt64EeQZi7Z01Mnfvv9x3CdMHBv2U=; b=X/Jd3ZCGLiHURwBc1XDvAx0nq/IxOVCA5lGL09vOXCCiixpbehvsewYaFAhBLBUNMe KtoT4tUi+w6xRtwTDxkuOAA10DLfJzps+42+QwlDJJC/nFBDXJ944bY+uwEGZoDlZ6Ta /eZRjpF1paC9dfBiqnE3kM4ArGVQXrhYiDscRgoiLYr49RbJDTKOtSemTqpp49byQxO9 w+GAfiUIy4YJMvJ7ddUEsX8er9RNLGxoCF/12+DpVFFxn54LLBMt/mxo9mU16eG6cRY4 1I+VQxa3HWnwTUzsKTsFe7JzmChfvp+a+aliqxB/aY2KtT9mAY9OFBGmc4qs/t3ZN8Og QzcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="DKfzM7/r"; 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 k185-20020a6384c2000000b0044d72a10ab0si648416pgd.342.2022.11.14.11.30.14; Mon, 14 Nov 2022 11:30:28 -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="DKfzM7/r"; 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 S236858AbiKNTHs (ORCPT + 88 others); Mon, 14 Nov 2022 14:07:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbiKNTHr (ORCPT ); Mon, 14 Nov 2022 14:07:47 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F54160F9; Mon, 14 Nov 2022 11:07:46 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C753361377; Mon, 14 Nov 2022 19:07:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7627C433D6; Mon, 14 Nov 2022 19:07:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668452865; bh=l7A49gjr9j/uZ82ZG9hzVk62CqZLvcwywWGZev/QKic=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DKfzM7/rjpcyi8gIgsAQem4d1cpWYgcafF5af6FRh9jofVnTGykIjZHja/FpkIr3F 9An2y1RKngLWeKF2P4DD9bAGSa1MdbMU15cQOX7p7AA4s9tEoi/RWhr6tN/9owIP+U oUG8Lnv6uq1TDwO3OlKLZuhy87+x6tcbfUIXmhT0yDvxUG0jZi74tVnOol7yDP4Gpw d/q2am5OKmOh2s8yelDoHoEw5R5jwZuiTqeJD2VQ5ZU3bKoLTXVBBdLQF0Hpo/Yq0F kUykU8aIQ3toDFzet760xoTSa5Wu9vQLAglXnWIWDu7ti+F+HPP/rKstqQ/JiP+ldq neX7L/oLNT9Cg== Date: Mon, 14 Nov 2022 11:07:42 -0800 From: Josh Poimboeuf To: "Jiri Slaby (SUSE)" Cc: linux-kernel@vger.kernel.org, Andi Kleen , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , live-patching@vger.kernel.org, Andi Kleen , Martin Liska , Jiri Slaby Subject: Re: [PATCH 40/46] x86/livepatch, lto: Disable live patching with gcc LTO Message-ID: <20221114190742.qekt42gvsv2ia3ng@treble> References: <20221114114344.18650-1-jirislaby@kernel.org> <20221114114344.18650-41-jirislaby@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221114114344.18650-41-jirislaby@kernel.org> 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, Nov 14, 2022 at 12:43:38PM +0100, Jiri Slaby (SUSE) wrote: > From: Andi Kleen > > It is not supported by gcc 12 so far, so it causes compiler "sorry" > messages. What specifically is not supported by GCC 12? What are the "sorry" messages? > Other than the compiler support, there shouldn't be any barriers for > live patching LTOed kernels, although it might be more difficult to > create patches for larger functions. This seems to conflict with the documentation. > Cc: Josh Poimboeuf > Cc: Jiri Kosina > Cc: Miroslav Benes > Cc: Petr Mladek > Cc: Joe Lawrence > Cc: live-patching@vger.kernel.org > Signed-off-by: Andi Kleen > Signed-off-by: Martin Liska > Signed-off-by: Jiri Slaby > --- > kernel/livepatch/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/kernel/livepatch/Kconfig b/kernel/livepatch/Kconfig > index 53d51ed619a3..22699adc39a6 100644 > --- a/kernel/livepatch/Kconfig > +++ b/kernel/livepatch/Kconfig > @@ -12,6 +12,7 @@ config LIVEPATCH > depends on KALLSYMS_ALL > depends on HAVE_LIVEPATCH > depends on !TRIM_UNUSED_KSYMS > + depends on !LTO_GCC # not supported in gcc The comment doesn't help. -- Josh