From: Andy Lutomirski <luto@amacapital.net>
To: Florian Weimer <fweimer@redhat.com>
Cc: linux-mm@kvack.org, linux-api@vger.kernel.org, libc-alpha@sourceware.org
Subject: Re: Are vDSO addresses special?
Date: Thu, 11 Feb 2021 08:10:42 -0800 [thread overview]
Message-ID: <442A16C0-AE5A-4A44-B261-FE6F817EAF3C@amacapital.net> (raw)
In-Reply-To: <87zh0bq62r.fsf@oldenburg.str.redhat.com>
> On Feb 11, 2021, at 2:05 AM, Florian Weimer <fweimer@redhat.com> wrote:
>
> In glibc, we have some code that copies the DT_SONAME string of the
> kernel vDSO into the heap, commented this way:
>
> /* Work around a kernel problem. The kernel cannot handle
> addresses in the vsyscall DSO pages in writev() calls. */
>
> Is this really a problem anymore? vDSO addresses are ordinary userspace
> addresses, I think. (The vsyscall stuff is very different, of course,
> and maybe the vDSO started out the same way.)
I don’t think it was ever a problem, and it certainly haven’t been a problem for a long, long time. vDSO addresses are regular user addresses. The *vsyscall* addresses are not, and most syscalls will not accept them, but that shouldn’t matter especially since modern kernels, by default, won’t let you read those addresses from user code either.
Saying “vsyscall DSO” is odd. There’s no such thing.
—Andy
>
> We only care about Linux 3.2 or later in glibc.
>
> Thanks,
> Florian
> --
> Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
> Commercial register: Amtsgericht Muenchen, HRB 153243,
> Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill
>
next prev parent reply other threads:[~2021-02-11 16:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-11 9:58 Florian Weimer
2021-02-11 16:10 ` Andy Lutomirski [this message]
2021-02-12 17:29 ` 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=442A16C0-AE5A-4A44-B261-FE6F817EAF3C@amacapital.net \
--to=luto@amacapital.net \
--cc=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-mm@kvack.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