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  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]
Date:   Thu, 22 Jul 2021 10:16:19 -0700
From:   Evan Green <>
To:     Andrew Morton <>
Cc:, David Hildenbrand <>,
        Michal Hocko <>, Pavel Machek <>,
        Alex Shi <>,
        Alistair Popple <>,
        Johannes Weiner <>,
        Joonsoo Kim <>,
        "Matthew Wilcox (Oracle)" <>,
        Miaohe Lin <>,
        Minchan Kim <>,
        Suren Baghdasaryan <>,
        Vlastimil Babka <>,
        LKML <>,
Subject: Re: [PATCH v3] mm: Enable suspend-only swap spaces

On Wed, Jul 21, 2021 at 3:09 PM Andrew Morton <> wrote:
> On Wed, 21 Jul 2021 14:40:28 -0700 Evan Green <> wrote:
> > Currently it's not possible to enable hibernation without also enabling
> > generic swap for a given swap area. These two use cases are not the
> > same. For example there may be users who want to enable hibernation,
> > but whose drives don't have the write endurance for generic swap
> > activities. Swap and hibernate also have different security/integrity
> > requirements, prompting folks to possibly set up something like block-level
> > integrity for swap and image-level integrity for hibernate. Keeping swap
> > and hibernate separate in these cases becomes not just a matter of
> > preference, but correctness.
> >
> > Add a new SWAP_FLAG_NOSWAP that adds a swap region but refuses to allow
> > generic swapping to it. This region can still be wired up for use in
> > suspend-to-disk activities, but will never have regular pages swapped to
> > it. This flag will be passed in by utilities like swapon(8), usage would
> > probably look something like: swapon -o noswap /dev/sda2.
> Will patches to swapon and its manpage be prepared?

Yes, I'll work on that today. Thanks Andrew!

Powered by blists - more mailing lists