lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20060921212710.GB2245@elf.ucw.cz>
Date:	Thu, 21 Sep 2006 23:27:10 +0200
From:	Pavel Machek <pavel@....cz>
To:	"Rafael J. Wysocki" <rjw@...k.pl>
Cc:	Andrew Morton <akpm@...l.org>, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -mm 1/6] swsusp: Use device and offset to intentify swap areas

Hi!

> The Linux kernel handles swap files almost in the same way as it handles swap
> partitions and there are only two differences between these two types of swap
> areas:
> (1) swap files need not be contiguous,
> (2) the header of a swap file is not in the first block of the partition that
> holds it.  From the swsusp's point of view (1) is not a problem, because it is
> already taken care of by the swap-handling code, but (2) has to be taken into
> consideration.
> 
> In principle the location of a swap file's header may be determined with the
> help of appropriate filesystem driver.  Unfortunately, however, it requires the
> filesystem holding the swap file to be mounted, and if this filesystem is
> journaled, it cannot be mounted during a resume from disk.  For this reason
> we need some other means by which swap areas can be identified.
> 
> For example, to identify a swap area we can use the partition that holds the
> area and the offset from the beginning of this partition at which the swap
> header is located.
> 
> The following patch allows swsusp to identify swap areas this way.  It changes
> swap_type_of() so that it takes an additional argument representing an offset
> of the swap header within the partition represented by its first argument.
> 
> Signed-off-by: Rafael J. Wysocki <rjw@...k.pl>

ACK.

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ