From: Andrea Arcangeli <andrea@suse.de>
To: Ulrich Drepper <drepper@redhat.com>
Cc: john stultz <johnstul@us.ibm.com>,
lkml <linux-kernel@vger.kernel.org>,
Jamie Lokier <jamie@shareable.org>,
Chris McDermott <lcm@us.ibm.com>,
Wim Coekaerts <wim.coekaerts@oracle.com>,
Joel Becker <Joel.Becker@oracle.com>,
"Martin J. Bligh" <mbligh@aracnet.com>
Subject: Re: [RFC][PATCH] linux-2.6.2_vsyscall-gtod_B2.patch
Date: Fri, 6 Feb 2004 16:54:20 +0100 [thread overview]
Message-ID: <20040206155420.GT31926@dualathlon.random> (raw)
In-Reply-To: <40235E24.2060500@redhat.com>
On Fri, Feb 06, 2004 at 01:28:04AM -0800, Ulrich Drepper wrote:
> Andrea Arcangeli wrote:
>
> > with regards to Ulrich's security related comments, this won't make any
> > difference compared to the fixed address version either, since the
> > vsyscall page is still at a fixed address in the fixmap area,
>
> Gee, you don't want to understand it.
>
> Even if the official kernel's handling of the vdso puts it at the same
> address all the time this does not mean this can be engraved in stone.
i386 in 2.6.2 has the very same security issues. Fixed address for all
binary kernel shipped for the sysenter or int 0x80 instructions. go
complain who wrote the i386 code.
> It must be possible to move the page. And I expect this will be the
> case in our kernels.
what are "yours" kernels? You mean mainline or what? I'm saying it's
perfectly fine to relocate the vsyscall page on demand with an
additional syscall but this will have an overhead, like relocating the
.text executable as well will have an overhead, and before you can care
about relocating the vsyscall address, you should relocate the .text of
the executable as Andi noted.
> It is completely unacceptable to use fixed addresses or require the libc
> to be recompiled for a new address. At the highest security level the
> vdso address should vary from program run to program run which means
> there is no way to change the libc.
This is fine, the new syscall I'm advocating will simply relocate the
vsyscall page with a new pte and a tlb flush during every context
switch, write it for i386 now since 2.6.2 has those int 0x80 and syscall
instructions at fixed address too.
next prev parent reply other threads:[~2004-02-06 15:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-06 3:10 john stultz
2004-02-06 4:01 ` Andrea Arcangeli
2004-02-06 9:28 ` Ulrich Drepper
2004-02-06 15:54 ` Andrea Arcangeli [this message]
2004-02-07 3:18 ` Jamie Lokier
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=20040206155420.GT31926@dualathlon.random \
--to=andrea@suse.de \
--cc=Joel.Becker@oracle.com \
--cc=drepper@redhat.com \
--cc=jamie@shareable.org \
--cc=johnstul@us.ibm.com \
--cc=lcm@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbligh@aracnet.com \
--cc=wim.coekaerts@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®