From: Rusty Russell <rusty@rustcorp.com.au>
To: Pavel Emelyanov <xemul@openvz.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Module init call vs symbols exporting race?
Date: Tue, 6 Nov 2007 23:41:34 +1100 [thread overview]
Message-ID: <200711062341.34566.rusty@rustcorp.com.au> (raw)
In-Reply-To: <473031FA.2060707@openvz.org>
On Tuesday 06 November 2007 20:20:58 Pavel Emelyanov wrote:
> Hi.
>
> I looked at the sys_init_module() and found that the ->init callback
> for the module is called without the module_mutex held and *after*
> the module's symbols are exported. Doesn't this create the race when
> loading two modules in parallel? Like this.
Hi Pavel,
In a word, no. See "strong_try_module_get()".
Cheers,
Rusty.
next prev parent reply other threads:[~2007-11-06 12:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-06 9:20 Module init call vs symbols exporting race? Pavel Emelyanov
2007-11-06 12:41 ` Rusty Russell [this message]
2007-11-07 10:01 ` Jan Glauber
2007-11-08 2:10 ` Rusty Russell
2007-11-09 11:44 ` Jon Masters
2007-11-09 12:16 ` Jan Glauber
2007-11-10 7:27 ` Rusty Russell
2007-11-12 14:03 ` Jan Glauber
2007-11-09 16:06 ` Jan Glauber
2007-11-10 20:23 ` Andi Kleen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200711062341.34566.rusty@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=xemul@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.