mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Andy Lutomirski <luto@amacapital.net>
To: Alexander Monakov <amonakov@ispras.ru>
Cc: fREW Schmidt <frioux@gmail.com>,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	"musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: Re: [musl] Broken vDSO on built kernel
Date: Thu, 9 Jun 2016 10:40:21 -0700	[thread overview]
Message-ID: <CALCETrUVYG3mdBwewanKSGmpc=BDQToRqAC7CfbrOTSH2DTpMA@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.20.1606090027450.14709@monopod.intra.ispras.ru>

On Wed, Jun 8, 2016 at 2:36 PM, Alexander Monakov <amonakov@ispras.ru> wrote:
> On Wed, 8 Jun 2016, fREW Schmidt wrote:
>> I was debugging an issue I ran into (
>> https://github.com/docker/docker/issues/23378) and after chatting with the
>> folks in #musl and we triaged it down to a broken vDSO (tested by running
>> `strace date` and seeing a clock_gettime call.)
>
> To provide a bit more detail, we've found that the vdso mappend into the
> application has no dynamic symbols; Glibc ignores the vdso, so it continues to
> work, but musl segfaults since the vdso is invalid.
>
> I'm pasting below `readelf -aW` output on the vdso dumped on the affected
> system (via 'fwrite((void*)getauxval(AT_SYSINFO_EHDR), 8192, 1, stdout)';
> as you can see, there's no dynamic symbols and symbol hash tables.  It may
> be a toolchain bug since there was no issue with 4.6 kernel (and reportedly
> there were no significant vdso changes merged into 4.7 -- the issue is seen
> on Ubuntu's 4.7rc2).

Hmm.  The vdso64.so in /lib/firmware in that image has the same
problem, so this isn't vdso2c's fault.  I added this to my -next queue
to help diagnose it:

https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git/commit/?h=x86/vdso&id=6436d4c1a83cbe083e54c53bb2b16efaab9b62f4

--Andy


      reply	other threads:[~2016-06-09 17:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-08 21:18 fREW Schmidt
2016-06-08 21:36 ` Alexander Monakov
2016-06-09 17:40   ` Andy Lutomirski [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='CALCETrUVYG3mdBwewanKSGmpc=BDQToRqAC7CfbrOTSH2DTpMA@mail.gmail.com' \
    --to=luto@amacapital.net \
    --cc=amonakov@ispras.ru \
    --cc=frioux@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).