Re: [PATCH v2 2/5] hibernation: ensure secretmem pages don't reach a snapshot

From: David Hildenbrand (Arm)

Date: Mon Sep 28 2026 - 05:13:12 EST


On 9/26/26 11:26, Mike Rapoport (Microsoft) wrote:
> hibernation_available() checks for active secretmem users, but a secretmem
> file can be created after this check and its pages may get into the
> hibernation snapshot although they should not.
>
> Recheck that hibernation_available() after userspace is frozen and abort
> hibernation if it is not.
>
> Signed-off-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

Reviewed-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David