Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1888988imm; Thu, 18 Oct 2018 06:02:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV63cwQgAbDXtBh1E67iMq4hfxn7CtkD4PdefBObuGnFoiyNAGbPHAuKiDMeA37hHMUHbxbwQ X-Received: by 2002:a17:902:8a89:: with SMTP id p9-v6mr30488409plo.183.1539867771902; Thu, 18 Oct 2018 06:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539867771; cv=none; d=google.com; s=arc-20160816; b=mo3WQhvgtuADHUYQLMfVQK3+ZeJ0wfpcOmCs0lvf0WuTbt72wsoYkOrE9JipBXqx8v y09lvN89as2OrRWi0KcB4/dvW+poofawI9jUvvN/gUvtPqItY7BMemWRDghP0QUsjqvs KsKvuEWEtuFIUsZPcYzkHkPLY/qWmIpFpXDh4gYRLjT3I9ohcxgy86gGdsBB8D1pUYWn 3GuxQJbf7L7uH9aHJgbi+pk/5pQn3NDmUAh16eM2o7VIHQMGDNpfa2zQaml/CH61KIp1 KK9DC4mSvNVpPymKbPmBWhUvNEVEQwGiMvYqvEFR0lKHeWflofVuYmHXJsyGkmKPdraM 1YcA== 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; bh=YP7Nksvs15q9qcEcXXY8aUDdjWU1TzeMfH7g1uR8ClM=; b=PvMV9xlppd70tsw+RmfmenfPUZrvjfgH/Zu/EuAsHU9i1BFbL7HPY0omPSK/i7AJQ7 1CylhvU4JjiwWXEcnREiugW7bP+RCBi7amZxRv2ZfOGDkO8NjSBu8HbADyqGFK+xBfO2 USvCJT9YDrLrtoLPlzGh053Sutrr+Ly5phsHehoIjArSUKOPylvz9k9Fe/NeYrAzhk/6 3v83jvHhRofVYILH0SPe7F2xcHTfAlo9RK3SLiSnDLBeYf6O0i8iaa0RDMnaRjwUBtqE nFT9u0kaNCAuFzgYav0wNBGUptKHNk/Oav71ZyQPfe66eqPz9MscOHEq0f2iIVBkzejf Wljg== 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 b68-v6si21592187plb.398.2018.10.18.06.02.35; Thu, 18 Oct 2018 06:02:51 -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 S1727634AbeJRVCA (ORCPT + 99 others); Thu, 18 Oct 2018 17:02:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44359 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726758AbeJRVCA (ORCPT ); Thu, 18 Oct 2018 17:02:00 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 876D2C794A; Thu, 18 Oct 2018 13:01:04 +0000 (UTC) Received: from treble (ovpn-123-182.rdu2.redhat.com [10.10.123.182]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C92C451C9D; Thu, 18 Oct 2018 13:00:56 +0000 (UTC) Date: Thu, 18 Oct 2018 08:00:55 -0500 From: Josh Poimboeuf To: Petr Mladek Cc: Jiri Kosina , Miroslav Benes , Jason Baron , Joe Lawrence , Evgenii Shatokhin , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v13 05/12] livepatch: Refuse to unload only livepatches available during a forced transition Message-ID: <20181018130055.jopab5lxhej7ig4j@treble> References: <20181015123713.25868-1-pmladek@suse.com> <20181015123713.25868-6-pmladek@suse.com> <20181017183519.wfc2n54ga6cyjhfi@treble> <20181018120947.py36o462zdqjknsm@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181018120947.py36o462zdqjknsm@pathway.suse.cz> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 18 Oct 2018 13:01:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 18, 2018 at 02:09:47PM +0200, Petr Mladek wrote: > On Wed 2018-10-17 13:35:19, Josh Poimboeuf wrote: > > I'm having trouble parsing the subject. How about: > > > > Allow unloading of patches added after using 'force' > > ok > > > > --- a/kernel/livepatch/core.c > > > +++ b/kernel/livepatch/core.c > > > @@ -45,7 +45,8 @@ > > > */ > > > DEFINE_MUTEX(klp_mutex); > > > > > > -static LIST_HEAD(klp_patches); > > > +/* Registered patches */ > > > +LIST_HEAD(klp_patches); > > > > Instead of making this non-static, can we just move > > klp_force_transition() to core.c? It's nice to have all the list > > management code encapsulated in the same file. > > Come on! We need it just to iterate over a list of available > livepatches. The logic used to manage this list is trivial. > klp_force_transition() itself is more complicated and it > logically fits into transitions.c. > > I do not want to fight over this. If you resist, I'll move it. > I just wanted to share my view. I don't feel strongly about it. It's just unfortunate that klp_patches is no longer static. -- Josh