Re: [PATCH][urgent fix] swsusp: prevent possible image corruption on resume
From: Pavel Machek
Date: Mon Apr 17 2006 - 09:07:43 EST
Hi!
> The function free_pagedir() used by swsusp for freeing its internal data
> structures clears the PG_nosave and PG_nosave_free flags for each page being
> freed. However, during resume PG_nosave_free set means that the page
> in question is "unsafe" (ie. it will be overwritten in the process of restoring the
> saved system state from the image), so it should not be used for the image
> data. Therefore free_pagedir() should not clear PG_nosave_free if it's
> called during resume (otherwise "unsafe" pages freed by it may be used for
> storing the image data and the data may get corrupted later on).
Okay with me.
Pavel
--
Thanks for all the (sleeping) penguins.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/