Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751785AbdFITFy (ORCPT ); Fri, 9 Jun 2017 15:05:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41612 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751601AbdFITFx (ORCPT ); Fri, 9 Jun 2017 15:05:53 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EFDCE80B52 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=joe.lawrence@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com EFDCE80B52 Subject: Re: [PATCH 3/3] livepatch: add shadow variable sample program To: Josh Poimboeuf References: <1496341526-19061-1-git-send-email-joe.lawrence@redhat.com> <1496341526-19061-4-git-send-email-joe.lawrence@redhat.com> <20170609183819.eqehzh72p7qy3wfc@treble> Cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Jessica Yu , Jiri Kosina , Miroslav Benes , Petr Mladek From: Joe Lawrence Organization: Red Hat Message-ID: <160f8789-3ade-ae51-a4a9-2c93f0db32a1@redhat.com> Date: Fri, 9 Jun 2017 15:05:51 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170609183819.eqehzh72p7qy3wfc@treble> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 09 Jun 2017 19:05:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 675 Lines: 24 On 06/09/2017 02:38 PM, Josh Poimboeuf wrote: > On Thu, Jun 01, 2017 at 02:25:26PM -0400, Joe Lawrence wrote: >> [ ... snip ... ] >> @@ -99,6 +130,12 @@ static int livepatch_init(void) >> >> static void livepatch_exit(void) >> { >> + struct task_ctr *nd, *tmp; >> + >> + list_for_each_entry_safe(nd, tmp, &shadow_list, list) { >> + list_del(&nd->list); >> + kfree(nd); >> + } >> WARN_ON(klp_unregister_patch(&patch)); >> } > > What does 'nd' stand for? I think a name like 'ctr' would be clearer. > Ah, in an earlier draft (pre-post) that data structure was called "new_data", so "nd" was simply a short hand abbreviation. I'll update for v2, thanks. -- Joe