Skip to content
Snippets Groups Projects
Commit 98797cf7 authored by Suzuki K Poulose's avatar Suzuki K Poulose Committed by Yang Yingliang
Browse files

arm64: cpufeature: Set the FP/SIMD compat HWCAP bits properly


stable inclusion
from linux-4.19.105
commit b7230b62fc07902de0108d763b325f29eae3ead4

--------------------------------

commit 7559950a upstream

We set the compat_elf_hwcap bits unconditionally on arm64 to
include the VFP and NEON support. However, the FP/SIMD unit
is optional on Arm v8 and thus could be missing. We already
handle this properly in the kernel, but still advertise to
the COMPAT applications that the VFP is available. Fix this
to make sure we only advertise when we really have them.

Cc: stable@vger.kernel.org # v4.19
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: default avatarArd Biesheuvel <ardb@kernel.org>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>

Conflicts:
  arch/arm64/kernel/cpufeature.c
[yyl: replace CONFIG_COMPAT with CONFIG_AARCH32_EL0]
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 99b17622
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment