[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <MW5PR84MB184225DA6EA0FA7A9191C057AB719@MW5PR84MB1842.NAMPRD84.PROD.OUTLOOK.COM>
Date: Mon, 8 May 2023 19:18:50 +0000
From: "Elliott, Robert (Servers)" <elliott@....com>
To: "Chang S. Bae" <chang.seok.bae@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
"dm-devel@...hat.com" <dm-devel@...hat.com>
CC: "ebiggers@...nel.org" <ebiggers@...nel.org>,
"gmazyland@...il.com" <gmazyland@...il.com>,
"luto@...nel.org" <luto@...nel.org>,
"dave.hansen@...ux.intel.com" <dave.hansen@...ux.intel.com>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"bp@...e.de" <bp@...e.de>, "mingo@...nel.org" <mingo@...nel.org>,
"x86@...nel.org" <x86@...nel.org>,
"herbert@...dor.apana.org.au" <herbert@...dor.apana.org.au>,
"ardb@...nel.org" <ardb@...nel.org>,
"dan.j.williams@...el.com" <dan.j.williams@...el.com>,
"bernie.keany@...el.com" <bernie.keany@...el.com>,
"charishma1.gairuboyina@...el.com" <charishma1.gairuboyina@...el.com>,
"lalithambika.krishnakumar@...el.com"
<lalithambika.krishnakumar@...el.com>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H. Peter Anvin" <hpa@...or.com>
Subject: RE: [PATCH v6 07/12] x86/cpu/keylocker: Load an internal wrapping key
at boot-time
> diff --git a/arch/x86/kernel/keylocker.c b/arch/x86/kernel/keylocker.c
...
> +void __init destroy_keylocker_data(void)
> +{
> + memset(&kl_setup.key, KEY_DESTROY, sizeof(kl_setup.key));
> +}
That's a special value for garbage collected keyring keys assigned
a keytype of ".dead". memzero() or memzero_explicit() might be better
for this use case.
Powered by blists - more mailing lists