[PATCH] arm64: neon: Forbid when irqs are disabled

Catalin Marinas catalin.marinas at arm.com
Wed Aug 9 07:31:08 PDT 2017


On Wed, Aug 09, 2017 at 11:43:28AM +0100, Dave P Martin wrote:
> Currently, may_use_simd() can return true if IRQs are disabled.  If
> the caller goes ahead and calls kernel_neon_begin(), this can
> result in use of local_bh_enable() in an unsafe context.
> 
> In particular, __efi_fpsimd_begin() may do this when calling EFI as
> part of system shutdown.
> 
> This patch ensures that callers don't think they can use
> kernel_neon_begin() in such a context.
> 
> Signed-off-by: Dave Martin <Dave.Martin at arm.com>

Thanks. I pushed it out to the for-next/kernel-mode-neon branch.

-- 
Catalin



More information about the linux-arm-kernel mailing list