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@xxxxxxx> > CC: Marc Zyngier <marc.zyngier@xxxxxxx> > Signed-off-by: James Morse <james.morse@xxxxxxx> > Reviewed-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx> Acked-by: Marc Zyngier <marc.zyngier@xxxxxxx> M. -- Jazz is not dead. It just smells funny... _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm