Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1059063ybl; Tue, 13 Aug 2019 06:49:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXZvf4isFCIAT1EBEwOonGya79Yfkc9jdt65ITPP5GZvrwhlQNhHg6fBK1Jp0Lg2odQ70S X-Received: by 2002:a62:b60e:: with SMTP id j14mr41577200pff.54.1565704191616; Tue, 13 Aug 2019 06:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565704191; cv=none; d=google.com; s=arc-20160816; b=kPt1MTTIVk2tWYCp11qiStAaVGsVSmuRGLrWV9Q4Kcx2OIDsITqIdmpefmrJ1QpjmH tzTNIXOY1dphcOblaKpZLLMuNyCyIczIIR2M766cHiPGvizZLgCEzEjl6s13UOk+2YPG ZuzIl8vTwVx5k119N+iJZl86Ck3s+gV8n3nVo6zKTT7OsnIGlKcNwEHTX+T8cWk2EL9i 18/oHztFKMzDGcpSPyP8bHje/1BIqjdA7Y8Xth/HUYPDcPLO2Ht5wlGjFvNde/RhhQfw YY8+Nl8Wc721taAoB4d5XYa4oVU8P2ETf+odshPIC4W23EMvLrl48aYbgFoKnqia/WoR Bh8Q== 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=D19v71DUcb/PjKRF7WvIiZJBDJeJwSoPOS1NWT2dBq0=; b=LRj2eYO6/KpG0ODwnuwRzLtDufmZkuMDvSuPU0HqoWUg8r2pKmzfvFBKHn/sXld89R 5PqKTySYVb5+w0cb9bIn9hRK6/K94b/XADabW7vdpyTSqG3GVS/IZwN6KJTIOik80c+u bh1dELxbi+Ywo4alY/r0aLl3SjFKUa5HB8LKYGPKF4ExDv0+wRPg2S4NSOstWRCTXMwW QCM6U2+XYtt1suRrLIaTGO/xPxhHnovJ6cj+aTP4Az2/Fk9+FrIKJWghU/KZGsi1GdlT b+xwDjkkz7IqysdfM0VkL1ocoGTs0DRyQfEHLkfetm7SyB9UeI6PAEY4aZIsaewntEhj 4rrA== 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 u190si65115400pgd.547.2019.08.13.06.49.35; Tue, 13 Aug 2019 06:49: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 S1729288AbfHMNrG (ORCPT + 99 others); Tue, 13 Aug 2019 09:47:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:59636 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729229AbfHMNrF (ORCPT ); Tue, 13 Aug 2019 09:47:05 -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 62248AD95; Tue, 13 Aug 2019 13:47:04 +0000 (UTC) Date: Tue, 13 Aug 2019 15:46:59 +0200 (CEST) From: Miroslav Benes To: Petr Mladek cc: Jiri Kosina , Josh Poimboeuf , Joe Lawrence , Kamalesh Babulal , Nicolai Stange , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/5] livepatch: new API to track system state changes In-Reply-To: <20190719074034.29761-1-pmladek@suse.com> Message-ID: References: <20190719074034.29761-1-pmladek@suse.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 Fri, 19 Jul 2019, 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 a simple and generic API that > helps to keep and pass information between the livepatches. > It is also usable to prevent loading incompatible livepatches. > > > Changes since v1: > > + Use "unsigned long" instead of "int" for "state.id" [Nicolai] > + Use "unsigned int" instead of "int" for "state.version [Petr] > + Include "state.h" to avoid warning about non-static func [Miroslav] > + Simplify logic in klp_is_state_compatible() [Miroslav] > + Document how livepatches should handle the state [Nicolai] > + Fix some typos, formulation, module metadata [Joe, Miroslav] I noticed couple of typos along the way but apart from that Acked-by: Miroslav Benes Miroslav