Received: by 10.213.65.68 with SMTP id h4csp419876imn; Tue, 20 Mar 2018 06:33:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELuNi8AvzD45dEvbg6utbvDKa+VFFNox8U/4GsbxeTWAIlni5YOykeBWhsiGZa/tG/TAt5ET X-Received: by 10.101.85.71 with SMTP id t7mr12153950pgr.386.1521552811222; Tue, 20 Mar 2018 06:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521552811; cv=none; d=google.com; s=arc-20160816; b=KMVGhVt7N1D0x5b8rDG2vVZChHQVyELFyJm13iE3/xCDQFnGCVum/Jm5nGMuDN3FLd qQwalAWgBmeZkDE6PsWNMS92tDhku3A7sbDTLiGNeZlJ6gWMtEH37xD/gSKTtEoe26ow n1zefkrlu/71qK1hxGTrR8K+6Vs18oBSlCNNPPfwuWW5YSAbgiNA+HGitg6RHUROwhbb CAdItCKdMhnT5t0xiNY7ZOL4LL1ixIK55Mf3GYg3H5n9s8nz/pvaXvJTJGzlqzxzYRCK +VMKQSE5bxk2yolba+5dXaTcE3OaSSgz57/ucxsRTi/44lUIvHAkveqqol2Fhd/Ei0EJ 4udw== 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 :arc-authentication-results; bh=5ZsUPyds99hbN0OtZejl2gfixiqsZsWdpk0grAmYyh4=; b=Bs9KyHpkixEzAxwqZLtSM2XFgDg8sRXo2fpUX7s20CUa7VxXcQfz9GO3ThX+gFOdMm ViHfYwb+veliXaAbyoO67Prln8oqH9VPVoYiRFoB3+qdzbUqc/ZTWpBM7p22IAQc9P4M qbbKmoXoGRihoNIbm6yZZbC80xvqMR/oj6YsZYtoE3dVHACoH/xBKN0wIFmmusOV72FH Wp4P3y2HimNCUVH3Y2f2ih8yPotT5AXxHqi6KZiy2Mfme7wJ0MeugXCyLmAJiF5qp6MY Djmpo4O4XgE0BnWQ7P0Cwt/IcysdNfJH2ZmlG9R36AG709c+gdFr/UoF6803M3MBMZhA isBQ== 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 o3si503357pgs.465.2018.03.20.06.33.16; Tue, 20 Mar 2018 06:33:31 -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 S1753538AbeCTNcR (ORCPT + 99 others); Tue, 20 Mar 2018 09:32:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:59526 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753344AbeCTNaQ (ORCPT ); Tue, 20 Mar 2018 09:30:16 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A8F19AE92; Tue, 20 Mar 2018 13:30:14 +0000 (UTC) Date: Tue, 20 Mar 2018 14:30:10 +0100 (CET) From: Miroslav Benes To: Petr Mladek cc: Josh Poimboeuf , Jiri Kosina , Jason Baron , Joe Lawrence , Jessica Yu , Evgenii Shatokhin , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v10 05/10] livepatch: Support separate list for replaced patches. In-Reply-To: <20180320122538.t75rplwhmhtap5q2@pathway.suse.cz> Message-ID: References: <20180307082039.10196-1-pmladek@suse.com> <20180307082039.10196-6-pmladek@suse.com> <20180313224613.sdkdkcvhpqv54s6c@treble> <20180319150207.iz5ecbsogg5lpwac@pathway.suse.cz> <20180319214324.riyp233trtfxbeto@treble> <20180320122538.t75rplwhmhtap5q2@pathway.suse.cz> 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 > > I don't know, does anybody really care about this case (patching on top > > of a disabled patch)? It just adds to the crazy matrix of possible > > scenarios we have to keep in our heads, which means more bugs, for very > > little (hypothetical) gain. > > It depends if the we remove the replaced patches or not. If they are > removed then replacing disabled patches is rather trivial from both > coding and understanding side. I agree. Since we already have the code, there is no point not to have the feature. It is not that complicated after all. > I am going to add this as a separate patch as well. Let's discuss > it with the code. > > > > > White the atomic replace could make things easier for both developers > > > and users. > > > > I agree that atomic replace is a useful feature and I'm not arguing > > against it, so maybe I missed your point? > > Your suggestion allows easier code but it reduces the advantages of > the atomic replace feature. We would achieve almost the same results > with a normal livepatch where the functions behave like in > the original code. > > Also removing replaced patches can be seen as a clean up after > each patch. It might be more code but the target system might be > easier to debug. Also we do not need to mind about various > disable scenarios. I agree with this as well. Yes, it was a bit painful to review, but I was quite content with the result. I don't want to go halfway and be stuck with NOPs when it is not complicated to remove them completely after the transition. It'd be odd in my opinion. Regards, Miroslav