diff options
author | Dave Martin <[email protected]> | 2017-08-09 11:43:28 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2017-08-09 15:05:59 +0100 |
commit | 66c3ec5a712005625437474cf5a04148d7890350 (patch) | |
tree | 38274244ae2d7531ce45045cbfb2b64201dd69fb /tools/perf/scripts/python/stackcollapse.py | |
parent | 11cefd5ac25f242349994140a3bce3a20db0c751 (diff) |
arm64: neon: Forbid when irqs are disabled
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.
Acked-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Dave Martin <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions