Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2891227ybl; Mon, 19 Aug 2019 08:58:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgTmkBihWWCZsJSh3Xiy7xkKZUt6aE5UYIHX7zwoFAMDdOPhigNUuAOx6E0xPRrLT1Feq2 X-Received: by 2002:aa7:9210:: with SMTP id 16mr25485503pfo.11.1566230283825; Mon, 19 Aug 2019 08:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566230283; cv=none; d=google.com; s=arc-20160816; b=VKQ8ZQu5QDBgs98IEDi1uR4tDYJ/sIkxoU/jVHWzFfZ8Ikn/6HfhQNzv4AWfMF5aGG +QIjtZx38140UFWdD3HtZsKWybaYtSskkZyVsUEh/x4QP0eFAxYtLGl7pJYHPLdaYCvr oECzA7v1gGLJ8Mww2vTXeBJA2hjZUzJstdEgDX1BLfbHTz1d9mez/+KftmTTFBwE+NQS 4LIYBXAqREguzb9JyBGSdO2987Q+bvnasnUAHdOf3FHuYpGEL01LZFAZ3ha54jcdnj6r ZLwcP56xaS++DAQ7KUQ+AJMNBs33sGQL4GsN6HRrLYdllqJSClAZb8Df0ueijiMZxTTk yk8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=XNiw+a0bv1bklJNBssM65VWyaCSu0Ce5z1hJHtOaH1c=; b=w8hz0wEpW1qRLdYbwSXNrPCgAbRFLHTDbiRHZLzqe43Eu+uw4eysQULxRiN4Q66n9c koPMcyN15EKQSjVI9k8KW5KdmglAlCykxt1SRZzUW/RRpxMSUGnFcGHVF4n+fhOWNwPD 92j4maTXUvIl78rJVhWUYMbGkzK0T1gA8DLayzg3AsYMKmXip2X6JW2Ny9aWYI/m3DY5 OzAHdvb50oCvsRp/vkNmjqdSV62INlOju6zTjnHHngDzn2YX7VInZ/fiIfRy/AWrFtOx DAn3a0uGGdKJE9WYjG6tgG7ohiHYbpOZje8cKAliJukbFTwqpBVcZJXHABvuUkkE0HuD dtIg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si10208088pla.196.2019.08.19.08.57.48; Mon, 19 Aug 2019 08:58:03 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727824AbfHSPzV (ORCPT + 99 others); Mon, 19 Aug 2019 11:55:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45192 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbfHSPzV (ORCPT ); Mon, 19 Aug 2019 11:55:21 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 06BE2301D678; Mon, 19 Aug 2019 15:55:21 +0000 (UTC) Received: from [10.18.17.153] (dhcp-17-153.bos.redhat.com [10.18.17.153]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 76FE752CE; Mon, 19 Aug 2019 15:55:20 +0000 (UTC) Subject: Re: [PATCH v4 06/10] modpost: Add modinfo flag to livepatch modules To: Masahiro Yamada Cc: Miroslav Benes , Linux Kernel Mailing List , live-patching@vger.kernel.org, Linux Kbuild mailing list 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> From: Joe Lawrence Message-ID: <9127bdf6-1daf-0387-88fb-6f1118dd6804@redhat.com> Date: Mon, 19 Aug 2019 11:55:19 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Mon, 19 Aug 2019 15:55:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/18/19 11:50 PM, Masahiro Yamada wrote: > Hi Joe, > > On Sat, Aug 17, 2019 at 4:01 AM Joe Lawrence wrote: >> >> >> I didn't realize that we're supposed to be able to still build external >> modules after "make clean". If that's the case, then one might want to >> build an external klp-module after doing that. > > Yes. 'make clean' must keep all the build artifacts > needed for building external modules. > > >> With that in mind, shouldn't Symbols.list to persist until mrproper? >> And I think modules-livepatch could go away during clean, what do you think? >> >> -- Joe > > > Symbols.list should be kept by the time mrproper is run. > So, please add it to MRROPER_FILES instead of CLEAN_FILES. > > modules.livepatch is a temporary file, so you can add it to > CLEAN_FILES. > OK, I'll add those to their respective lists. > 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. > > 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. Thanks, -- Joe