Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3612048ima; Mon, 4 Feb 2019 02:05:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN4uQnAuIZgnPtFt4rglnC68PswgYHt9KDqXV0ZUntidtKErNoJQRoSxSMfgfi+XeId3tS6L X-Received: by 2002:a17:902:28aa:: with SMTP id f39mr51415099plb.297.1549274743019; Mon, 04 Feb 2019 02:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549274742; cv=none; d=google.com; s=arc-20160816; b=Clfqrm3YCj9vR6XuFMFdIIKiyWEKHx5Kx6V9bmr1SogBmaUJhAg8dXdaWxttJZLFhI F65jS95kVxJ9DUDWHpa9e6XVCBJ6GNEGy3/PEu9t++xFYkm7OhXNHGdiNOhVb2VPvxMl 3EZJsb0jSiOCq86iv4w106juQcfxZI6r4XnlxLb9ekeICh9boEFfobZ34YqvwxAFFyV+ MV2HCz1CUsYrOdB6OFa85IHQGWFGBhv6ilUrm3VO7bb968Sst/RVT5n3Pw49ln8tHGWB 6ANoFZD6AP22UuyLqmTDyWr3pIY69wUIxqHBgttl/BBbY8ETIvhaCiiQVVT1Jvi1fKVb ancQ== 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=CqyVHZh1anUfXpP0OMxg91WcMH7NGHbyguZbE33UTmg=; b=LgahgztnN6ZY522TWyd40XuH/rU0f8vDJl2UnMIVYRBcTq4mbNlYwopxh8/AFbcK6T VMzWtoY1/aAs/SWWIXbnb1rohidf8oZllmgvTQSJ5SuIqh6RyFWBro2CChBpNKeThRUs vfIuw2eH7dNeiAt+DSjof04IVP0GCyrACCm/vzByy9TYzNZFKiR86dQpaJ5niD373zxV npNXBuASWm7zihNE9EXkga3MNSJckop671UVUmZpMTSYHJ0pBqM6jST7lHDgbe/6bPG8 P4UQ9cJkA298A5hYnjQ0MwzDRvGGCN/2MkW7Ct1kRX1qJlYiEeuDakw2efL6T/TiYdfd edrg== 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 j187si12988005pfg.160.2019.02.04.02.05.27; Mon, 04 Feb 2019 02:05:42 -0800 (PST) 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 S1729091AbfBDJk2 (ORCPT + 99 others); Mon, 4 Feb 2019 04:40:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:41646 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726537AbfBDJk2 (ORCPT ); Mon, 4 Feb 2019 04:40:28 -0500 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 E765AAC6C; Mon, 4 Feb 2019 09:40:26 +0000 (UTC) Date: Mon, 4 Feb 2019 10:40:26 +0100 From: Petr Mladek To: Joe Lawrence Cc: Jiri Kosina , Josh Poimboeuf , Miroslav Benes , Jason Baron , Evgenii Shatokhin , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] livepatch: Followup changes for the atomic replace patchset Message-ID: <20190204094026.izlifqzkwjegpsca@pathway.suse.cz> References: <20190116161720.796-1-pmladek@suse.com> <20190201160303.GA4241@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190201160303.GA4241@redhat.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 2019-02-01 11:03:03, Joe Lawrence wrote: > On Wed, Jan 16, 2019 at 05:17:16PM +0100, Petr Mladek wrote: > > This patchset implements ideas that were mentioned and postponed during > > the review of the atomic replace patchset. I hope that I did not miss > > anything. > > > > Well, I did not add __used attribute to avoid non-static warnings > > in modules for the selftest. The work on the sample modules somehow > > stalled. > > > > BTW: Does it make sense to maintain the sample modules any longer? > > We could point people to the modules used by the selftest instead. > > > > > > The patches apply on top of livepatching.git, branch > > origin/for-5.1/atomic-replace. > > > > > > Petr Mladek (4): > > livepatch: Introduce klp_for_each_patch macro > > livepatch: Handle failing allocation of shadow variables in the > > selftest > > livepatch: Module coming and going callbacks can proceed all listed > > patches > > livepatch: Remove the redundant enabled flag in struct klp_patch > > > > include/linux/livepatch.h | 2 -- > > kernel/livepatch/core.c | 57 ++++++++++++++++-------------------- > > kernel/livepatch/core.h | 6 ++++ > > kernel/livepatch/transition.c | 9 +++--- > > kernel/livepatch/transition.h | 1 + > > lib/livepatch/test_klp_shadow_vars.c | 8 ++--- > > 6 files changed, 40 insertions(+), 43 deletions(-) > > > > -- > > 2.13.7 > > > > Hi Petr, > > This change is trivial, but since folks are letting loose various static > code analysers on the livepatch samples and selftests, could you add > this to your patchset. The shadow variable selftest is happy with this > change since it expects to see specific (non-negative) ptr_id values. Sure. I am going to queue the patch into v2. Best Regards, Petr