Re: [PATCH]Fix broken VMI in 2.6.27-rc..

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Zachary Amsden
Date: Thursday, August 7, 2008 - 4:26 pm

On Thu, 2008-08-07 at 16:08 -0700, Linus Torvalds wrote:

Well, here's an idea from outer space.  The fixmap can't possibly be
used until it's got a backing page table and initial mappings installed.
One can imagine a world where references to the fixmap are left as
unresolved, and then those unresolved symbols are linked to the fixmap
area when it gets set up in the kernel page table.  Voilla!

The requisite foodling required to massage various gcci and lds into
compliance with this scheme, not to mention the required module loading
changes might be a bit of headache, and even then, I'm not sure that gcc
will be smart enough to allow all the required relocations to generate
optimal code.

But the upshot would be the potential for dynamic registration of fixmap
areas, yet still keeping direct pointers into the thing, and also
removing all the ifdefs from the fixmap definitions for the various
platform specific fixmap pages.  Just leave dangling references to some
fixed bad address (fixmap_hole) for things unused.  And even allow
kernel modules to register new fixmap types!

All it requires is a well thought out strategy for naming fixmap pages
and then two sprinkles of linker magic.  You could even randomize the
non-randomized VDSO location at boot-time.  Whee!

Zach

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH]Fix broken VMI in 2.6.27-rc.., Alok Kataria, (Thu Aug 7, 12:12 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 2:20 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Zachary Amsden, (Thu Aug 7, 2:27 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 2:34 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Alok Kataria, (Thu Aug 7, 2:41 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Zachary Amsden, (Thu Aug 7, 2:42 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 2:52 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Zachary Amsden, (Thu Aug 7, 2:55 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 3:17 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Linus Torvalds, (Thu Aug 7, 3:38 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 3:58 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Linus Torvalds, (Thu Aug 7, 4:08 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 4:12 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Jeremy Fitzhardinge, (Thu Aug 7, 4:21 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Jeremy Fitzhardinge, (Thu Aug 7, 4:23 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Zachary Amsden, (Thu Aug 7, 4:26 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 4:27 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Jeremy Fitzhardinge, (Thu Aug 7, 4:46 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Jeremy Fitzhardinge, (Thu Aug 7, 4:49 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 4:51 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Yinghai Lu, (Thu Aug 7, 5:01 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Jeremy Fitzhardinge, (Thu Aug 7, 5:10 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 5:11 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 5:13 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Jeremy Fitzhardinge, (Thu Aug 7, 5:23 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 5:29 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Zachary Amsden, (Thu Aug 7, 6:14 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Thu Aug 7, 6:19 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Zachary Amsden, (Thu Aug 7, 6:28 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Jeremy Fitzhardinge, (Thu Aug 7, 11:10 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Fri Aug 8, 9:13 am)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., Alok Kataria, (Fri Aug 8, 12:15 pm)
Re: [PATCH]Fix broken VMI in 2.6.27-rc.., H. Peter Anvin, (Fri Aug 8, 3:23 pm)