public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/27046] glibc-hwcaps priority matching fails on cache entry flags mismatch Date: Fri, 12 Nov 2021 13:15:25 +0000 [thread overview] Message-ID: <bug-27046-131-hYpwgvAfcE@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-27046-131@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=27046 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Target Milestone|--- |2.34 Status|ASSIGNED |RESOLVED --- Comment #9 from Florian Weimer <fweimer at redhat dot com> --- Fixed for glibc 2.34 via: commit 66db95b6e8264c5a6307f6a9e5285fec76907254 Author: Florian Weimer <fweimer@redhat.com> Date: Fri Jun 25 08:02:30 2021 +0200 elf: Fix glibc-hwcaps priorities with cache flags mismatches [BZ #27046] If lib->flags (in the cache) did not match GLRO (dl_correct_cache_id), searching for further glibc-hwcaps entries did not happen, and it was possible that the best glibc-hwcaps was not found. By accident, this causes a test failure for elf/tst-glibc-hwcaps-prepend-cache on armv7l. This commit changes the cache lookup logic to continue searching if (a) no match has been found, (b) a named glibc-hwcaps match has been found(), or (c) non-glibc-hwcaps match has been found and the entry flags and cache default flags do not match. _DL_CACHE_DEFAULT_ID is used instead of GLRO (dl_correct_cache_id) because the latter is only written once on i386 if loading of libc.so.5 libraries is selected, so GLRO (dl_correct_cache_id) should probably removed in a future change. Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com> -- You are receiving this mail because: You are on the CC list for the bug.
prev parent reply other threads:[~2021-11-12 13:15 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-10 12:05 [Bug dynamic-link/27046] New: FAIL: elf/tst-glibc-hwcaps-prepend-cache schwab@linux-m68k.org 2021-04-08 17:39 ` [Bug dynamic-link/27046] " nsz at gcc dot gnu.org 2021-04-08 19:34 ` fweimer at redhat dot com 2021-04-22 6:08 ` fweimer at redhat dot com 2021-04-22 7:51 ` nsz at gcc dot gnu.org 2021-04-22 8:36 ` schwab@linux-m68k.org 2021-04-22 8:42 ` nsz at gcc dot gnu.org 2021-04-22 10:37 ` nsz at gcc dot gnu.org 2021-06-22 11:56 ` fweimer at redhat dot com 2021-06-22 11:56 ` [Bug dynamic-link/27046] glibc-hwcaps priority matching fails on cache entry flags mismatch fweimer at redhat dot com 2021-06-22 13:53 ` fweimer at redhat dot com 2021-11-12 13:15 ` fweimer at redhat dot com [this message]
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-27046-131-hYpwgvAfcE@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: linkBe 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).