Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3869138ima; Mon, 4 Feb 2019 06:34:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IYBB0RBSolJ5Ehxo9ErxaxEea36hNc4yO7/6d2EgJi5yVx1HU3SyyAw1ipsQb0Dm5JSaG3M X-Received: by 2002:a63:960a:: with SMTP id c10mr13058080pge.106.1549290863524; Mon, 04 Feb 2019 06:34:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549290863; cv=none; d=google.com; s=arc-20160816; b=qwstu+S1tlvZcQwoE6M1iRzH95ssl4qIva59uez/IlZnp916+Nay7VkokRiB54uObe DMhkfg6kk2Pndb15h7MZNKP+VzeFKXYebP4xQ3+n1EvPS+4vQ9MhMQVh2Wp3P9rOClL3 VjSXvNuy5RTqRGTUBxca6Y7M61BQ/NDH0gb2vxtv73Ju6CBRBbB29xEtLlbPdsDu35LE WdwOXSI7sZHToBtTO2TsTFSS2Q/pFdX04JrY/pxxDAuG0YKtB4PwyN4N34j67UytJmzZ 4TObDt0LNBJMRcH36mzB+YXCYR5whdrEeY/5e1qgQ5966KZhuBSRrf/y2uHN2oDC1IT2 Eqsw== 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=CVgkNImgD90Hv2SB8OAMVu4qbrtOHMn9/u+FiLvva+s=; b=wHx0Jc3MCnF3aPk5KcwhWgLkVM87Z2GWUb0rt+SOURZJ1v6tkpnfS045NtmpAikuoV PgmdPMtC5/3+alGoQ7rC8lptlqcVlhmMA3fBfDzhc5fXGo6ROliNrF3nYVsk7BBVIa1G RYYZnK5rzbIFKJm8kM0pWi9HxMAgipIYkdVRFvZGdeQqa0hjcwye62Qpr9itqT2cneyL vexiDqu0DOql26unI1ZW2y/XiyIa744Fbs2jo75eUej5qRictvybASxrt4tEz2ZiZqKI jsbk5Qx5+uu7Cn/gxCDF2eciyDLEt6ON+6ZItM3AGnrk+iIbmocez6Rccm2VoeXpck8E Z1zQ== 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 x6si144532pln.425.2019.02.04.06.34.07; Mon, 04 Feb 2019 06:34:23 -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 S1731111AbfBDN5C (ORCPT + 99 others); Mon, 4 Feb 2019 08:57:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:35680 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729969AbfBDN5B (ORCPT ); Mon, 4 Feb 2019 08:57:01 -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 86A91ADC8; Mon, 4 Feb 2019 13:57:00 +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 v2 0/4] livepatch: Followup changes for the atomic replace patchset Date: Mon, 4 Feb 2019 14:56:49 +0100 Message-Id: <20190204135653.31406-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. The patches apply on top of livepatching.git, branch origin/for-5.1/atomic-replace. Changes against v1: + Added Joe's patch that fixed ptr_id() error code [Joe] + Did proper error handling in the shadow variable sefttest [All] + Removed the controversial patch that was removing patch->enabled flag [All]. + Fixed few typo's [Joe] + Added available Acks. Joe Lawrence (1): livepatch: return -ENOMEM on ptr_id() allocation failure Petr Mladek (3): livepatch: Introduce klp_for_each_patch macro livepatch: Proper error handling in the shadow variables selftest livepatch: Module coming and going callbacks can proceed with all listed patches kernel/livepatch/core.c | 34 ++++++++++------------------------ kernel/livepatch/core.h | 6 ++++++ kernel/livepatch/transition.c | 2 +- lib/livepatch/test_klp_shadow_vars.c | 24 +++++++++++++++++++++++- 4 files changed, 40 insertions(+), 26 deletions(-) -- 2.13.7