lkml.org 
[lkml]   [2023]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v8 09/12] x86/cpu: Add a configuration and command line option for Key Locker
From
On 6/3/2023 9:37 AM, Borislav Petkov wrote:
> On Sat, Jun 03, 2023 at 08:22:24AM -0700, Chang S. Bae wrote:
>> +static __init int x86_nokeylocker_setup(char *arg)
>> +{
>> + /* Expect an exact match without trailing characters. */
>> + if (strlen(arg))
>> + return 0;
>> +
>> + if (!cpu_feature_enabled(X86_FEATURE_KEYLOCKER))
>> + return 1;
>> +
>> + setup_clear_cpu_cap(X86_FEATURE_KEYLOCKER);
>> + pr_info("x86/keylocker: Disabled by kernel command line.\n");
>> + return 1;
>> +}
>> +__setup("nokeylocker", x86_nokeylocker_setup);
>
> Can we stop adding those just to remove them at some point later but
> simply do:
>
> clearcpuid=keylocker
>
> ?

Oh, I was not sure about this policy. Thanks, now I'm glad that I have
confidence in removing this.

Chang

\
 
 \ /
  Last update: 2023-06-05 00:14    [W:0.092 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site