On Mon 08-02-21 11:32:11, David Hildenbrand wrote: > On 08.02.21 11:18, Michal Hocko wrote: > > On Mon 08-02-21 10:49:18, Mike Rapoport wrote: > > > From: Mike Rapoport <r...@linux.ibm.com> > > > > > > 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? > > > > Why should unevictable memory not go to swap when hibernating? We're merely > dumping all of our system RAM (including any unmovable allocations) to swap > storage and the system is essentially completely halted. > My understanding is that mlock is never really made visible via swap storage. -- Michal Hocko SUSE Labs
- [PATCH v17 00/10] mm: introduce memfd_secret system call... Mike Rapoport
- [PATCH v17 01/10] mm: add definition of PMD_PAGE_OR... Mike Rapoport
- [PATCH v17 04/10] set_memory: allow set_direct_map_... Mike Rapoport
- [PATCH v17 02/10] mmap: make mlock_future_check() g... Mike Rapoport
- [PATCH v17 03/10] riscv/Kconfig: make direct map ma... Mike Rapoport
- [PATCH v17 06/10] arm64: kfence: fix header inclusi... Mike Rapoport
- [PATCH v17 05/10] set_memory: allow querying whethe... Mike Rapoport
- [PATCH v17 08/10] PM: hibernate: disable when there... Mike Rapoport
- Re: [PATCH v17 08/10] PM: hibernate: disable wh... Michal Hocko
- Re: [PATCH v17 08/10] PM: hibernate: disabl... David Hildenbrand
- Re: [PATCH v17 08/10] PM: hibernate: di... Michal Hocko
- Re: [PATCH v17 08/10] PM: hibernat... David Hildenbrand
- Re: [PATCH v17 08/10] PM: hibe... Michal Hocko
- Re: [PATCH v17 08/10] PM: ... David Hildenbrand
- Re: [PATCH v17 08/10] PM: ... David Hildenbrand
- Re: [PATCH v17 08/10] PM: ... David Hildenbrand
- Re: [PATCH v17 08/10] PM: ... Michal Hocko
- Re: [PATCH v17 08/10] PM: ... Michal Hocko
- Re: [PATCH v17 08/10] PM: ... David Hildenbrand
- Re: [PATCH v17 08/10] PM: hibernate: disabl... Mike Rapoport
- [PATCH v17 09/10] arch, mm: wire up memfd_secret sy... Mike Rapoport