Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1300452rwl; Fri, 31 Mar 2023 09:12:27 -0700 (PDT) X-Google-Smtp-Source: AKy350bBZy6VyTFiAfKSRYFlHwaQ3VIaqQ2UKYi6biDK6Zn8OiI2oWf6HD0u8DIhIfDpRXhZUW5w X-Received: by 2002:a17:906:74ca:b0:932:efa8:28fa with SMTP id z10-20020a17090674ca00b00932efa828famr24154622ejl.2.1680279147201; Fri, 31 Mar 2023 09:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680279147; cv=none; d=google.com; s=arc-20160816; b=UM7nfWAlDE9x1fTbI64nuRRyCsVapmf5Xu08FWTfl32k4RhU06GHxz1OMHfyyHCFew WzcNTYNHId4PG5IVXvaQx+FHrc2EUj8eZtsVrb5TEauvdOVdUbeJyNRzTgVQ9NPDD44Z bcCLFPsOhNIRJG0vwnTQc5tdZrO49ytqI545uQU0iFYRQ6gVytOFOk7tS2AxvRBlZe5g D0+ZSxtNEeQHKAVS2u2X18FJZr6VPDhEgnd/DXnFse0sVYTPC/9PImMU7ezJAH55F6hh TJCbqikSF306EyEEkB35IreCDxRrp5c6MF0/wQlxE7gXBSXd3c6q+W8Ejz0jYBxLadvN 3sIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=rSNZ8/l+VZ86qtadx/3cTwXAVAmwqfzRU1WoIUzmJNE=; b=DVe8iN4RdwstxD3k1QYgIpMvo9hRn1YbE8zLvA3NIajz3DQpyfDm2YLBAdAx42Iz3y erUTvKne+M9ANgde0eqj3tMVcHFPOmY1ioS8C9N+W4Tp8Ig0brsOBCYS9P0pGnYU/fuB V27N64zSMW0vLSmPFT774j80WpWBcMnEzd1Oo2wc7SH/qhKLP+GhoiYzR5OmVLQCWclb WAXnE9Wu9y3pbR0XflKiBYC1HVTX2PkRpYL9G8WB92DU+1vimqlfgs67Rra7tH0e9B/X RRfvEKm3PORyAjspKPfPFRKCN8V+Xfq+sTztlaWZ25faPtZ+0n6C18POG31bH2WIySvS +6mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AWPD+R8Z; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a170906a09200b00944723a4bf9si2471750ejy.263.2023.03.31.09.11.31; Fri, 31 Mar 2023 09:12:27 -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=@redhat.com header.s=mimecast20190719 header.b=AWPD+R8Z; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233054AbjCaQEq (ORCPT + 99 others); Fri, 31 Mar 2023 12:04:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232921AbjCaQEn (ORCPT ); Fri, 31 Mar 2023 12:04:43 -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 B10831EFC9 for ; Fri, 31 Mar 2023 09:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680278636; 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=rSNZ8/l+VZ86qtadx/3cTwXAVAmwqfzRU1WoIUzmJNE=; b=AWPD+R8Z7Zo+cKE5Rbz7uqtWVIrqftICpfSBT6cXjajmNvqEIl85iA2MbuZWv3hOkXrnYO wIf84z3zN6hF/rCw3jf/+5TKpzeqM7UfKkFlHjM4cqieVcXX7W5/8jl98/mRCv9Ws0gmkf OVuJgcEOczdPfcDnJqaPnlFTy+tSReI= Received: from mail-yw1-f197.google.com (mail-yw1-f197.google.com [209.85.128.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-493-7xq3yhjTMdulPo2lV8SAOw-1; Fri, 31 Mar 2023 12:03:55 -0400 X-MC-Unique: 7xq3yhjTMdulPo2lV8SAOw-1 Received: by mail-yw1-f197.google.com with SMTP id 00721157ae682-544781e30easo221527887b3.1 for ; Fri, 31 Mar 2023 09:03:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680278635; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rSNZ8/l+VZ86qtadx/3cTwXAVAmwqfzRU1WoIUzmJNE=; b=57sCUqO1c4hU1iCtnARwhDqOJBvzMDAYZTlgFD9xqLYn2nNEaHJ4xvfHxzBXGZcifN YiP+eoHVZp3Bq5ibrG61QvgExssc6zRLSTj01zt4+UzkcAFSMjv2HKTQd+xssx5rv7VF /VWFGfwdfCTu9ZUOkEYKBrhRIpCx4JND1VTzuijHEZtBt12HeImrcSHGFXEMFcq0yLoW IOqmSGdzHGHxBDHxLTpch1vMXLjYhqTcrcW1Q1Tvt6yUMckoUEe3NevzbX9yV5TJVFSw 1d5B7zM8ey5z3JRMWoNc7XQhQ0W0QypahM2yG0cMIYovmDfQWlVXrkk31jp83dsJQw+o DOGQ== X-Gm-Message-State: AAQBX9eHZYp8rz56IMilsJPIvlvyPFLAK8Vu7KjNNhWac/qfqPcgnPe5 rOz9T2MpPT4dkVmW6C5LEd/Nonsxgrb6oDyyiv219f4mj4vfGgVyN+m9eSgQxlLfQx8LjJg5+MV KCRZhSyT4ylbeRTeHOeQg8aiU X-Received: by 2002:a05:7500:3e83:b0:fe:c8a6:575 with SMTP id li3-20020a0575003e8300b000fec8a60575mr286783gab.18.1680278634914; Fri, 31 Mar 2023 09:03:54 -0700 (PDT) X-Received: by 2002:a05:7500:3e83:b0:fe:c8a6:575 with SMTP id li3-20020a0575003e8300b000fec8a60575mr286763gab.18.1680278634565; Fri, 31 Mar 2023 09:03:54 -0700 (PDT) Received: from [192.168.1.12] (pool-68-160-135-240.bstnma.fios.verizon.net. [68.160.135.240]) by smtp.gmail.com with ESMTPSA id y25-20020a37f619000000b0074382b756c2sm760767qkj.14.2023.03.31.09.03.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Mar 2023 09:03:54 -0700 (PDT) Message-ID: Date: Fri, 31 Mar 2023 12:03:52 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US To: Alexey Dobriyan Cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Josh Poimboeuf , Miroslav Benes , Petr Mladek , Marcos Paulo de Souza References: <4ce29654-4e1e-4680-9c25-715823ff5e02@p183> <683593a8-79db-4f3b-bc78-7917284683e4@p183> From: Joe Lawrence Subject: Re: [PATCH v7 00/10] livepatch: klp-convert tool In-Reply-To: <683593a8-79db-4f3b-bc78-7917284683e4@p183> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 3/30/23 13:04, Alexey Dobriyan wrote: > This patchset somehow breaks the build of the simplest livepatch module: > > make -f linux/linux-1/scripts/Makefile.modfinal > make[1]: *** No rule to make target 'linux/module-klp/main.tmp.ko', needed by 'linux/module-klp/main.ko'. Stop. > Thanks for testing. Presumably this is an out-of-tree livepatch module? If so, that is still on the TODO list. If not, that is weird as the patchset itself includes updates to samples/ and lib/ livepatches that build and load fine. -- Joe > $ cat Kbuild > obj-m := main.o > > $ cat main.c > #include > #include > #include > #include > > static int livepatch_cmdline_proc_show(struct seq_file *m, void *data) > { > seq_puts(m, "REDACTED 001\n"); > return 0; > } > > static struct klp_func funcs[] = { > { > .old_name = "cmdline_proc_show", > .new_func = livepatch_cmdline_proc_show, > }, > {} > }; > > static struct klp_object objs[] = { > { > .funcs = funcs, > }, > {} > }; > > static struct klp_patch g_patch = { > .mod = THIS_MODULE, > .objs = objs, > }; > > static int livepatch_init(void) > { > return klp_enable_patch(&g_patch); > } > > static void livepatch_exit(void) > { > } > module_init(livepatch_init); > module_exit(livepatch_exit); > MODULE_LICENSE("GPL"); > MODULE_INFO(livepatch, "Y"); >