Re: [PATCH v17 08/10] PM: hibernate: disable when there are active secretmem users

From
Michal Hocko <mhocko@suse.com>
Date
2021-02-08 10:21:55
Also in
linux-api, linux-arm-kernel, linux-fsdevel, linux-kselftest, linux-mm, linux-riscv, lkml, nvdimm
Reply to
Mike Rapoport, 2021-02-08
On Mon 08-02-21 10:49:18, Mike Rapoport wrote:
From: Mike Rapoport <redacted>

It is unsafe to allow saving of secretmem areas to the hibernation
snapshot as they would be visible after the resume and this essentially
will defeat the purpose of secret memory mappings.

Prevent hibernation whenever there are active secret memory users.
Does this feature need any special handling? As it is effectivelly
unevictable memory then it should behave the same as other mlock, ramfs
which should already disable hibernation as those cannot be swapped out,
no?

-- 
Michal Hocko
SUSE Labs
Thread (73 messages) 73 messages, 7 authors, last reply 2021-02-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help