Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp998970imm; Wed, 17 Oct 2018 11:36:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV63c+dJEfn31fQemXh3jooOnmol1thkQVlHri7HopDOoIvuT0W8Yv0VgeIFNLpVOgOM8hty/ X-Received: by 2002:a63:eb42:: with SMTP id b2-v6mr25048460pgk.348.1539801366355; Wed, 17 Oct 2018 11:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539801366; cv=none; d=google.com; s=arc-20160816; b=SzUutemOkS7zpKUekZl8QoOEEMQGTDXfq12BLrZlSJ8zUdaKh6MLOius6lvgqgDx/g Gpn32GExPElQCl+BOKrSZVxxO1a9eKg0YvWMystrgfSUM3Gou/EZoPVqXrJFlMt/N6EQ HIuy9fLEcdpPIfupwd0AEB+cBWxS4XvjknzhTwD8R6oavhgoudiv994Q0BVAL9GmGZXd A69aEmhZhby3/w6TTjY7OAesUjn7HTA+hi9NA0BdTlkwcrtMR1ZYxu0ZT2oWUBCVfFjJ KyONgjMOcX7Md7y+/PEdXi1hmXdc0G0r6C4djwyut8w+ri6ETfzu91BqOZmo9L64PAt6 TAlg== 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=M82o/duM+V3ITCraVvYHKImvesRRJ/mBeDQVpO6Znwc=; b=WD4bPHRzevxBJzOuONQv6piUSKVmeSGo5gtVd1eBVthN9873J1j3w2blzmWiCeh9N0 3w1MXbCaX0qxTOczDfQ2FADKQp4o4jlhw7RyMYQjtPFuIYbqL0z3lXuZ8FaGJ992OVOx kZIAqBahtdBGKZ71/NaQll5VooRDiD0bNDa4qE2pdz/DZma/FKGzqMiqYQNMK+i3VunV li7KxTCbGlqB8fglsm9++Fmi2kbgknv/AS6MYUzq5THIqwQhpXpjCjj4k0vTYz8uSTCK 8WMFLCJWcu3WIjT8KRb6n4YHEFmU8CdD9YKSR3E3P0NQn1Uio+vEoU/VkmdnfqxW2NH2 U+BA== 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 a13-v6si18501300pls.229.2018.10.17.11.35.50; Wed, 17 Oct 2018 11:36: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 S1728243AbeJRCcZ (ORCPT + 99 others); Wed, 17 Oct 2018 22:32:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53860 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728095AbeJRCcZ (ORCPT ); Wed, 17 Oct 2018 22:32:25 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5E6E23082B6F; Wed, 17 Oct 2018 18:35:28 +0000 (UTC) Received: from treble (ovpn-122-46.rdu2.redhat.com [10.10.122.46]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F2A557AB56; Wed, 17 Oct 2018 18:35:21 +0000 (UTC) Date: Wed, 17 Oct 2018 13:35:19 -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: <20181017183519.wfc2n54ga6cyjhfi@treble> References: <20181015123713.25868-1-pmladek@suse.com> <20181015123713.25868-6-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181015123713.25868-6-pmladek@suse.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 17 Oct 2018 18:35:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I'm having trouble parsing the subject. How about: Allow unloading of patches added after using 'force' ? > --- 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. -- Josh