Re: [PATCH 4/6] x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 20, 2023 at 01:45:15PM -0700, Pawan Gupta wrote:
> @@ -484,11 +484,11 @@ static void __init md_clear_update_mitigation(void)
>  	if (cpu_mitigations_off())
>  		return;
>  
> -	if (!static_key_enabled(&mds_user_clear))
> +	if (!boot_cpu_has(X86_FEATURE_USER_CLEAR_CPU_BUF))
>  		goto out;
>  
>  	/*
> -	 * mds_user_clear is now enabled. Update MDS, TAA and MMIO Stale Data
> +	 * X86_FEATURE_USER_CLEAR_CPU_BUF is now enabled. Update MDS, TAA and MMIO Stale Data
>  	 * mitigation, if necessary.
>  	 */

This comment line got long, the paragraph can be reformatted.

-- 
Josh




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux