From: Florian Weimer <fweimer@redhat.com>
To: Andy Lutomirski <luto@amacapital.net>
Cc: linux-mm@kvack.org, linux-api@vger.kernel.org,
libc-alpha@sourceware.org
Subject: Re: Are vDSO addresses special?
Date: Fri, 12 Feb 2021 18:29:37 +0100 [thread overview]
Message-ID: <87wnvdgpoe.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <442A16C0-AE5A-4A44-B261-FE6F817EAF3C@amacapital.net> (Andy Lutomirski's message of "Thu, 11 Feb 2021 08:10:42 -0800")
* Andy Lutomirski:
>> 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.
Thanks. Patch posted:
<https://sourceware.org/pipermail/libc-alpha/2021-February/122603.html>
> Saying “vsyscall DSO” is odd. There’s no such thing.
In the glibc context, it sometimes means “system-call-like function
implemented in the vDSO”. But that's not the case here.
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
prev parent reply other threads:[~2021-02-12 17:29 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
2021-02-12 17:29 ` Florian Weimer [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=87wnvdgpoe.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=luto@amacapital.net \
/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