public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Florian Weimer via Libc-alpha <libc-alpha@sourceware.org>
Cc: schwab@linux-m68k.org
Subject: Re: [PATCH] elf: Fix glibc-hwcaps priorities with cache flags mismatches [BZ #27046]
Date: Fri, 12 Nov 2021 14:14:37 +0100	[thread overview]
Message-ID: <87wnldqzwi.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <871r3lsei2.fsf@oldenburg.str.redhat.com> (Florian Weimer's message of "Fri, 12 Nov 2021 14:13:57 +0100")

* Florian Weimer:

> * Florian Weimer via Libc-alpha:
>
>> 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.
>>
>> Tested on i686-linux-gnu, x86_64-linux-gnu, and on an armv7l system that
>> exposed the issue.  Most of the diff is due to whitespace changes.
>
> Ping?
>
>   <https://sourceware.org/pipermail/libc-alpha/2021-June/127862.html>
>
> Is there still interest in fixing this for 32-bit Arm?

Eh, wait, this has already been merged.  I will update the bug.

Thanks,
Florian


      reply	other threads:[~2021-11-12 13:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-22 13:27 Florian Weimer
2021-06-24 17:19 ` Szabolcs Nagy
2021-11-12 13:13 ` Florian Weimer
2021-11-12 13:14   ` Florian Weimer [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=87wnldqzwi.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=schwab@linux-m68k.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).