Re: [PATCH v2 3/5] hibernate: handle potential errors in hibernate_{map,unmap}_page()

From: David Hildenbrand (Arm)

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


On 9/26/26 11:26, Mike Rapoport (Microsoft) wrote:
> When safe_copy_page() had to map/unmap pages only because of
> debug_pagealloc() there could be no errors in the kernel page table
> updates.
>
> However, with the increasing desire to remove pages from the direct map
> this assumption becomes a real stretch.
>
> Properly handle errors in hibernate_map_page() and hibernate_unmap_page()
> and propagate that error along the page copying path.
>
> Signed-off-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
> ---

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

--
Cheers,

David