Received: by 10.213.65.68 with SMTP id h4csp44669imn; Fri, 6 Apr 2018 15:15:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/MTLrrlA2Qp5tbR49zZHGV8EN/kmb79BUDeLr76GRbAnv32Z5O1TpAxZoXGW48qQ9Smsuw X-Received: by 10.98.65.220 with SMTP id g89mr21548935pfd.97.1523052906817; Fri, 06 Apr 2018 15:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523052906; cv=none; d=google.com; s=arc-20160816; b=mTpXFBm+1GzXumO/zfkRTUVf2P4p9efZZNqpztIFj1lBCjGRfjD6Jox6Inwnj4fIBx UIheg9VXYZa+crAub9anL5ocUFYtJEecBKnIKruzBp02OY6Oz2C7Mtk7fTCK2seYQu4G SkQDElvy8wFTiI7HMlXKjJu4N1SABxckpbzUCgxbWpgILpnQMhwFDrhseWneKl6TDVb/ 2OUGvmRNrGoz9D3UIXQ8+JEUOgNGZ7L+FulbIyjX4S5IIQFaL+QmnoAjOBh8R61NkhoU 0fR8+x+V8iXZTSpv9sF3rluZJt1+43uUM6amgEIGWtyWCHPQ6WGZsfxdgI1uidTq10md Z7NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=XS8TwEyFUELSOi4n5MxAbfDJji2Bj8Zp9Tey/CZ4ojo=; b=TDffiO0oOBKOhZlCo5bZLM1ThlEzRmaQZo8hXClf5EHJIFk16lgiTwy/eGytG769E8 cS5Hx+wsXrLnUeLfd+ZhB8iHI7hW20wuyWZMm45RJw61IL4UGfOGIM9eI9pgsqJZkonU mT7qKy0XkvTt90C1VlPCra8xf3n156s5qMKB34wor+VTr4rNiz0tEfteF6KQthN3qJ2s bU2E+A2ueHB11VPgNSfBBVMPT7UwX9e0MUC4HTK5Vyb6W7oSwdbOLK2+4yy7hMmHJqDT iL6p43jkSKxQe6j7cwp4dAeZ4JQuu809fPKw6yZDCJDgcMx+mp/DbgGJ4q2OzMtuEuge y3cQ== 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 a4si7467837pgq.808.2018.04.06.15.14.30; Fri, 06 Apr 2018 15:15:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752718AbeDFWKx (ORCPT + 99 others); Fri, 6 Apr 2018 18:10:53 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33044 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751442AbeDFWKv (ORCPT ); Fri, 6 Apr 2018 18:10:51 -0400 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 01F5B40201A1; Fri, 6 Apr 2018 22:10:51 +0000 (UTC) Received: from treble (ovpn-120-110.rdu2.redhat.com [10.10.120.110]) by smtp.corp.redhat.com (Postfix) with SMTP id 6453E21A4686; Fri, 6 Apr 2018 22:10:50 +0000 (UTC) Date: Fri, 6 Apr 2018 17:10:50 -0500 From: Josh Poimboeuf To: Petr Mladek Cc: Jiri Kosina , Miroslav Benes , Jason Baron , Joe Lawrence , Jessica Yu , Evgenii Shatokhin , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/8] livepatch: Atomic replace feature Message-ID: <20180406221050.y7avkxjt4e23jojc@treble> References: <20180323120028.31451-1-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180323120028.31451-1-pmladek@suse.com> User-Agent: Mutt/1.6.0.1 (2016-04-01) 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.6]); Fri, 06 Apr 2018 22:10:51 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 06 Apr 2018 22:10:51 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jpoimboe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 23, 2018 at 01:00:20PM +0100, Petr Mladek wrote: > The atomic replace allows to create cumulative patches. They > are useful when you maintain many livepatches and want to remove > one that is lower on the stack. In addition it is very useful when > more patches touch the same function and there are dependencies > between them. > > This version is heavily refactored and cleaned based on feedback from Josh. > There are actually only three functional changes. > > It still passes the first draft of the selfttest from Joe that can > be found at https://lkml.kernel.org/r/1520881024-29386-1-git-send-email-joe.lawrence@redhat.com > > > Changes against v10: > > + Bug fixes and functional changes: > + Handle Nops in klp_ftrace_handled() to avoid infinite loop [Mirek] > + Really add dynamically allocated klp_object into the list [Petr] > + Clear patch->replace when transition finishes [Josh] > > + Refactoring and clean up [Josh]: > + Replace enum types with bools > + Avoid using ERR_PTR > + Remove too paranoid warnings > + Distinguish registered patches by a flag instead of a list > + Squash some functions > + Update comments, documentation, and commit messages > + Squashed and split patches to do more controversial changes later Thanks again for all the changes. I think I like the general direction of the patches now, even some of the later ones ;-) Along with the minor comments from my other emails, I still have the question about "does it make sense to enforce a stack anymore". And of course I would really like to see the selftests in place first. -- Josh