Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3716398ybl; Tue, 20 Aug 2019 00:55:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuEzXEB4sqCKVDm3C1kgyef2IM9MnRYkbiRSsFkcU48RJ9H3TIUEUOXoLsKpRh5jzK9ugr X-Received: by 2002:a63:6901:: with SMTP id e1mr22842428pgc.390.1566287721161; Tue, 20 Aug 2019 00:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566287721; cv=none; d=google.com; s=arc-20160816; b=LUrDIyF/S+FoXNyio5sN2IEJT/of1vz7D+68HFXz0z0rAQl5GE+otlcnG86U+yMvC6 spKWwjmFip4QhoIqiknftBi+V07GB0HBvTrcm87SL7QGrMA4R46Bxp0akFt4LUmhXyn4 mBdpQJrUMcEdTaLixNSPjodFi76UBh61McHJGBSRcB3Yl1ApvSEL7OM71t58XZ25LOhx sG7kqLUb5RgPaBh+BnxOhJ8Pvwn9kyHsTjSXD8NbF2yOX9pysQVYvBO0hZGDf+3eZpYS lJWEGzj2gWh6bHVjFDD7MmScrO09NBlZKmXNI4JpDELSgqleSONd+i2Db7dmd5rbMrV6 eMxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=Slvs2z8Ij+tCOJyrpOiMaMnCa0uBUJ7Sm9G8X2swn6s=; b=EbK8vEkEuBAcuLk/Lqln/aTETUPaWBGNeauMLIJQ/Nfe4o+nSlu92hv2/Yg9Kddhui RNV+VPfj3XhvssEZhQbhs9avzcsxygMBigHi8cXRWBnU8BJP28fYuQBftb2v1rpdPI19 zknokaJWHtBDB0zpUVlQEiFx9JeDLB0hFHOhOeD6QT7mix4OtuHgHXkmZy4ts/O8PT++ PkyAwbkhNxBp53U6UO4R44tu9G4DBSGc8Ac5SRtug2LnPGaLFaV1w2KaBm6rX3PmetiY c5v4WkLgnN9KZnyexvWWbk3p6ZiY3Xq3qFzsNXKzB9EhFxIVLnzRxAVE5kK0aukYPxd7 4KfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17si11499351plo.406.2019.08.20.00.55.05; Tue, 20 Aug 2019 00:55:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729363AbfHTHyP (ORCPT + 99 others); Tue, 20 Aug 2019 03:54:15 -0400 Received: from mx2.suse.de ([195.135.220.15]:44672 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726049AbfHTHyP (ORCPT ); Tue, 20 Aug 2019 03:54:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id AE5E9AE1B; Tue, 20 Aug 2019 07:54:13 +0000 (UTC) Date: Tue, 20 Aug 2019 09:54:05 +0200 (CEST) From: Miroslav Benes To: Joe Lawrence cc: Masahiro Yamada , Linux Kernel Mailing List , live-patching@vger.kernel.org, Linux Kbuild mailing list Subject: Re: [PATCH v4 06/10] modpost: Add modinfo flag to livepatch modules In-Reply-To: <9127bdf6-1daf-0387-88fb-6f1118dd6804@redhat.com> Message-ID: References: <20190509143859.9050-1-joe.lawrence@redhat.com> <20190509143859.9050-7-joe.lawrence@redhat.com> <20190812155626.GA19845@redhat.com> <6c7e4d19-b993-1c14-d6cf-6aa1ee891361@redhat.com> <163ad1fb-ccbf-0a3e-d795-2bb748a0e88f@redhat.com> <9127bdf6-1daf-0387-88fb-6f1118dd6804@redhat.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > How is this feature supposed to work for external modules? > > > > klp-convert receives: > > "symbols from vmlinux" + "symbols from no-klp in-tree modules" > > + "symbols from no-klp external modules" ?? > > > > I don't think that this use-case has been previously thought out (Miroslav, > correct me if I'm wrong here.) > > I did just run an external build of a copy of > samples/livepatch/livepatch-annotated-sample.c: > > - modules.livepatch is generated in external dir > - klp-convert is invoked for the livepatch module > - the external livepatch module successfully loads > > But that was only testing external livepatch modules. > > I don't know if we need/want to support general external modules supplementing > Symbols.list, at least for the initial klp-convert commit. I suppose external > livepatch modules would then need to specify additional Symbols.list(s) files > somehow as well. I think we discussed it briefly and decided to postpone it for later improvements. External modules are not so important in my opinion. > > > > BTW, 'Symbols.list' sounds like a file to list out symbols > > for generic purposes, but in fact, the > > file format is very specific for the klp-convert tool. > > Perhaps, is it better to rename it so it infers > > this is for livepatching? What do you think? > > > > I don't know if the "Symbols.list" name and leading uppercase was based on any > convention, but something like symbols.klp would be fine with me. symbols.klp looks ok Miroslav