It may not be desireable to leave swsusp saved pages on disk after resume as they may contain sensitive data that was never intended to be stored on disk in an way (e.g. in-kernel dm-crypt keys, mlocked pages). The attached simple patch against 2.6.11.2 should fix this by zeroing the swap pages after reading them. The patch is by no means perfect. Especially it isn't invoked on error conditions. However it seems to work during regular operation. Note that it is not possible to do this from userspace in a performant way, one has to zero the whole swap partition used for swsusp to achive a similar effect which quite often means clearing 2GB instead of about a few 100MB. The difference in speed and power consumption is important especially for laptops when resuming on battery. The userspace method also allows for a window in which at least some of the data may still be read. -- Andreas Steinmetz SPAMmers use robotrap@domdv.de