Re: Module init call vs symbols exporting race?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux