Messages in this thread | | | Date | Wed, 14 Mar 2007 12:55:09 +0000 | From | Paulo Marques <> | Subject | Re: [PATCH] Race between cat /proc/kallsyms and rmmod |
| |
Alexey Dobriyan wrote: > Iterating code of /proc/kallsyms calls module_get_kallsym() which grabs > and drops module_mutex internally and returns "struct module *", > module is removed, aforementioned "struct module *" is used in non-trivial > way. > So, grab module_mutex for entire operation like /proc/modules does.
I would still prefer the other solution to avoid exposing "module_mutex" outside of module.c like this :(
I'll try to send in a patch today for review.
-- Paulo Marques - www.grupopie.com
"As far as we know, our computer has never had an undetected error." Weisert - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |