Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp673756ybi; Fri, 21 Jun 2019 06:20:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6UkPMcU/HX7OOau0PACUE+t9loHgTUY+FowXJIROymSNQhBfpt1GcO+7jGKSsKDPMPnB2 X-Received: by 2002:a17:902:5c5:: with SMTP id f63mr130931939plf.176.1561123203311; Fri, 21 Jun 2019 06:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561123203; cv=none; d=google.com; s=arc-20160816; b=D6AK9j8yrC0ySaxGCsq6rNcAZYporeTcRIVZ043eqlBVT01G4mAr14vwjv4AhCwnXU /qJeWeWCO4VOaOJqSot5XVndWlRM3DQikb1KtKnTcbgj4L2uYtW1udbT6T37HALqiNFc f/nzBauHKRDW0Yz+cNP3ztNJgQPjvNgw/va8CgMJAGdbrn9BftLl3RAGjGNcQR0pRImY Eh+aWch3vfls04qgYNCgLABG1EL43LaiWl0yYYNNDiYh7tAG2NtsTjhW8WJgDNYoCguC YQsBKp+5kt+TqcU1OLMDmfuPAMLFV2QaNqatJG93IuLm4nNPAYbCdbVR5rl/ZkDfNe2O Lcqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JuJiICQxcCvf/iNhN6lmNtyiRqsuKnFhuTEVoIM4gDc=; b=ErF1u7rYETjpSGUqck2zCtMp8zSaXu6s+ynXYi1BxcPLFG2KDfpAttfEsUYX6V8UEr CAEUCc1TpYSUma+VlS/ns7eFD7LpKYIqUMzHm7ai/Fg/Rp6rBZXt15bMmz/U2xl+eBig VdXs4aiILMuKXkKz4Us/S53QpE3AvFqgJvnqrEI/qdJZ77NzbKUuTJKEgFLOkblKJ3Kq ndPRcA1Y1WSQ2lLHPKscxo7xCVUuRij3XeQBF748kqLjDEVd6ybiGAaAtCF2z1X+FD48 WgF0U4ectKoRtYcuDdt4b9NsHE+tMKUCel1WRIUx30QLwrIbVMft3ELPfT+M5pFsZvAR U5fQ== 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 w23si2707707ply.230.2019.06.21.06.19.48; Fri, 21 Jun 2019 06:20: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 S1726210AbfFUNTh (ORCPT + 99 others); Fri, 21 Jun 2019 09:19:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49362 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfFUNTh (ORCPT ); Fri, 21 Jun 2019 09:19:37 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B138D4627A; Fri, 21 Jun 2019 13:19:36 +0000 (UTC) Received: from redhat.com (ovpn-121-168.rdu2.redhat.com [10.10.121.168]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CCBE65D9D2; Fri, 21 Jun 2019 13:19:35 +0000 (UTC) Date: Fri, 21 Jun 2019 09:19:32 -0400 From: Joe Lawrence To: Petr Mladek Cc: Jiri Kosina , Josh Poimboeuf , Miroslav Benes , Kamalesh Babulal , Nicolai Stange , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 0/5] livepatch: new API to track system state changes Message-ID: <20190621131932.GA20356@redhat.com> References: <20190611135627.15556-1-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190611135627.15556-1-pmladek@suse.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 21 Jun 2019 13:19:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 11, 2019 at 03:56:22PM +0200, Petr Mladek wrote: > Hi, > > this is another piece in the puzzle that helps to maintain more > livepatches. > > Especially pre/post (un)patch callbacks might change a system state. > Any newly installed livepatch has to somehow deal with system state > modifications done be already installed livepatches. > > This patchset provides, hopefully, a simple and generic API that > helps to keep and pass information between the livepatches. > It is also usable to prevent loading incompatible livepatches. > Thanks for posting, Petr and aplogies for not getting to this RFC earlier. I think this strikes a reasonable balance between the (too) "simplified" versioning scheme that I posted a few weeks back, and what I was afraid might have been too complicated callback-state-version concept. This RFC reads fairly straightforward and especially easy to review given the included documentation and self-tests. I'll add a few comments per patch, but again, I like how this came out. > There was also a related idea to add a sticky flag. It should be > easy to add it later. It would perfectly fit into the new struct > klp_state. I think so, too. It would indicate that the patch is introducing a state which cannot be safely unloaded. But we can talk about that at a later time if/when we want to add that wrinkle to klp_state. -- Joe