[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1541710117.12945.3.camel@gmx.us>
Date: Thu, 08 Nov 2018 15:48:37 -0500
From: Qian Cai <cai@....us>
To: Ard Biesheuvel <ard.biesheuvel@...aro.org>,
linux-efi@...r.kernel.org
Cc: linux-arm-kernel@...ts.infradead.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, marc.zyngier@....com,
will.deacon@....com
Subject: Re: [PATCH] efi: permit calling efi_mem_reserve_persistent from
atomic context
On Thu, 2018-11-08 at 19:05 +0100, Ard Biesheuvel wrote:
> Currently, efi_mem_reserve_persistent() may not be called from atomic
> context, since both the kmalloc() call and the memremap() call may
> sleep.
>
> The kmalloc() call is easy enough to fix, but the memremap() call
> needs to be moved into an init hook since we cannot control the
> memory allocation behavior of memremap() at the call site.
>
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@...aro.org>
Tested-by: Qian Cai <cai@....us>
Powered by blists - more mailing lists