Re: [PATCH][2.6] Fix module_text_address/store_stackinfo race

From: Zwane Mwaikambo
Date: Wed Jun 23 2004 - 23:41:14 EST


On Thu, 24 Jun 2004, Rusty Russell wrote:

> On Wed, 2004-06-23 at 18:02, Zwane Mwaikambo wrote:
> > store_stackinfo() does an unlocked module list walk during normal runtime
> > which opens up a race with the module load/unload code. This can be
> > triggered by simply unloading and loading a module in a loop with
> > CONFIG_DEBUG_PAGEALLOC resulting in store_stackinfo() tripping over bad
> > list pointers.
>
> Hmmm...
>
> You can't move kernel_text_address into module.c, since it isn't
> compiled for CONFIG_MODULES=n.

Good point, how about if i make modlist_lock a global?
-
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/