public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Increase robustness of internal dlopen() by using RTLD_NOW [BZ #22766]
@ 2018-04-25 12:43 Tulio Magno Quites Machado Filho
  2018-04-25 13:08 ` Carlos O'Donell
  0 siblings, 1 reply; 5+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2018-04-25 12:43 UTC (permalink / raw)
  To: libc-alpha, szabolcs.nagy

Prevent random runtime crashes due to missing symbols caused by mixed
libnss_* versions.

2018-04-25  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>

	[BZ #22766]
	* include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.

Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
---
 include/dlfcn.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/dlfcn.h b/include/dlfcn.h
index 12ef913e19..2c4bfe86b4 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -32,7 +32,7 @@ extern char **__libc_argv attribute_hidden;
 /* Now define the internal interfaces.  */
 
 #define __libc_dlopen(name) \
-  __libc_dlopen_mode (name, RTLD_LAZY | __RTLD_DLOPEN)
+  __libc_dlopen_mode (name, RTLD_NOW | __RTLD_DLOPEN)
 extern void *__libc_dlopen_mode  (const char *__name, int __mode);
 extern void *__libc_dlsym   (void *__map, const char *__name);
 extern void *__libc_dlvsym (void *map, const char *name, const char *version);
-- 
2.14.3

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-04-26 16:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-25 12:43 [PATCH] Increase robustness of internal dlopen() by using RTLD_NOW [BZ #22766] Tulio Magno Quites Machado Filho
2018-04-25 13:08 ` Carlos O'Donell
2018-04-25 19:27   ` [PATCHv2] " Tulio Magno Quites Machado Filho
2018-04-26  1:02     ` Carlos O'Donell
2018-04-26 16:57       ` Tulio Magno Quites Machado Filho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).