lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200711062341.34566.rusty@rustcorp.com.au>
Date:	Tue, 6 Nov 2007 23:41:34 +1100
From:	Rusty Russell <rusty@...tcorp.com.au>
To:	Pavel Emelyanov <xemul@...nvz.org>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: Module init call vs symbols exporting race?

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 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

Powered by Openwall GNU/*/Linux Powered by OpenVZ