lkml.org 
[lkml]   [2006]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][urgent fix] swsusp: prevent possible image corruption on resume
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-17 15:06    [W:0.027 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site