From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752390AbdHPP0V (ORCPT ); Wed, 16 Aug 2017 11:26:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59284 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752349AbdHPP0U (ORCPT ); Wed, 16 Aug 2017 11:26:20 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D510B9012D Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jpoimboe@redhat.com Date: Wed, 16 Aug 2017 10:26:10 -0500 From: Josh Poimboeuf To: Petr Mladek Cc: Miroslav Benes , jeyu@kernel.org, jikos@kernel.org, lpechacek@suse.cz, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Lutomirski , "H. Peter Anvin" , Ingo Molnar , Michael Ellerman , Oleg Nesterov , Thomas Gleixner Subject: Re: [PATCH v2 0/3] livepatch: Introduce force sysfs attribute Message-ID: <20170816152610.4liqwmwa4hcn4rnb@treble> References: <20170810104815.14727-1-mbenes@suse.cz> <20170811211131.n7mo4xsucteba7hz@treble> <20170816145007.GD601@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170816145007.GD601@pathway.suse.cz> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 16 Aug 2017 15:26:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 16, 2017 at 04:50:07PM +0200, Petr Mladek wrote: > On Fri 2017-08-11 16:11:31, Josh Poimboeuf wrote: > > On Thu, Aug 10, 2017 at 12:48:12PM +0200, Miroslav Benes wrote: > > > Now there is a sysfs attribute called "force", which provides two > > > functionalities, "signal" and "force" (previously "unmark"). I haven't > > > managed to come up with better names. Proposals are welcome. On the > > > other hand I do not mind it much. > > > > Now "force" has two meanings, which is a little confusing. What do you > > think about just having two separate write-only sysfs flags? > > > > echo 1 > /sys/kernel/livepatch/signal > > echo 1 > /sys/kernel/livepatch/force > > I like the simplicity but I wonder if there might be more actions > that need to be forced in the future. Then this might cause > confusion. > > For example, we have force_module_load attribute in kGraft. > It allows to load a module even when it is refused by a livepatch. > It is handy when there is a harmless bug in the patch. What if we put the flags in the per-patch dir? /sys/kernel/livepatch//signal /sys/kernel/livepatch//force That seems pretty unambiguous. The "force" is specific to the patch, it clearly means we are forcing the patch. -- Josh