Re: [PATCH] x86/cpufeatures: make bits in cpu_caps_cleared[] and cpu_cpus_set[] exclusive

From: Borislav Petkov
Date: Wed Mar 18 2020 - 06:32:20 EST


On Wed, Mar 18, 2020 at 02:16:24PM +0800, Xiaoyao Li wrote:
> In apply_forced_caps(), cpu_caps_set[] overrides cpu_caps_cleared[], so
> that setup_clear_cpu_cap() cannot clear one cap if setup_force_cpu_cap()
> sets the cap before it.

Context pls: what is the observation, what are you trying to do,
reproducer, etc?

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette