Re: [PATCH] arm64: hibernate: check pgd table allocation
From: James Morse
Date: Mon Oct 14 2019 - 13:58:14 EST
Hi Pavel,
On 14/10/2019 15:48, Pavel Tatashin wrote:
> There is a bug in create_safe_exec_page(), when page table is allocated
> it is not checked that table is allocated successfully:
>
> But it is dereferenced in: pgd_none(READ_ONCE(*pgdp)). Check that
> allocation was successful.
>
> Fixes: 82869ac57b5d ("arm64: kernel: Add support for hibernate/suspend-to-disk")
>
> Signed-off-by: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx>
> ---
Reviewed-by: James Morse <james.morse@xxxxxxx>
Thanks,
James