Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6748BC6FD1D for ; Mon, 20 Mar 2023 19:32:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230402AbjCTTcX (ORCPT ); Mon, 20 Mar 2023 15:32:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbjCTTb5 (ORCPT ); Mon, 20 Mar 2023 15:31:57 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E02AE182 for ; Mon, 20 Mar 2023 12:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679340242; h=from:from:reply-to:subject:subject: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=I7Kpwgu4Yf7cURDUTXwMVWYDCxG6tP+A5kuxmrN7os8=; b=hpZZWNgDaWLFTxDVUCtHQ/wew8P0wyLO+bvmibgrMHK4Az5v7OVXfZ+NOBE18UUjL4Cucn p7+vewARuhcOpbv3qgpX7mtW+zC8VIkI1Lbdu8RRaDgN8n+xvPSqMtOD6Lhtc3W4/4qAE7 boEsufpQw0ln9b3iYo8k34ni3L16ZsE= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-259-CB_CpGXOO5elQNKWx59mkw-1; Mon, 20 Mar 2023 15:24:01 -0400 X-MC-Unique: CB_CpGXOO5elQNKWx59mkw-1 Received: by mail-qt1-f200.google.com with SMTP id fz25-20020a05622a5a9900b003d6c5910689so7428102qtb.9 for ; Mon, 20 Mar 2023 12:24:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679340240; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=I7Kpwgu4Yf7cURDUTXwMVWYDCxG6tP+A5kuxmrN7os8=; b=vKuFQbDVIn1nE59Y8vxvclqcBynFW6LIQYPop04EExW2ZWZKIZYL+V4HpAL2s5iSw+ l1N8LJYnkqk6QRkU7x5Xu4iR6xfkIfk7lsj/1hOXimdOFffcc7mjtpGl9nAr4+1WuwYT A45+5Hsnp+0yal2C5BHhHXDReDsYwFHOt0QYK8FYaRN4za5tU7kT6PH8Lxm2OJYAyzcF odQNbqRUkn028ESEM5nRkbIcE6jYRoMEe9boG4qAWiT6N7tkU158tCUEltoIgJQdh5Ks LUEL60TTQ5Vl8lBtVBQVKElZ3JxaUfNtnJWG8y3cfGp0cCPzD9Pdrq5O9BJOmqqVBVGm Ko+Q== X-Gm-Message-State: AO0yUKW3fOX7qUk8y9jHEYthXRpgOmy4adgBKPAPX1mB40LaM5FtwjWE 2sXTGKscbugZU+dIhxtwWFLQgXSKg+DkEC+eBgrh/VIXNnO8Kl7zRxl3k57eW3nMp4qyHndH/9v 34TS1uxZ4bHi3GNyd4HiQxHnw/Bx3F5v8 X-Received: by 2002:a05:622a:1a9f:b0:3e1:59e8:7451 with SMTP id s31-20020a05622a1a9f00b003e159e87451mr694339qtc.14.1679340240553; Mon, 20 Mar 2023 12:24:00 -0700 (PDT) X-Google-Smtp-Source: AK7set83KO4cEKnDwKlUlt9dZ8kwvPD5iKQCdo214mre68GtCKfC8+mx9R4t/hpl8WKMrNumolyMlA== X-Received: by 2002:a05:622a:1a9f:b0:3e1:59e8:7451 with SMTP id s31-20020a05622a1a9f00b003e159e87451mr694275qtc.14.1679340239914; Mon, 20 Mar 2023 12:23:59 -0700 (PDT) Received: from [192.168.1.9] (pool-68-160-135-240.bstnma.fios.verizon.net. [68.160.135.240]) by smtp.gmail.com with ESMTPSA id f30-20020ac86ede000000b003e2901e5f7dsm1636411qtv.55.2023.03.20.12.23.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Mar 2023 12:23:59 -0700 (PDT) Message-ID: <5ee478c9-efa2-60e5-fee5-ed9d5cbceb01@redhat.com> Date: Mon, 20 Mar 2023 15:23:58 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v7 00/10] livepatch: klp-convert tool Content-Language: en-US To: Josh Poimboeuf Cc: Marcos Paulo de Souza , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Miroslav Benes , Petr Mladek , Marcos Paulo de Souza References: <20230306140824.3858543-1-joe.lawrence@redhat.com> <20230314202356.kal22jracaw5442y@daedalus> <20230317232010.7uq6tt4ty35eo5hm@treble> From: Joe Lawrence In-Reply-To: <20230317232010.7uq6tt4ty35eo5hm@treble> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/17/23 19:20, Josh Poimboeuf wrote: > 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. > > If nobody knows how to safely use it then there wouldn't be much value > in merging it. > I took a trip though my inbox and dug up a 2020 discussion on documenting livepatch and compiler considerations [1]. This led to the suggestion of a greater, end-to-end livepatch author guide, for which everyone agreed, but has since remained unwritten :/ If we have a miniconf @ LPC this year, maybe we can volunteer to write sections, decide on an outline, or even better, have a rough draft to review and discuss? Aside: technically klp-convert doesn't require -flive-patching, but it's probably strongly recommended in order to use it safely. And fwiw, kpatch-build could leverage the tool should it desire one day. In the meantime, if kpatch-build doesn't need/want to use it, perhaps klp-convert should have its own CONFIG option? (Or something in modinfo to key on.) [1] https://lore.kernel.org/live-patching/20200721161407.26806-1-joe.lawrence@redhat.com/ -- Joe