Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2366066ybl; Mon, 19 Aug 2019 00:32:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyROdluAiB+/Xpeq5BkG+O3o9OTYXG3b18Qe6jAAO/+LVHmtkPznI0f2GXSUB9Tz8jprCgd X-Received: by 2002:a63:6a4a:: with SMTP id f71mr3468808pgc.409.1566199971608; Mon, 19 Aug 2019 00:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566199971; cv=none; d=google.com; s=arc-20160816; b=kiVB3meDBJiuFFm10Lt+aqvwVDgUBQB7aUIW3yXSkMUfKetAuoM8wflH4/lmJNDvzz 1Q4gwDmwvkXZxBrW2Kcj07IIbq4ZUNPKXLc+B0cb7xetEdGRVnZZGTXrl9opQJ8wBWTd ALbP4bwdbl+Je5zZ6dtv1TL7/TBqEPtWTe/7Ko1STcNBPNKuk/Im5iBTAczKDWFc0WIK 9SBmzXY1/9b4fOK/ClRhvwMnlEzGtpALHvUVXfjUxvvu8EAZNeyppo5Q1UW8R4wSzhiW AFr0W/BxCd6RLpR0onPrFG9zjHsTsXU96Bg4VfFQ75HpEvYeiE66e00jpjj5NPiU9w9g hj5w== 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=nSVwuQqSgRRSTm118pSAZanh+PKIKoJy+pOHdEgGbXY=; b=MMVfs8QC4RMWQIy+WOuv76qvJLw3bLH34vUuEBDFKjOB1XjnyofCuEljYpnlERlM8S cvRQvcb1i05Ui+2EKhR/cqqL5TpXVoV7CbQTGIrNt+hXA4OM5SjJh3h6MvN2ldA2Px0u UpYycow7DH/BJKh5B6QEsHtwUPTN7S7EJgv7Vb5wcGvoLO5XjgLr97LLRHGov7uzkyQg TjnX+bZCQCS3ywHkN8yp7Wj+HxneL40/STsqJHUEtcVA9qznrsKmId8vmnzRXBI98R/j Vll70nZcb1wN7u5zHxmAr6ZUwCglCe7Hdwcd/vL6J5cZKyCC5m+AVvzK2m/BB1P8HofE fT0w== 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 bb7si9291018plb.303.2019.08.19.00.32.36; Mon, 19 Aug 2019 00:32:51 -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 S1726949AbfHSHbv (ORCPT + 99 others); Mon, 19 Aug 2019 03:31:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:55860 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726390AbfHSHbv (ORCPT ); Mon, 19 Aug 2019 03:31:51 -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 483C0AF7C; Mon, 19 Aug 2019 07:31:50 +0000 (UTC) Date: Mon, 19 Aug 2019 09:31:43 +0200 (CEST) From: Miroslav Benes To: Masahiro Yamada cc: Joe Lawrence , 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: 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> 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 On Mon, 19 Aug 2019, Masahiro Yamada wrote: > On Fri, Aug 16, 2019 at 9:43 PM Joe Lawrence wrote: > > > > On 8/16/19 4:19 AM, Miroslav Benes wrote: > > > Hi, > > > > > >> I cleaned up the build system, and pushed it based on my > > >> kbuild tree. > > >> > > >> Please see: > > >> > > >> git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > > >> klp-cleanup > > > > > > This indeed looks much simpler and cleaner (as far as I can judge with my > > > limited kbuild knowledge). We just need to remove MODULE_INFO(livepatch, > > > "Y") from lib/livepatch/test_klp_convert_mod_a.c to make it compile and > > > work (test_klp_convert_mod_a is not a livepatch module, it is just a dummy > > > module which is then livepatched by lib/livepatch/test_klp_convert1.c). > > > > > > > Yeah, Masahiro this is great, thanks for reworking this! > > > > I did tweak one module like Miroslav mentioned and I think a few of the > > newly generated files need to be cleaned up as part of "make clean", but > > all said, this is a nice improvement. > > > > Are you targeting the next merge window for your kbuild branch? (This > > appears to be what the klp-cleanup branch was based on.) > > > I can review this series from the build system point of view, > but I am not familiar enough with live-patching itself. > > Some possibilities: > > [1] Merge this series thru the live-patch tree after the > kbuild base patches land. > This requires one extra development cycle (targeting for 5.5-rc1) > but I think this is the official way if you do not rush into it. I'd prefer this option. There is no real rush and I think we can wait one extra development cycle. Joe, could you submit one more revision with all the recent changes (once kbuild improvements settle down), please? We should take a look at the whole thing one more time? What do you think? > [2] Create an immutable branch in kbuild tree, and the live-patch > tree will use it as the basis for queuing this series. > We will have to coordinate the pull request order, but > we can merge this feature for 5.4-rc1 > > [3] Apply this series to my kbuild tree, with proper Acked-by > from the livepatch maintainers. > I am a little bit uncomfortable with applying patches I > do not understand, though... Thanks Miroslav