Re: [PATCH] arm64: hibernate: check pgd table allocation

From: Pavel Tatashin
Date: Mon Oct 14 2019 - 10:53:44 EST


On 19-10-14 10:48:24, 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>

Forgot to include nit from James Morse: remove empty lines between tags.
If required, I will send out an updated patch, otherwise it can be taken
as is.

Thank you,
Pasha