From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0A9043847800; Tue, 17 Aug 2021 18:31:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A9043847800 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/27609] In elf/dl-open.c (_dl_open) we might use __LM_ID_CALLER to index GL(dl_ns)[] Date: Tue, 17 Aug 2021 18:31:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.33 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2021 18:31:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27609 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com --- Comment #1 from H.J. Lu --- It does get here in nptl/tst-setuid1,c: (gdb) bt #0 _dl_open (file=3D, mode=3D-2147483646,=20 caller_dlopen=3D, nsid=3D-2, argc=3D2, argv=3D,=20 env=3D0xffffce70) at dl-open.c:851 #1 0xf7f194f2 in do_dlopen (ptr=3Dptr@entry=3D0xffffc990) at dl-libc.c:96 #2 0xf7f19ede in __GI__dl_catch_exception ( exception=3Dexception@entry=3D0xffffc934, operate=3D,=20 args=3D) at /export/gnu/import/git/gitlab/x86-glibc/elf/dl-error-skeleton.c:208 #3 0xf7f19f83 in __GI__dl_catch_error (objname=3D,=20 errstring=3D, mallocedp=3D,=20 operate=3D, args=3D) at /export/gnu/import/git/gitlab/x86-glibc/elf/dl-error-skeleton.c:227 #4 0xf7f1946d in dlerror_run (operate=3Doperate@entry=3D0xf7f194b0 ,=20 args=3Dargs@entry=3D0xffffc990) at dl-libc.c:46 #5 0xf7f195f4 in __libc_dlopen_mode (name=3D,=20 mode=3Dmode@entry=3D-2147483646) at dl-libc.c:163 #6 0xf7efefc9 in module_load (module=3D) at nss_module.c:191 #7 0xf7eff545 in __nss_module_load (module=3D) at nss_module.c:310 #8 __nss_module_get_function (module=3D,=20 name=3Dname@entry=3D0xf7f7d737 "getpwnam_r") at nss_module.c:333 #9 0xf7efd538 in __GI___nss_lookup_function (fct_name=3D,=20 ni=3D) at nsswitch.c:138 --Type for more, q to quit, c to continue without paging-- #10 __GI___nss_lookup (ni=3D, fct_name=3D,=20 fct2_name=3D, fctp=3D) at nsswitch.c:68 #11 0xf7efe723 in __GI___nss_passwd_lookup2 (ni=3Dni@entry=3D0xffffcbe8,=20 fct_name=3Dfct_name@entry=3D0xf7f7d737 "getpwnam_r",=20 fct2_name=3Dfct2_name@entry=3D0x0, fctp=3Dfctp@entry=3D0xffffcbec) at /export/gnu/import/git/gitlab/x86-glibc/nss/XXX-lookup.c:58 #12 0xf7ea2927 in __getpwnam_r (name=3Dname@entry=3D0x4060fa "nobody",=20 resbuf=3Dresbuf@entry=3D0xf7fbd6d0 , buffer=3D,= =20 buflen=3Dbuflen@entry=3D1024, result=3Dresult@entry=3D0xffffcc3c) at ../nss/getXXbyYY_r.c:265 #13 0xf7ea2480 in getpwnam (name=3Dname@entry=3D0x4060fa "nobody") at ../nss/getXXbyYY.c:135 #14 0x00403e6b in do_test () at tst-setuid1.c:1029 #15 legacy_test_function (argc=3D, argv=3D) at ../test-skeleton.c:56 #16 0x004049e1 in support_test_main (argc=3D1, argv=3D0xffffce68,=20 config=3Dconfig@entry=3D0xffffcd20) at support_test_main.c:403 #17 0x00402774 in main (argc=3D, argv=3D) at ../support/test-driver.c:168 (gdb) --=20 You are receiving this mail because: You are on the CC list for the bug.=