[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <45F7F0AD.9010603@grupopie.com>
Date: Wed, 14 Mar 2007 12:55:09 +0000
From: Paulo Marques <pmarques@...popie.com>
To: Alexey Dobriyan <adobriyan@...ru>
CC: akpm@...l.org, linux-kernel@...r.kernel.org, devel@...nvz.org
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists