unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Mathieu Desnoyers via Libc-alpha <libc-alpha@sourceware.org>
To: Florian Weimer <fweimer@redhat.com>
Cc: libc-alpha <libc-alpha@sourceware.org>,
	Joseph Myers <joseph@codesourcery.com>
Subject: Re: [PATCH glibc 0/3] Restartable Sequences enablement
Date: Fri, 5 Jun 2020 13:04:17 -0400 (EDT)	[thread overview]
Message-ID: <1245924698.56744.1591376657757.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <877dwow9lv.fsf@oldenburg2.str.redhat.com>

----- On Jun 3, 2020, at 9:40 AM, Florian Weimer fweimer@redhat.com wrote:

> * Florian Weimer via Libc-alpha:
> 
>> This series unfortunately needs to be rebased (with conflicts) on
>> current master.
>>
>> There is a new elf/tst-auditmany failure, showing bug 26076, but
>> actually caused by bug 26075 (I think).  I will attempt to work around
>> these two issues, which are independent of the rseq changes.
> 
> Mathieu, it turns out that a change like this is needed:
> 
> diff --git a/elf/dl-tls.c b/elf/dl-tls.c
> index fa03234610..817bcbbf59 100644
> --- a/elf/dl-tls.c
> +++ b/elf/dl-tls.c
> @@ -31,7 +31,7 @@
> 
> /* Amount of excess space to allocate in the static TLS area
>    to allow dynamic loading of modules defining IE-model TLS data.  */
> -#define TLS_STATIC_SURPLUS     64 + DL_NNS * 100
> +#define TLS_STATIC_SURPLUS     64 + DL_NNS * 176
> 
> 
> /* Out-of-memory handler.  */
> 
> 
> I think you can just put that into the main rseq patch.  This change
> needs to be mentioned in the commit message, of course.
> 
> With this change, elf/tst-auditmany passes again for me.
> 
> The increase (76 bytes) is larger than 32 bytes because we have not done
> this in quite a while.  The cost in terms of additional TLS storage is
> quite significant, but it will also obscure some initial-exec-related
> dlopen failures.

OK, done!

Thanks,

Mathieu

> 
> Conceptually, we could also switch to 64 + (DL_NNS - 1) * 176, an
> increase of 1040 bytes over what we have today.
> 
> Thanks,
> Florian

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

  reply	other threads:[~2020-06-05 17:04 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-27 18:51 [PATCH glibc 0/3] Restartable Sequences enablement Mathieu Desnoyers via Libc-alpha
2020-05-27 18:51 ` [PATCH glibc 1/3] glibc: Perform rseq registration at C startup and thread creation (v20) Mathieu Desnoyers via Libc-alpha
2020-06-03 12:05   ` Florian Weimer via Libc-alpha
2020-06-03 12:22     ` Mathieu Desnoyers via Libc-alpha
2020-06-03 12:31       ` Florian Weimer via Libc-alpha
2020-06-03 12:40         ` Mathieu Desnoyers via Libc-alpha
2020-06-03 17:22     ` Joseph Myers
2020-06-04 11:10       ` Mathieu Desnoyers via Libc-alpha
2020-06-04 17:46         ` Joseph Myers
2020-06-11 17:47           ` Mathieu Desnoyers via Libc-alpha
2020-06-11 20:26             ` Joseph Myers
2020-06-18 12:22               ` Szabolcs Nagy
2020-06-18 13:03                 ` Mathieu Desnoyers via Libc-alpha
2020-06-22 15:33               ` Mathieu Desnoyers via Libc-alpha
2020-05-27 18:51 ` [PATCH glibc 2/3] Linux: Use rseq in sched_getcpu if available (v9) Mathieu Desnoyers via Libc-alpha
2020-05-27 18:51 ` [PATCH glibc 3/3] rseq registration tests (v11) Mathieu Desnoyers via Libc-alpha
2020-06-03 12:07 ` [PATCH glibc 0/3] Restartable Sequences enablement Florian Weimer via Libc-alpha
2020-06-03 12:27   ` Mathieu Desnoyers via Libc-alpha
2020-06-03 12:33     ` Florian Weimer via Libc-alpha
2020-06-03 13:40   ` Florian Weimer via Libc-alpha
2020-06-05 17:04     ` Mathieu Desnoyers via Libc-alpha [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-05-01  2:14 Mathieu Desnoyers via Libc-alpha
2020-05-20 11:44 ` Florian Weimer via Libc-alpha
2020-05-25 13:52   ` Mathieu Desnoyers via Libc-alpha
2020-05-25 14:28     ` Florian Weimer via Libc-alpha

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

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1245924698.56744.1591376657757.JavaMail.zimbra@efficios.com \
    --to=libc-alpha@sourceware.org \
    --cc=fweimer@redhat.com \
    --cc=joseph@codesourcery.com \
    --cc=mathieu.desnoyers@efficios.com \
    /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).