Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp871456ybi; Sat, 15 Jun 2019 13:48:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgVr3ItOtgMfAQVJDVuU5PsQNZe8dSlM/h6GzrUKnl68QX5bwdU84Z6mksf2DszgX9sfrQ X-Received: by 2002:a17:902:b110:: with SMTP id q16mr92812458plr.218.1560631717924; Sat, 15 Jun 2019 13:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560631717; cv=none; d=google.com; s=arc-20160816; b=dr3Sl5qX+kk5L/TWMSIUUr94CAMvsCwh4+TY/PuThLInjeatGd7hgIQM7UQjjPcqiP f8nJmI5oHlSqpW7tcgCtm1JgUPLTuMUNNtzIGoAw992alsSrsmr6XyzkH2BYAt3o2pIp 0JBc+D5XimSZBchy247b/a6HabvqOqO/rSKX/MYY8ffrWe1SJ3TovYnnSYBy4OFhWYEZ k11H1AqmgSUxY3/BTsQG1krkm4rbaaa4y9F0G9MdSjX+b9ibez259YDv2MNdTOKJkf1P tT5bB7f2OoSPMpD+twZ72HOsFv25Bldf5UnTZVSqHoe8jLj3FPSkqHaz5sYqVjz5NoJ3 VPEA== 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=FUdYi8ttCt1I61KHrbTd20Nqsffh3iZtZBwXIji5lEc=; b=pT7DiocuyxQMYpWTCFpsn1qvGpFgoBuF20HwO9AD5TiDP8Ckxxdcqpdoh2x9+1KNYj PUaY/YWFpD6mxauZRkxzaM8f1IrHq3d6wJh9GIlrmXS4G296ibr9y2UZZ8c5/oqvExJF hZ1fGoHMmz/zyVm1PMS7tmF2UAgMmr3GI8SPoFyS0lrefWsbtVbhPD9k99NpJ3NQiqa5 4T1k7pwTvk/9OC5Q9KyUCYlum0irat65AS+S7J26aAnLK2j0MIJsvmYCblsdkmJ3PVNH KdgD95AV1P+qsgFjoocerCLtmgw2QxT9or33q8lFtp6TA2mozengN+AB8ah6ieGdYnjD jhEg== 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 g132si136986pgc.259.2019.06.15.13.48.22; Sat, 15 Jun 2019 13:48:37 -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 S1726515AbfFOUro (ORCPT + 99 others); Sat, 15 Jun 2019 16:47:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60838 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbfFOUrn (ORCPT ); Sat, 15 Jun 2019 16:47:43 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9A6222F8BC8; Sat, 15 Jun 2019 20:47:43 +0000 (UTC) Received: from treble (ovpn-112-16.rdu2.redhat.com [10.10.112.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2F05960CA3; Sat, 15 Jun 2019 20:47:38 +0000 (UTC) Date: Sat, 15 Jun 2019 15:47:36 -0500 From: Josh Poimboeuf To: Petr Mladek Cc: Jiri Kosina , Miroslav Benes , Joe Lawrence , 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: <20190615204736.coc2gbgffahkirnz@treble> References: <20190611135627.15556-1-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190611135627.15556-1-pmladek@suse.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Sat, 15 Jun 2019 20:47:43 +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. > > 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. > > Petr Mladek (5): > livepatch: Keep replaced patches until post_patch callback is called > livepatch: Basic API to track system state changes > livepatch: Allow to distinguish different version of system state > changes > livepatch: Documentation of the new API for tracking system state > changes > livepatch: Selftests of the API for tracking system state changes I confess I missed most of the previous discussion, but from a first read-through this seems reasonable, and the code looks simple and self-contained. -- Josh