summaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2024-02-15 04:49:54 +0300
committerOliver Upton <oliver.upton@linux.dev>2024-02-15 04:58:03 +0300
commit9aa030cee1c45d6e962f6bf22ba63d4aff2b1644 (patch)
treec9420e445d9556751c81cb8f80fd085301dcec7e /lib/memory-notifier-error-inject.c
parent3673d01a2f555603cbf756874c7388b76bfbc967 (diff)
downloadlinux-9aa030cee1c45d6e962f6bf22ba63d4aff2b1644.tar.xz
arm64: cpufeatures: Fix FEAT_NV check when checking for FEAT_NV1
Using this_cpu_has_cap() has the potential to go wrong when used system-wide on a preemptible kernel. Instead, use the __system_matches_cap() helper when checking for FEAT_NV in the FEAT_NV1 probing helper. Fixes: 3673d01a2f55 ("arm64: cpufeatures: Only check for NV1 if NV is present") Reported-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/kvmarm/86bk8k5ts3.wl-maz@kernel.org/ Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions