public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: "H.J. Lu" <hjl.tools@gmail.com>, Florian Weimer <fweimer@redhat.com>
Cc: GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH v7 1/3] Add an internal wrapper for clone, clone2 and clone3
Date: Mon, 31 May 2021 10:53:44 -0300	[thread overview]
Message-ID: <9b4afce0-0177-5798-3dcf-58e57900b004@linaro.org> (raw)
In-Reply-To: <CAMe9rOp8ke1XajP21PO8NxyD0EK27MHgL3mzyyUgMS+jOu3xUg@mail.gmail.com>



On 31/05/2021 10:16, H.J. Lu wrote:
> On Mon, May 31, 2021 at 6:01 AM Florian Weimer <fweimer@redhat.com> wrote:
>>
>> * H. J. Lu:
>>
>>> In the kernel, clone3 and clone go to the same piece of code.  clone won't
>>> fail just because of CET.
>>
>> But clone won't have access to the stack boundaries.  Won't this create
>> issues for setting up the shadow stack?
>>
> 
> No.  There are:
> 
>         /* Cap shadow stack size to 4 GB */
>         size = min_t(unsigned long long, rlimit(RLIMIT_STACK), SZ_4G);
>         size = min(size, stack_size);
> 
> where stack_size is passed in clone3.

Right, so CET support does not really require clone3 to be used internally 
then? Or am I missing something?

  reply	other threads:[~2021-05-31 13:53 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26 12:39 [PATCH v7 0/3] " H.J. Lu
2021-05-26 12:39 ` [PATCH v7 1/3] " H.J. Lu
2021-05-26 13:05   ` Florian Weimer
2021-05-26 13:08     ` Adhemerval Zanella
2021-05-26 13:19     ` H.J. Lu
2021-05-26 13:42       ` Florian Weimer
2021-05-26 13:58         ` H.J. Lu
2021-05-26 14:09         ` Adhemerval Zanella
2021-05-31 12:14           ` H.J. Lu
2021-05-31 12:16             ` Florian Weimer
2021-05-31 12:23               ` H.J. Lu
2021-05-31 12:28                 ` Florian Weimer
2021-05-31 12:40                   ` H.J. Lu
2021-05-31 13:01                     ` Florian Weimer
2021-05-31 13:16                       ` H.J. Lu
2021-05-31 13:53                         ` Adhemerval Zanella [this message]
2021-05-31 14:01                           ` H.J. Lu
2021-05-31 15:57                             ` Adhemerval Zanella
2021-05-31 16:00                               ` H.J. Lu
2021-05-26 12:39 ` [PATCH v7 2/3] x86-64: Add the clone3 wrapper H.J. Lu
2021-05-26 12:39 ` [PATCH v7 3/3] Add static tests for __clone_internal H.J. Lu
2021-06-01  8:03   ` Szabolcs Nagy
2021-06-01  8:07     ` Florian Weimer

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=9b4afce0-0177-5798-3dcf-58e57900b004@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=fweimer@redhat.com \
    --cc=hjl.tools@gmail.com \
    --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).