From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: Florian Weimer <fweimer@redhat.com>,
Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org>
Cc: John Mellor-Crummey <johnmc@rice.edu>
Subject: Re: [PATCH 1/5] elf: Fix audit regression
Date: Wed, 7 Jul 2021 16:07:51 -0300 [thread overview]
Message-ID: <838017e6-6171-79cf-9788-e22560dc7d07@linaro.org> (raw)
In-Reply-To: <87zguy0wye.fsf@oldenburg.str.redhat.com>
On 07/07/2021 16:02, Florian Weimer wrote:
> * Adhemerval Zanella via Libc-alpha:
>
>> diff --git a/elf/Makefile b/elf/Makefile
>> index b1e01d9516..5214196de6 100644
>> --- a/elf/Makefile
>> +++ b/elf/Makefile
>
>> @@ -361,6 +361,7 @@ modules-names += tst-gnu2-tls1mod
>> $(objpfx)tst-gnu2-tls1: $(objpfx)tst-gnu2-tls1mod.so
>> tst-gnu2-tls1mod.so-no-z-defs = yes
>> CFLAGS-tst-gnu2-tls1mod.c += -mtls-dialect=gnu2
>> +
>
> Spurious whitespace change. Or rather, missing CFLAGS for
> tst-auditmod17 to disable stack protector. I expect the test to fail
> when building glibc with -fstack-protector-all.
I will check building with -fstack-protector-all and remove the
spurious whitespace.
>
>> diff --git a/elf/dl-open.c b/elf/dl-open.c
>> index a066f39bd0..66ec9d7ed5 100644
>> --- a/elf/dl-open.c
>> +++ b/elf/dl-open.c
>> @@ -771,7 +771,7 @@ dl_open_worker (void *a)
>> {
>> struct link_map *libc_map = GL(dl_ns)[args->nsid].libc_map;
>> #ifdef SHARED
>> - bool initial = libc_map->l_ns == LM_ID_BASE;
>> + bool initial = libc_map != NULL ? libc_map->l_ns == LM_ID_BASE : false;
>> #else
>> /* In the static case, there is only one namespace, but it
>> contains a secondary libc (the primary libc is statically
>
> Looks okay to me. The previous code was just broken.
>
> Thanks,
> Florian
>
next prev parent reply other threads:[~2021-07-07 19:07 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-07 18:26 [PATCH 0/5] Some rtld-audit fixes Adhemerval Zanella
2021-07-07 18:26 ` [PATCH 1/5] elf: Fix audit regression Adhemerval Zanella
2021-07-07 19:02 ` Florian Weimer
2021-07-07 19:07 ` Adhemerval Zanella [this message]
2021-07-07 19:51 ` Andreas Schwab
2021-07-07 19:57 ` Adhemerval Zanella
2021-07-07 20:02 ` Florian Weimer
2021-07-07 20:07 ` Florian Weimer
2021-07-08 12:13 ` Adhemerval Zanella
2021-07-07 18:26 ` [PATCH 2/5] elf: Avoid unnecessary slowdown from profiling with audit (BZ#15533) Adhemerval Zanella
2021-07-07 19:20 ` Florian Weimer
2021-07-07 20:05 ` Adhemerval Zanella
2021-07-07 20:15 ` Florian Weimer
2021-07-07 20:53 ` John Mellor-Crummey
2021-07-19 13:17 ` Adhemerval Zanella
2021-07-07 18:26 ` [PATCH 3/5] elf: Add audit tests for modules with TLSDESC Adhemerval Zanella
2021-07-07 18:26 ` [PATCH 4/5] elf: Do not fail for failed dlmopen on audit modules (BZ #28061) Adhemerval Zanella
2021-07-07 18:26 ` [PATCH 5/5] elf: Suppress audit calls when a (new) namespace is empty (BZ #28062) Adhemerval Zanella
2021-07-07 19:02 ` [PATCH 0/5] Some rtld-audit fixes John Mellor-Crummey
2021-07-07 19:09 ` Adhemerval Zanella
2021-07-07 19:22 ` John Mellor-Crummey
2021-07-08 6:25 ` Florian Weimer
2021-07-08 8:03 ` John Mellor-Crummey
2021-07-08 8:21 ` Florian Weimer
2021-07-08 0:09 ` John Mellor-Crummey
2021-07-08 0:11 ` John Mellor-Crummey
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=838017e6-6171-79cf-9788-e22560dc7d07@linaro.org \
--to=adhemerval.zanella@linaro.org \
--cc=fweimer@redhat.com \
--cc=johnmc@rice.edu \
--cc=libc-alpha@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).