UBUNTU: SAUCE: dove: avoid page table overwrite when resuming from hibernation
BugLink: http://bugs.launchpad.net/bugs/509006 Resuming from hibernation is OK if 'resume=/dev/sdaX' is explicitly specified on the kernel command line, but it fails if scripts in initramfs are used to trigger the resume. It turned out to be page table being overwritten when restoring the memory content because it's using a normal user process's page table in the latter case, which is not safe and could be overwritten. Fix this by using the safe swapper_pg_dir during restoring. Signed-off-by: Eric Miao <eric.miao@canonical.com> Acked-by: Stefan Bader <stefan.bader@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
parent
6c5cb2fd
Please register or sign in to comment