Re: [PATCH 4/8] livepatch: Add an extra flag to distinguish registered patches

2018-04-10 Thread Josh Poimboeuf
On Tue, Apr 10, 2018 at 12:56:25PM +0200, Petr Mladek wrote: > > > diff --git a/include/linux/livepatch.h b/include/linux/livepatch.h > > > index f28af280f9e0..d6e6d8176995 100644 > > > --- a/include/linux/livepatch.h > > > +++ b/include/linux/livepatch.h > > > @@ -378,7 +383,7 @@ int klp_disable_p

Re: [PATCH 4/8] livepatch: Add an extra flag to distinguish registered patches

2018-04-10 Thread Petr Mladek
On Mon 2018-04-09 16:02:15, Miroslav Benes wrote: > On Fri, 23 Mar 2018, Petr Mladek wrote: > > > The initial implementation of the atomic replace feature keeps the replaced > > patches on the stack. But people would like to remove the replaced patches > > from different reasons that will be descr

Re: [PATCH 4/8] livepatch: Add an extra flag to distinguish registered patches

2018-04-09 Thread Miroslav Benes
On Fri, 23 Mar 2018, Petr Mladek wrote: > The initial implementation of the atomic replace feature keeps the replaced > patches on the stack. But people would like to remove the replaced patches > from different reasons that will be described in the following patch. > > This patch is just a small

Re: [PATCH 4/8] livepatch: Add an extra flag to distinguish registered patches

2018-04-06 Thread Josh Poimboeuf
On Fri, Mar 23, 2018 at 01:00:24PM +0100, Petr Mladek wrote: > @@ -528,6 +537,7 @@ static ssize_t enabled_store(struct kobject *kobj, struct > kobj_attribute *attr, > goto err; > } > > + > if (patch->enabled == enabled) { > /* already in requested state */

[PATCH 4/8] livepatch: Add an extra flag to distinguish registered patches

2018-03-23 Thread Petr Mladek
The initial implementation of the atomic replace feature keeps the replaced patches on the stack. But people would like to remove the replaced patches from different reasons that will be described in the following patch. This patch is just a small preparation step. We will need to keep the replace