UBUNTU: SAUCE: dove: avoid page table overwrite when
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 <email@example.com>
It was posted weeks ago, thought it was merged but not. This is an updated
version addressing the previous comments to make it cleaner.