Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1213887imu; Wed, 16 Jan 2019 14:58:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN5njcftH+LgeF3hb4JBdUgnr1mAeztPgo3Hdd+KTRB31IZ/+glQQX28MjIXpKsuZN68wfi5 X-Received: by 2002:a65:4683:: with SMTP id h3mr10598469pgr.225.1547679514753; Wed, 16 Jan 2019 14:58:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547679514; cv=none; d=google.com; s=arc-20160816; b=szqsSNIu0mIY140QXWsjsBieCqbL3CHCDLFeDILOaQRocr+sRyPHEVnk86Zo/2gUgh DhEtVX7KrcpRn2oim9iZeL4X/Z+TIWhdf43LpUrt3JrfNhfFu4Z4JIvE6+2nJ78IPoQo +KzzR9Q6Z6Js2bWXICJVH0bcpEhnXxRvyvLmyhMnqPNr/wQG9fwbtKcUakuHE3uSfUXC zZu16xxhbjvHqOurF7j33xJYT15HQuBTQFfNRyzKT3dS5ZtpydrmURUt/+cm0SAEkVIt /AZX2pXypWOAOAjM0qHJ0q18aGeA/SixXvpTmtA+rK26ZsG4eOLX6LRe3diVf7sYJfS7 h2fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=AiSrt2FEDCdlzc8MCI9mcMFiA4WldWkg3T0o1RwOAZQ=; b=ySOFEZ0IQyjcS8STZGj5sspo9pH+cJXWm8mV6WW5J8W3QLq0uhVsRmrUgqzoAZ/U9Z 8XXwEjw/gwm/ashVEf61nNAlkyvq61hC8hQfn98aLYeMjhIGoy8/6XHWXnvOFMXU8CRo lacQ+5g4zxQikWR2LaSfrkHknp3RdIahQ/AqmhFJWgoDkMMp9rdHvd4sSuIzxlMAMWBS aKfELjYdDqEUyzyhSkkaehf+m1rSDGdGnTantKwML+rbjkbq4m/VR+tUQn5stbbdZE2Z 6v/8GDCslSowYqpu9hYlhBQwq9fC6aBccWRocLhYLlOPE/AECeOQ0t7GimK0J9ub8G4G ddYw== 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 r59si7902785plb.247.2019.01.16.14.58.16; Wed, 16 Jan 2019 14:58:34 -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 S2405104AbfAPQRe (ORCPT + 99 others); Wed, 16 Jan 2019 11:17:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:38632 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727988AbfAPQRe (ORCPT ); Wed, 16 Jan 2019 11:17:34 -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 CC9B9AE3C; Wed, 16 Jan 2019 16:17:32 +0000 (UTC) From: Petr Mladek To: Jiri Kosina , Josh Poimboeuf , Miroslav Benes Cc: Jason Baron , Joe Lawrence , Evgenii Shatokhin , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Mladek Subject: [PATCH 0/4] livepatch: Followup changes for the atomic replace patchset Date: Wed, 16 Jan 2019 17:17:16 +0100 Message-Id: <20190116161720.796-1-pmladek@suse.com> X-Mailer: git-send-email 2.13.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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