mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@osdl.org>
Cc: Arjan van de Ven <arjan@infradead.org>,
	Linus Torvalds <torvalds@osdl.org>,
	Zachary Amsden <zach@vmware.com>,
	jakub@redhat.com, rusty@rustcorp.com.au, kraxel@suse.de,
	linux-kernel@vger.kernel.org
Subject: [patch 0/3] vdso: -V3
Date: Tue, 23 May 2006 02:01:11 +0200	[thread overview]
Message-ID: <20060523000111.GA9934@elte.hu> (raw)


this is the third, reworked version of the VDSO randomization (and 
hypervisor-helping) patchset. In particular FC1 is booting now fine, via 
the CONFIG_COMPAT_VDSO (default=y) kernel option.

besides the security implications, this feature also helps debuggers, 
which can COW a vma-backed VDSO just like a normal DSO and can thus do 
single-stepping and other debugging features.

It's good for hypervisors (Xen, VMWare) too, which typically live in the 
same high-mapped address space as the VDSO, hence whenever the VDSO is 
used, they get lots of guest pagefaults and have to fix such guest 
accesses up - which slows things down instead of speeding things up (the 
primary purpose of the VDSO).

If the CONFIG_COMPAT_VDSO option is disabled then there is no 
(user-visible) high VDSO mapping, the VDSO resides in a low-mapped vma.

If the CONFIG_COMPAT_VDSO option is enabled then the VDSO is prelinked 
at kernel build time and is high-mapped to the usual 0xffffe000 address. 
The same page is also installed into a low vma - sharing all the 
codepath with the !compat code. Signal returns, sysexit returns and 
syscall addresses point to the low mapping - only the DSO metadata 
header (AT_SYSINFO_EHDR) points to the high address.

I have checked that the FC1 version of glibc (which is a pre-release 
2.3.2 glibc, i.e. pretty much the worst-case scenario in terms of VDSO 
relocation bugs) still works fine and the system boots up. Likewise, FC1 
still boots even if CONFIG_COMPAT_VDSO is disabled, if the vdso=0 boot 
option is specified.

I have also included a print-fatal-signals add-on patch: it will now 
print out the "/proc/*/maps" file of segfaulting processes - this was 
very helpful when debugging the VDSO patchset, and can be useful to 
debug other early-bootup application-crash problems too.

	Ingo

                 reply	other threads:[~2006-05-23  0:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20060523000111.GA9934@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@osdl.org \
    --cc=arjan@infradead.org \
    --cc=jakub@redhat.com \
    --cc=kraxel@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@osdl.org \
    --cc=zach@vmware.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®