Re: [PATCH 2/2] livepatch: Allow to unregister or free shadow data using a custom function

2018-03-21 Thread Miroslav Benes
On Wed, 14 Mar 2018, Josh Poimboeuf wrote: > On Tue, Mar 13, 2018 at 04:54:48PM +0100, Petr Mladek wrote: > > We might need to do some actions before the shadow variable is freed. > > For example, we might need to remove it from a list or free some data > > that it points to. > > > > This is alre

Re: [PATCH 2/2] livepatch: Allow to unregister or free shadow data using a custom function

2018-03-14 Thread Josh Poimboeuf
On Tue, Mar 13, 2018 at 04:54:48PM +0100, Petr Mladek wrote: > We might need to do some actions before the shadow variable is freed. > For example, we might need to remove it from a list or free some data > that it points to. > > This is already possible now. The user can get the shadow variable >

[PATCH 2/2] livepatch: Allow to unregister or free shadow data using a custom function

2018-03-13 Thread Petr Mladek
We might need to do some actions before the shadow variable is freed. For example, we might need to remove it from a list or free some data that it points to. This is already possible now. The user can get the shadow variable by klp_shadow_get(), do the necessary actions, and then call klp_shadow_