From: Ralf Baechle <ralf@linux-mips.org>
To: Rich Felker <dalias@libc.org>
Cc: Matthias Schiffer <mschiffer@universe-factory.net>,
musl@lists.openwall.com, linux-mips@linux-mips.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [musl] musl-libc/MIPS: detached thread exit broken since kernel commit 46e12c07b
Date: Fri, 19 Jun 2015 12:06:26 +0200 [thread overview]
Message-ID: <20150619100626.GB29960@linux-mips.org> (raw)
In-Reply-To: <20150619025032.GR1173@brightrain.aerifal.cx>
On Thu, Jun 18, 2015 at 10:50:32PM -0400, Rich Felker wrote:
> This is kernel ABI breakage that should be fixed -- people running old
> kernel versions with old musl binaries might suffer a regression when
> upgrading, and perhaps more importantly the failure mode is just
> really bad. But I think we can also work around it on the userspace
> side in musl by pointing the stack pointer at some rodata (or even at
> pc, e.g. copying $25 to $sp) before making the syscall.
Just to be on the safe side, make sure it is something that's readable. Core
might me mapped execute-only, that is not readable and that is a feature
which the affected kernels do support on suitable hardware.
Ralf
next prev parent reply other threads:[~2015-06-19 10:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-19 2:07 musl-libc/MIPS: detached thread exit broken since kernel commit 46e12c07b Matthias Schiffer
2015-06-19 2:50 ` [musl] " Rich Felker
2015-06-19 10:06 ` Ralf Baechle [this message]
2015-06-19 14:35 ` Rich Felker
2015-06-19 14:35 ` Rich Felker
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=20150619100626.GB29960@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=dalias@libc.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=mschiffer@universe-factory.net \
--cc=musl@lists.openwall.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.