Re: [PATCH] mm: fix lazy vmap purging (use-after-free error)

From: Andrew Morton
Date: Mon Feb 23 2009 - 15:31:20 EST


On Mon, 23 Feb 2009 12:12:36 -0800
"Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > As I suggested before, please add a new state variable which is private
> > to your subsystem. That way it remains isolated from other subsystems.
>
> OK, so my thought would be to have a function call into RCU from either
> init_post() or from rest_init(). This function would then set a variable
> private to RCU.
>
> Seem reasonable?
>

If that flag will only be used by one flavour of RCU then that would be
a good way to go.

Otherwise, heck, just make it a global variable with a well-chosen name
and write to it directly. Simple, perfectly clear and understandable..

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/