Messages in this thread | | | Date | Thu, 26 May 2011 22:45:57 -0400 | From | Dave Jones <> | Subject | Re: [RFC][PATCH] Randomize kernel base address on boot |
| |
On Thu, May 26, 2011 at 03:32:13PM -0700, H. Peter Anvin wrote: > On 05/26/2011 03:18 PM, Rafael J. Wysocki wrote: > > > > Well, as far as I can tell, this feature is going to break hibernation on > > both x86_32 and x86_64 at the moment, unless you can guarantee that the > > randomized kernel location will be the same for both the boot and the target > > kernels. > > > > Obviously we can't and we don't. I'm a bit surprised at that > constraint... how can that constraint not break things like kernels of > slightly different size?
In Fedora at least, we make sure the kernel you thaw from is the same one you booted by diddling with grub to force the right kernel to be booted. By default, you won't see a bootmenu, so it'll just dtrt. You can still interrupt the boot process, force a boot menu and pick another kernel of course, and we used to at least have safeguards in place that would refuse to thaw an image from a different kernel. (This may or may not be still true since we rewrote the initramfs tools)
Dave
| |