On Tue, Feb 13, 2024 at 02:21:48PM +0000, Marc Zyngier wrote: > From cd75279d3b6c387c13972b61c486a203d9652e97 Mon Sep 17 00:00:00 2001 > From: Marc Zyngier <maz@xxxxxxxxxx> > Date: Tue, 13 Feb 2024 13:37:57 +0000 > Subject: [PATCH] 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@xxxxxxxxxxx> > Signed-off-by: Marc Zyngier <maz@xxxxxxxxxx> b4 wasn't very happy with grabbing this patch in reply to a series (probably user error), but I've picked this up for kvmarm/next. https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git/commit/?id=9aa030cee1c45d6e962f6bf22ba63d4aff2b1644 -- Thanks, Oliver