Received: by 10.223.185.116 with SMTP id b49csp6420928wrg; Thu, 8 Mar 2018 07:12:00 -0800 (PST) X-Google-Smtp-Source: AG47ELscY5QCfxrsFT8yRua1RGWdrQvpziEOtUGPwaAoDcKZgZfQd+vUDxxkVMNWcOwA91PxcnEd X-Received: by 10.99.164.81 with SMTP id c17mr21527938pgp.114.1520521920056; Thu, 08 Mar 2018 07:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520521920; cv=none; d=google.com; s=arc-20160816; b=qwn9xzUVkvg8FDUq3tnB+hMRFA9sCuOWFoxqWJMije5rTHd2l1ZZlBK8F/Cm+F152U cPdLjPkaMoTaklz83Bx1E1LSNlF6o7w+69tdnpnLdETq9+mrZZIWW3IFWzPcV/EpgMCP NJdvGG0m4POPXv5WZ0PJlgfzZ710vjeiClPTLmUQWueNBbtQsR+uf2N1Dr6lNZo+VaUN YpsKPgYCqdW56LUrEYllq/qrF1EgIxAxxIGIKNalfhLeI3LvWSgXbqMoObsls2j8BIbX WobYnRzxuwangeri0uYZ1B0k76Mcdf8MtnGbo1LnqbAdZJFVRE4ljMA/rv7ADiRUhqMr UzBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=yJoF6QltRNy6WPaMJKNlQ/4dSGzHtk9d0ZxSeqgbenk=; b=hONJ8/yFmzNe2AhZMfBr96dRPD8rEfNbjj3eP/VTgkQKPhYXhhE2pZ//6DIExyq6Qy WrwvIk4WTOcGBpRQTuPrbhoN4VCWwLaR2+YBpZMuNeGUiYZ1wfsiJOWvBJToEZwvoVTo vOvVYsIY1a/BPii2us+E6vAvnpuuHquJKCXyHj1PwzKUfnQp+hT5AysAsgxjMwfzS7xI KINbhwVwHOgITlAou3NoJz3lXnrV3CoRPR+k3NjuO93VdgvTPNRqGPZfamZEC+jVKUoo lD/Fb+7Td9RILcfzLD3/9rpbzyfB6xDJv85fZc87YET3ds2XycBLHuBPEECT4IgluC5u 8n3w== 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 l18si13011141pgn.103.2018.03.08.07.11.45; Thu, 08 Mar 2018 07:12:00 -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 S935764AbeCHPJz (ORCPT + 99 others); Thu, 8 Mar 2018 10:09:55 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45608 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932085AbeCHPJu (ORCPT ); Thu, 8 Mar 2018 10:09:50 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AA5EE8182D16; Thu, 8 Mar 2018 15:09:49 +0000 (UTC) Received: from jlaw-desktop.bos.csb (ovpn-121-203.rdu2.redhat.com [10.10.121.203]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1075F2023227; Thu, 8 Mar 2018 15:09:49 +0000 (UTC) Subject: Re: [PATCH v10 00/10] livepatch: Atomic replace feature To: Petr Mladek Cc: Jiri Kosina , Josh Poimboeuf , Miroslav Benes , Jason Baron , Jessica Yu , Evgenii Shatokhin , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180307082039.10196-1-pmladek@suse.com> <45877626-2d41-4af8-a8ff-5897585122ad@redhat.com> <20180308150150.guwwj2exrymugoeq@pathway.suse.cz> From: Joe Lawrence Organization: Red Hat Message-ID: <2f94c399-fe72-58f9-bd63-b08c46bb47b3@redhat.com> Date: Thu, 8 Mar 2018 10:09:48 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20180308150150.guwwj2exrymugoeq@pathway.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 08 Mar 2018 15:09:49 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 08 Mar 2018 15:09:49 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 On 03/08/2018 10:01 AM, Petr Mladek wrote: > On Wed 2018-03-07 16:55:53, Joe Lawrence wrote: >> Running against v10, callbacks seem to be good up until I disable an >> atomic replace patch. My understanding is that the original patch's >> unpatch callbacks should be skipped (as they were). I was surprised to >> see that atomic replacement patch only ran it's post-unpatch callback. > > Great catch! > > I guess that it is caused by the heuristic used in > klp_unpatch_object() to decide whether the object is patched > or not. > > We need to change the state only when manipulating the > statically defined functions. > > Thanks a lot for so extensive testing!!! Sorry for not getting to this series sooner. I'm trying to refit these tests into a kselftest so we can more easily reuse them. Still hacking away at it, but I'll post when something soon to start a livepatch selftests conversation :) -- Joe