unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>
To: "Carlos O'Donell" <carlos@redhat.com>
Cc: Florian Weimer <fweimer@redhat.com>,
	Carlos O'Donell via Libc-alpha <libc-alpha@sourceware.org>,
	Dave Martin <Dave.Martin@arm.com>,
	Joseph Myers <joseph@codesourcery.com>
Subject: Re: V8 [PATCH] sysconf: Add _SC_MINSIGSTKSZ/_SC_SIGSTKSZ [BZ #20305]
Date: Wed, 20 Jan 2021 07:33:40 -0800	[thread overview]
Message-ID: <CAMe9rOqf4ExuT_X7X7fjuDKJ-f_1K3FRDyGDQmvAo2LLxj9E_Q@mail.gmail.com> (raw)
In-Reply-To: <f9d6ffa3-e835-e145-a18b-94d6c26e28a5@redhat.com>

On Wed, Jan 20, 2021 at 7:30 AM Carlos O'Donell <carlos@redhat.com> wrote:
>
> On 1/20/21 10:06 AM, Florian Weimer wrote:
> > * Carlos O'Donell via Libc-alpha:
> >
> >> (2) Kernel definition of constant for AT_MINSIGSTKSZ?
> >>
> >> We don't have a released kernel for x86 with this constant defined?
> >
> > I think it's in the generic headers.  Don't you see it there?
>
> I do not see it there.
>
> I'm at commit 45dfb8a5659ad286c28fa59008271dbc4e5e3f2d on:
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> (which I use for building glibc).
>
> The constant value for AT_MINSIGSTKSZ is not generic.
>
> It is defined by each architecture in per-architecture UAPI headers.
>
> As of today it's only valid for aarch64 (arm64) i.e.
> arch/arm64/include/uapi/asm/auxvec.h:#define AT_MINSIGSTKSZ     51      /* stack needed for signal delivery */
>
> The fact that Intel will define it as 51 also is not guaranteed
> until a released kernel contains a final value.
>
> It has not been proposed for: include/uapi/linux/auxvec.h, and
> so has no generic value that can be used by glibc.
>
> My opinion is that the following needs to happen before we can
> adopt this in glibc:
>
> * Get AT_MINSIGSTKSZ into the generic auxvec.h in linux.
> * Release a kernel with this value.
> * Update glibc to follow with support in the next release.

It has been in glibc since 2018:

commit 174195409d6a3d639dd28e08cf99d6f2559eca9c
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Aug 20 15:46:26 2018 +0000

    Add NT_VMCOREDD, AT_MINSIGSTKSZ from Linux 4.18 to elf.h.

    This patch adds two new constants from Linux 4.18 to elf.h,
    NT_VMCOREDD and AT_MINSIGSTKSZ.

    Tested for x86_64.

            * elf/elf.c (NT_VMCOREDD): New macro.
            (AT_MINSIGSTKSZ): Likewise.

> There is a reason we wait for the kernel to adopt these values
> because that's the agreed upon protocol and expectations from
> developers on both sides.
>
> What is our next step?
>
> --
> Cheers,
> Carlos.
>


-- 
H.J.

  reply	other threads:[~2021-01-20 15:34 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-10 12:19 [PATCH] sysconf: Add _SC_MINSIGSTKSZ/_SC_SIGSTKSZ [BZ #20305] H.J. Lu via Libc-alpha
2020-10-12  7:53 ` Szabolcs Nagy via Libc-alpha
2020-10-12 11:04   ` Dave Martin via Libc-alpha
2020-10-12 12:42     ` V4 " H.J. Lu via Libc-alpha
2020-10-12 13:21       ` Dave Martin via Libc-alpha
2020-10-12 14:12     ` Szabolcs Nagy via Libc-alpha
2020-10-12 14:37       ` Dave Martin via Libc-alpha
2020-10-12 15:36         ` [libc-coord] " Rich Felker
2020-10-12 22:03 ` Joseph Myers
2020-10-13 20:32   ` V5 " H.J. Lu via Libc-alpha
2020-10-14 17:47     ` Dave Martin via Libc-alpha
2020-10-14 18:07       ` Florian Weimer via Libc-alpha
2020-10-19 16:30         ` Dave Martin via Libc-alpha
2020-10-15 11:57       ` V6 " H.J. Lu via Libc-alpha
2020-10-19 15:08         ` Dave Martin via Libc-alpha
2020-10-19 21:32           ` H.J. Lu via Libc-alpha
2020-10-20  9:19             ` Dave Martin via Libc-alpha
2020-10-20 14:59               ` H.J. Lu via Libc-alpha
2020-10-20 15:22                 ` Dave Martin via Libc-alpha
2020-10-20 18:19                 ` V7 " H.J. Lu via Libc-alpha
2020-11-03  3:06                   ` PING: " H.J. Lu via Libc-alpha
2020-11-04 16:50                     ` Dave Martin via Libc-alpha
2020-11-04 17:48                       ` H.J. Lu via Libc-alpha
2020-11-18 14:13                         ` H.J. Lu via Libc-alpha
2020-11-18 14:25                           ` Zack Weinberg
2020-11-18 14:40                             ` H.J. Lu via Libc-alpha
2020-11-18 15:12                               ` Zack Weinberg
2020-11-18 15:17                                 ` H.J. Lu via Libc-alpha
2020-11-18 15:20                                   ` Florian Weimer
2020-11-18 17:04                                     ` Dave Martin via Libc-alpha
2020-11-18 17:35                                       ` Florian Weimer
2020-11-18 17:48                                         ` H.J. Lu via Libc-alpha
2020-11-18 18:09                                         ` Dave Martin via Libc-alpha
2020-11-19 14:59                                           ` Szabolcs Nagy via Libc-alpha
2020-11-19 15:10                                             ` H.J. Lu via Libc-alpha
2020-11-19 15:39                                             ` Zack Weinberg
2020-11-19 15:51                                               ` Florian Weimer
2020-11-19 16:16                                               ` Rich Felker
2020-11-19 16:52                                                 ` Dave Martin via Libc-alpha
2020-11-19 16:37                                             ` Dave Martin via Libc-alpha
2020-11-19 17:29                                               ` Rich Felker
2020-11-19 17:33                                               ` Szabolcs Nagy via Libc-alpha
2020-11-19 19:39                                                 ` Dave Martin via Libc-alpha
2020-11-20 14:08                                           ` H.J. Lu via Libc-alpha
2020-11-20 14:11                                             ` Florian Weimer
2020-11-20 23:13                                               ` V8 " H.J. Lu via Libc-alpha
2021-01-20 14:16                                                 ` Carlos O'Donell via Libc-alpha
2021-01-20 15:05                                                   ` V9 " H.J. Lu via Libc-alpha
2021-01-22 19:41                                                     ` V10 " H.J. Lu via Libc-alpha
2021-01-25 13:31                                                       ` Carlos O'Donell via Libc-alpha
2021-01-25 13:57                                                         ` H.J. Lu via Libc-alpha
2021-01-25 13:59                                                           ` Carlos O'Donell via Libc-alpha
2021-01-25 13:58                                                       ` Carlos O'Donell via Libc-alpha
2021-01-25 14:16                                                         ` Florian Weimer via Libc-alpha
2021-02-02 13:08                                                           ` Carlos O'Donell via Libc-alpha
2021-01-25 14:34                                                         ` Carlos O'Donell via Libc-alpha
2021-01-20 15:06                                                   ` V8 " Florian Weimer via Libc-alpha
2021-01-20 15:30                                                     ` Carlos O'Donell via Libc-alpha
2021-01-20 15:33                                                       ` H.J. Lu via Libc-alpha [this message]
2021-01-20 15:59                                                         ` Carlos O'Donell via Libc-alpha
2021-01-20 16:04                                                           ` H.J. Lu via Libc-alpha
2021-01-20 15:33                                                       ` Florian Weimer via Libc-alpha
2020-10-15 12:26       ` [PATCH] Deprecate SIGSTKSZ/MINSIGSTKSZ with _SC_SIGSTKSZ_SOURCE H.J. Lu via Libc-alpha
2020-10-15 19:59         ` Joseph Myers
2020-10-15 21:22           ` V2 " H.J. Lu via Libc-alpha
2020-10-16  0:57             ` Joseph Myers
2021-07-09 18:53             ` Carlos O'Donell via Libc-alpha
2021-07-09 19:34               ` H.J. Lu via Libc-alpha
2020-10-12 22:07 ` [PATCH] sysconf: Add _SC_MINSIGSTKSZ/_SC_SIGSTKSZ [BZ #20305] Joseph Myers

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=CAMe9rOqf4ExuT_X7X7fjuDKJ-f_1K3FRDyGDQmvAo2LLxj9E_Q@mail.gmail.com \
    --to=libc-alpha@sourceware.org \
    --cc=Dave.Martin@arm.com \
    --cc=carlos@redhat.com \
    --cc=fweimer@redhat.com \
    --cc=hjl.tools@gmail.com \
    --cc=joseph@codesourcery.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).