Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1723283

Re: [PATCH v2 0/3] livepatch: Introduce force sysfs attribute

Path csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Miroslav Benes <mbenes@suse.cz>
Newsgroups linux.kernel
Subject Re: [PATCH v2 0/3] livepatch: Introduce force sysfs attribute
Date Wed, 30 Aug 2017 15:00:02 +0200
Message-ID <ukaL7-8rd-15@gated-at.bofh.it> (permalink)
References <ucTcl-4sX-5@gated-at.bofh.it> <udpvz-6M-7@gated-at.bofh.it> <uf7XA-8ld-19@gated-at.bofh.it> <uf8qC-ju-9@gated-at.bofh.it>
User-Agent Alpine 2.21 (LSU 202 2017-01-01)
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 40
Organization linux.* mail to news gateway
X-Original-Cc Petr Mladek <pmladek@suse.com>, jeyu@kernel.org, jikos@kernel.org, lpechacek@suse.cz, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Lutomirski <luto@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@redhat.com>, Michael Ellerman <mpe@ellerman.id.au>, Oleg Nesterov <oleg@redhat.com>, Thomas Gleixner <tglx@linutronix.de>
X-Original-Date Wed, 30 Aug 2017 14:51:16 +0200 (CEST)
X-Original-Message-ID <alpine.LSU.2.21.1708301449270.6379@san.suse.cz>
X-Original-References <20170810104815.14727-1-mbenes@suse.cz> <20170811211131.n7mo4xsucteba7hz@treble> <20170816145007.GD601@pathway.suse.cz> <20170816152610.4liqwmwa4hcn4rnb@treble>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1723283

Show key headers only | View raw


On Wed, 16 Aug 2017, Josh Poimboeuf wrote:

> 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.

We can add force_module_load attribute too in that case. But I see your 
point, I just don't think it would be that serious as far as confusion is 
concerned.

> What if we put the flags in the per-patch dir?
> 
>   /sys/kernel/livepatch/<patch>/signal
>   /sys/kernel/livepatch/<patch>/force
> 
> That seems pretty unambiguous.  The "force" is specific to the patch, it
> clearly means we are forcing the patch.

Petr, would this solve your worries?

Thanks,
Miroslav

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH v2 0/3] livepatch: Introduce force sysfs attribute Miroslav Benes <mbenes@suse.cz> - 2017-08-30 15:00 +0200

csiph-web