Received: by 10.223.185.116 with SMTP id b49csp1188470wrg; Fri, 23 Feb 2018 13:35:16 -0800 (PST) X-Google-Smtp-Source: AH8x226ZxJbtxHalNWzzY4BfD4YMbf2gMofPpRLPxP+0e66AnjQ0G6qLTZxKfBjgs0xyIt5YwNrH X-Received: by 2002:a17:902:5797:: with SMTP id l23-v6mr2914422pli.56.1519421715990; Fri, 23 Feb 2018 13:35:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519421715; cv=none; d=google.com; s=arc-20160816; b=V7umGZ91FBU8YIbHWSDNJH6WqhsT9sj6c6MxAFQVu0eZjg/Pbb0e94qReqoNXLoX0G /54MnNDphvzS5pjOufe/y2J/XFDiDj9UINsxejQM6Sdi44jkP4N8/41nbWKk6aGXRKyt QGzJ6Hw6gtsGGd/9MMYoM3rFwfNJanHI3o9CPB6lpqz3LLNGnpDcq/CW3rnHl72TC/7I T/sYCtz7SYBlqvbXMnYHR6VtSK2p+JaBsWwQMe/fjQdoSQP9IQuOlBKiqDpYWqYLOx4k nfhgfhlYGnKafjSPJe9M90NTwlTi7fF6thRm//ZyQzOCpHx82UHqbDf/DvPZUP/+N0Bt gZnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=6ahXNITy5AeZW7VEYeaYHgBASt068zSrgXtBqSD3z7k=; b=JCdmOUG3YtqBiULhyivvsxGjwehy25urHIKmxTZPGFKbK1qQTWAKbnv390HNhgt8tp Io6YumDskB5MiDAZQSAzDzCRwcK8XFGayg+IUNilQ8BlJdQb70UfRnHxVwBK3zkCz4i9 3Ma4k8jDmhkFZkTmH55+KJqCOVR9qjaZ5Fm2x2cc7fR2L2d8oIsFjAqgq+KjpLJqJLHX vYijdrHnjb/7JR2HMFzHi3xXSzpRdxcY5KOZ4gcnN3k9B6VQPSGohDpSw2TaU3R/4q4U glHkWImzQXBL9mDNB7X1gLpXsZmTyGeytsUoB20bMq8uKsAHW9yFhGWJRSufe920OLJe lMcQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si2328501plk.576.2018.02.23.13.35.01; Fri, 23 Feb 2018 13:35:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752264AbeBWVd7 (ORCPT + 99 others); Fri, 23 Feb 2018 16:33:59 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51992 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751527AbeBWVd6 (ORCPT ); Fri, 23 Feb 2018 16:33:58 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7C53240FB64A; Fri, 23 Feb 2018 21:33:57 +0000 (UTC) Received: from jlaw-desktop.bos.com (dhcp-17-208.bos.redhat.com [10.18.17.208]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3E78210AF9E8; Fri, 23 Feb 2018 21:33:57 +0000 (UTC) From: Joe Lawrence To: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Josh Poimboeuf , Jessica Yu , Jiri Kosina , Miroslav Benes , Petr Mladek , Jason Baron , Evgenii Shatokhin Subject: [PATCH v0 3/3] livepatch: update documentation for shadow variables Date: Fri, 23 Feb 2018 16:33:50 -0500 Message-Id: <1519421630-12025-4-git-send-email-joe.lawrence@redhat.com> In-Reply-To: <1519421630-12025-1-git-send-email-joe.lawrence@redhat.com> References: <1519421630-12025-1-git-send-email-joe.lawrence@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 23 Feb 2018 21:33:57 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 23 Feb 2018 21:33:57 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'joe.lawrence@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update livepatch shadow variable documentation with respect to new atomic replace / cumulative patch functionality. Signed-off-by: Joe Lawrence --- Documentation/livepatch/shadow-vars.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/livepatch/shadow-vars.txt b/Documentation/livepatch/shadow-vars.txt index 89c66634d600..9a2754cf551c 100644 --- a/Documentation/livepatch/shadow-vars.txt +++ b/Documentation/livepatch/shadow-vars.txt @@ -179,6 +179,30 @@ doesn't matter what data value the shadow variable holds, its existence suggests how to handle the parent object. +Use in cumulative patches +------------------------- + +Cumulative livepatches provide a "one-stop" module containing all active +livepatch code. A cumulative patch disables and replaces any previously +loaded livepatch. Shadow variable lifetimes should be carefully +considered when loading cumulative livepatches: + +- If shadow variables lifetimes are specific to livepatch module + versions, it may make sense to free them when the corresponding + livepatch module is unloaded. + +- If shadow variable instances may be safely handled across cumulative + livepatch module versions, then it may make sense to free them from + unpatch callbacks. When a cumulative patch replaces an existing + livepatch, only the cumulative patch's callbacks will be executed. + This means that new cumulative livepatches may be loaded while + deprecated / disabled livepatches may be unloaded without clearing + existing shadow variables. + +See Documentation/livepatch/callbacks.txt and cumulative.txt for more +information on these subjects. + + 3. References ============= -- 1.8.3.1