public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <sourceware-bugzilla@sourceware.org>
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	[thread overview]
Message-ID: <bug-27609-131-T6SjHDD2zE@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27609-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=27609

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
It does get here in nptl/tst-setuid1,c:

(gdb) bt
#0  _dl_open (file=<optimized out>, mode=-2147483646, 
    caller_dlopen=<optimized out>, nsid=-2, argc=2, argv=<optimized out>, 
    env=0xffffce70) at dl-open.c:851
#1  0xf7f194f2 in do_dlopen (ptr=ptr@entry=0xffffc990) at dl-libc.c:96
#2  0xf7f19ede in __GI__dl_catch_exception (
    exception=exception@entry=0xffffc934, operate=<optimized out>, 
    args=<optimized out>)
    at /export/gnu/import/git/gitlab/x86-glibc/elf/dl-error-skeleton.c:208
#3  0xf7f19f83 in __GI__dl_catch_error (objname=<optimized out>, 
    errstring=<optimized out>, mallocedp=<optimized out>, 
    operate=<optimized out>, args=<optimized out>)
    at /export/gnu/import/git/gitlab/x86-glibc/elf/dl-error-skeleton.c:227
#4  0xf7f1946d in dlerror_run (operate=operate@entry=0xf7f194b0 <do_dlopen>, 
    args=args@entry=0xffffc990) at dl-libc.c:46
#5  0xf7f195f4 in __libc_dlopen_mode (name=<optimized out>, 
    mode=mode@entry=-2147483646) at dl-libc.c:163
#6  0xf7efefc9 in module_load (module=<optimized out>) at nss_module.c:191
#7  0xf7eff545 in __nss_module_load (module=<optimized out>)
    at nss_module.c:310
#8  __nss_module_get_function (module=<optimized out>, 
    name=name@entry=0xf7f7d737 "getpwnam_r") at nss_module.c:333
#9  0xf7efd538 in __GI___nss_lookup_function (fct_name=<optimized out>, 
    ni=<optimized out>) at nsswitch.c:138
--Type <RET> for more, q to quit, c to continue without paging--
#10 __GI___nss_lookup (ni=<optimized out>, fct_name=<optimized out>, 
    fct2_name=<optimized out>, fctp=<optimized out>) at nsswitch.c:68
#11 0xf7efe723 in __GI___nss_passwd_lookup2 (ni=ni@entry=0xffffcbe8, 
    fct_name=fct_name@entry=0xf7f7d737 "getpwnam_r", 
    fct2_name=fct2_name@entry=0x0, fctp=fctp@entry=0xffffcbec)
    at /export/gnu/import/git/gitlab/x86-glibc/nss/XXX-lookup.c:58
#12 0xf7ea2927 in __getpwnam_r (name=name@entry=0x4060fa "nobody", 
    resbuf=resbuf@entry=0xf7fbd6d0 <resbuf>, buffer=<optimized out>, 
    buflen=buflen@entry=1024, result=result@entry=0xffffcc3c)
    at ../nss/getXXbyYY_r.c:265
#13 0xf7ea2480 in getpwnam (name=name@entry=0x4060fa "nobody")
    at ../nss/getXXbyYY.c:135
#14 0x00403e6b in do_test () at tst-setuid1.c:1029
#15 legacy_test_function (argc=<optimized out>, argv=<optimized out>)
    at ../test-skeleton.c:56
#16 0x004049e1 in support_test_main (argc=1, argv=0xffffce68, 
    config=config@entry=0xffffcd20) at support_test_main.c:403
#17 0x00402774 in main (argc=<optimized out>, argv=<optimized out>)
    at ../support/test-driver.c:168
(gdb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2021-08-17 18:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-18 18:55 [Bug dynamic-link/27609] New: " carlos at redhat dot com
2021-08-17 18:31 ` hjl.tools at gmail dot com [this message]
2021-09-30 17:19 ` [Bug dynamic-link/27609] [2.32/2.33/2.34 Regression] " hjl.tools at gmail dot com
2021-09-30 19:41 ` cvs-commit at gcc dot gnu.org
2021-10-13 12:29 ` cvs-commit at gcc dot gnu.org
2021-10-13 12:57 ` cvs-commit at gcc dot gnu.org
2021-10-13 14:10 ` cvs-commit at gcc dot gnu.org
2021-10-13 14:11 ` hjl.tools at gmail dot com

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=bug-27609-131-T6SjHDD2zE@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.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 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).