Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1034290ybl; Tue, 13 Aug 2019 06:27:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3Bm3a4dvIyUCSp2FM6Z0MK3Yc6BL90gucCB10E3g+QI+5MR2D8QWwa7rGhU1piaEjDE21 X-Received: by 2002:a17:90a:4803:: with SMTP id a3mr2330775pjh.58.1565702837204; Tue, 13 Aug 2019 06:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565702837; cv=none; d=google.com; s=arc-20160816; b=UmH/WarwF5giI3xsnzNHpMxlb3KmXzFFU+PIIzOIgyQ/eX26eqslR+OgK7hb7Zten8 ahWTjTL3XQDT2Ddy4VVldxRC1nrkPnmpqsSvnLyYYJteTCbssdDb/Y4rtyNkLVLVxMwH Hg9f6CKmJ+bK62bj8FxzjuNZ9d+pDW3ykgKbXqKLRKDnirsgTmJjqSArBB1kFoxLDne/ shK4udNoAJ8f9kCTBNgja5nlKnVCyym1SM79ipadRWVD/jrZETyFT5ZI4y/iV4EI5OY5 wGAASQj9e7uIhtghZr8rjwb9kcKmYqODvac+r7mZ3XfM06e+CPl1lopJNHE6xZhxAJBb haRw== 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=0AtkUQBKPbKDuhhE1o7+kcLX5tXj42vFwJQiJpPPcKg=; b=qJ4xZn5lRM4QPhU/c2rRdLjqrhIgrFsy3//zbhre//hFcrjUUlhldbySBEo1waS72q NMHkcIZL1des0EUt164JJSnYtlg5MEOHK11Pfw6PTizwblL7ZJvnimJZnpEv6rF3qrJn iTVybtIr4yASIap6LrpWDGlREQKnV+cgAO+RifAwE0i6crXToUQg5RguEtKiigCBd8M4 cogWDzGZW0mNF9r5U9ieXylqnbADm9NUx0ysVRM+H1oJ8uAH24Wjsor8lRh2Zvw7zZsA 6VBg/4blgG1R6zOJHvtOuZM1CRWSNIWGosVDiLg90jawKU+CWzNm0x0Bbj76g8x0LkVS 2FIA== 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 i2si66124558pfb.206.2019.08.13.06.27.00; Tue, 13 Aug 2019 06:27:17 -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 S1729118AbfHMNYh (ORCPT + 99 others); Tue, 13 Aug 2019 09:24:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:52340 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728134AbfHMNYh (ORCPT ); Tue, 13 Aug 2019 09:24:37 -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 C6C30AE62; Tue, 13 Aug 2019 13:24:35 +0000 (UTC) Date: Tue, 13 Aug 2019 15:24:30 +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 1/5] livepatch: Keep replaced patches until post_patch callback is called In-Reply-To: <20190719074034.29761-2-pmladek@suse.com> Message-ID: References: <20190719074034.29761-1-pmladek@suse.com> <20190719074034.29761-2-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: > Pre/post (un)patch callbacks might manipulate the system state. Cumulative > livepatches might need to take over the changes made by the replaced > ones. For this they might need to access some data stored or referenced > by the old livepatches. > > Therefore the replaced livepatches has to stay around until post_patch() s/has/have/ Miroslav