[PATCH v6 01/13] arm64: cpufeature: __this_cpu_has_cap() shouldn't stop early

Marc Zyngier marc.zyngier at arm.com
Tue Jan 16 01:51:10 PST 2018


On 15/01/18 19:38, James Morse wrote:
> this_cpu_has_cap() tests caps->desc not caps->matches, so it stops
> walking the list when it finds a 'silent' feature, instead of
> walking to the end of the list.
> 
> Prior to v4.6's 644c2ae198412 ("arm64: cpufeature: Test 'matches' pointer
> to find the end of the list") we always tested desc to find the end of
> a capability list. This was changed for dubious things like PAN_NOT_UAO.
> v4.7's e3661b128e53e ("arm64: Allow a capability to be checked on
> single CPU") added this_cpu_has_cap() using the old desc style test.
> 
> CC: Suzuki K Poulose <suzuki.poulose at arm.com>
> CC: Marc Zyngier <marc.zyngier at arm.com>
> Signed-off-by: James Morse <james.morse at arm.com>
> Reviewed-by: Suzuki K Poulose <suzuki.poulose at arm.com>
Acked-by: Marc Zyngier <marc.zyngier at arm.com>

	M.
-- 
Jazz is not dead. It just smells funny...



More information about the linux-arm-kernel mailing list