Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp100955rwr; Tue, 2 May 2023 16:45:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jSsGcvWlFNhCyE4HKdtcfVsdWw5XxwRpOdPIQUmV9Z1rAlBEKKvMK7YVCNs/khkp/ZKRW X-Received: by 2002:a05:6a00:1947:b0:63b:8b47:453c with SMTP id s7-20020a056a00194700b0063b8b47453cmr23790735pfk.1.1683071156061; Tue, 02 May 2023 16:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683071156; cv=none; d=google.com; s=arc-20160816; b=GL/ZfaubX+a7zhprVbw+0CzDvt88841lqWfbWlzIlAFtF+1Cu7Wwvehru55IMJgrkf bI7P//h5xuM+Deb6zFka294u2W2pxnEScIi1x444sFmqxw67H21FSFMnY2vBWtMvWPKP ebLzn1+BCDjXG3gbFMS6KLIWStv5AQseBm41J+a7dhNoiNOaKzGp814xqqpRu+42h7iD A7ABtz39ah5++CLawUnqTSn89sciyOhqDf+obkgJPpy2A/bCArLzqcyozu1HCC9JIEfT +aSYUic5MDa2dlxZM1mu1cUTkafP3UPG9R4NDLe/0tx9FweJf3tjR/9vZzOlO3TXwJK/ 3qSg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=FT4wWIFE9IpebB/66dG6JpLGUoIaaQlGJ8KBJQi7+T0=; b=A3G3RDQ5EA7HDNhOsfS3ZJ350W6qfEIDooXepyvFA7fxv0i5KrXO34wvgPvWwPX2zm bs4ABt4TJSrliTCl2tGtblLYJl8mhaKlZSDlcsn9mMyMaC8B1JfgLjPY8RQlVURZUd+y mj3Rj3r3uZRUcmsJPYywlBCZhWZzKvhZA8dY4GxPv7GzByhdN//GGmb/8IqI7ISm9bgM zyYa+rLOwPiQAwiZCuOzQvjLWCW9qZasw3OPXcxu7iGyKUz/Q6++iBZ6igx0dkYOYn+S lfR1SpPlvK0JrgcGIETMIX/QhDYxvBVDAtPWeX2PwYCecC5RTM2WIWbYzgCJ5efFnPop aQaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="l5k/Telc"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020aa78ec7000000b0063b56b7ba82si31369579pfr.189.2023.05.02.16.45.32; Tue, 02 May 2023 16:45:56 -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=@suse.de header.s=susede2_rsa header.b="l5k/Telc"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229751AbjEBXiM (ORCPT + 99 others); Tue, 2 May 2023 19:38:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjEBXiJ (ORCPT ); Tue, 2 May 2023 19:38:09 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7396E3594; Tue, 2 May 2023 16:38:07 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 11EB51FD8E; Tue, 2 May 2023 23:38:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683070686; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FT4wWIFE9IpebB/66dG6JpLGUoIaaQlGJ8KBJQi7+T0=; b=l5k/TelchZJdm/qSeeM4RDGq1WWPUF/0XIRJYvKp0I/akn1Xd8EHAJ2Wh2SvcHTB9ZZOF4 8yrjroNWQ7LV87PuOd/r2wVGA6pFr1feUUymzy2TjayxyTQeoH4riu7eEEBtqvM8ycVzzt +SwTyS61Lp8vhgs2yJntQwhcr42RX7A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683070686; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FT4wWIFE9IpebB/66dG6JpLGUoIaaQlGJ8KBJQi7+T0=; b=3jhnf0pMgzOGgpWWjzF7HUgqHr+xPS0oBIme40Mvp/M1kB/3bUkrjbcVKwzZqzZE9Dop7u RVF/aYTpP6/jfHDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 69AB7139C3; Tue, 2 May 2023 23:38:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 1iHWBt2eUWRjfwAAMHmgww (envelope-from ); Tue, 02 May 2023 23:38:05 +0000 Date: Tue, 2 May 2023 20:38:01 -0300 From: Marcos Paulo de Souza To: Nicolai Stange Cc: Josh Poimboeuf , Joe Lawrence , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Miroslav Benes , Petr Mladek , Marcos Paulo de Souza , Lukas Hruska Subject: Re: [PATCH v7 00/10] livepatch: klp-convert tool Message-ID: References: <20230306140824.3858543-1-joe.lawrence@redhat.com> <20230314202356.kal22jracaw5442y@daedalus> <20230317232010.7uq6tt4ty35eo5hm@treble> <873556ag24.fsf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <873556ag24.fsf@suse.de> X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 Tue, Apr 11, 2023 at 12:06:43PM +0200, Nicolai Stange wrote: > Josh Poimboeuf writes: > > > On Fri, Mar 17, 2023 at 04:29:48PM -0400, Joe Lawrence wrote: > >> Have you tried retrofitting klp-convert into any real-world livepatch? > >> I'm curious as to your observations on the overall experience, or > >> thoughts on the sympos annotation style noted above. > > > > On a related note, the patch creation process (of which klp-convert > > would be part of) needs to be documented. > > > > If I remember correctly, the proper safe usage of klp-convert requires a > > kernel built with -flive-patching, plus some scripting and/or manual > > processes. > > Not always, I think: -flive-patching or IPA optimizations in general > aren't a concern in the context of data symbols. From a quick glance, it > seems like the selftests introduced as part of this patchset are > all restricted to this usecase. > What do you think, does it make sense to eventually have such a bare > minimum klp-convert merged in-tree, independently of the ongoing > discussion around the livepatch preparation processes, respectively (the > lack of) documentation around it? If yes, Lukas, now on CC, is > interested in this topic and would be willing to help out in any form > desired: either by contributing to Joe's work here or, if deemed more > feasible, to start out completely new from scratch -- dependent on your > opinion on the proposed, more minimal approach as well as on Joe's plans > around klp-convert. > > Looking forward to hearing your feedback! So guys, any feedback? Ping :) > > Thanks, > > Nicolai > > (*) We've been experimenting with building the relocation records > manually by various means, e.g. with GNU as' .reloc directive as an > example, but this all turned out impractical for various > reasons. Most noteworthy, because the records' offsets wouldn't get > adjusted properly when linking AFAIR. > > (**) by some other means than directly with kpatch-build > > -- > SUSE Software Solutions Germany GmbH, Frankenstra?e 146, 90461 N?rnberg, Germany > GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman > (HRB 36809, AG N?rnberg)