public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Szabolcs Nagy <szabolcs.nagy@arm.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH v5] aarch64: enforce >=64K guard size
Date: Fri, 2 Oct 2020 10:01:15 +0100	[thread overview]
Message-ID: <20201002090115.GG29000@arm.com> (raw)
In-Reply-To: <87k0wahtde.fsf@oldenburg2.str.redhat.com>

The 10/01/2020 17:13, Florian Weimer wrote:
> * Szabolcs Nagy:
> 
> > There are several compiler implementations that allow large stack
> > allocations to jump over the guard page at the end of the stack and
> > corrupt memory beyond that. See CVE-2017-1000364.
> >
> > Compilers can emit code to probe the stack such that the guard page
> > cannot be skipped, but on aarch64 the probe interval is 64K by default
> > instead of the minimum supported page size (4K).
> >
> > This patch enforces at least 64K guard on aarch64 unless the guard
> > is disabled by setting its size to 0.  For backward compatibility
> > reasons the increased guard is not reported, so it is only observable
> > by exhausting the address space or parsing /proc/self/maps on linux.
> >
> > On other targets the patch has no effect. If the stack probe interval
> > is larger than a page size on a target then ARCH_MIN_GUARD_SIZE can
> > be defined to get large enough stack guard on libc allocated stacks.
> >
> > The patch does not affect threads with user allocated stacks.
> 
> I think this is okay.  I checked that all architectures still build.
> I filed bug 26691 to help with tracking the backports.  Would you please
> reference this bug in your commit message?

ok, committed at 238032ead6f34c41542890b968d973eb5c839673

thanks for checking.

      reply	other threads:[~2020-10-02  9:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-01  9:44 Szabolcs Nagy
2020-10-01 15:13 ` Florian Weimer
2020-10-02  9:01   ` Szabolcs Nagy [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=20201002090115.GG29000@arm.com \
    --to=szabolcs.nagy@arm.com \
    --cc=fweimer@redhat.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).