lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 25 Jun 2024 14:31:08 +0200
From: Thomas Gleixner <tglx@...utronix.de>
To: Xin Li <xin@...or.com>, Hou Wenlong <houwenlong.hwl@...group.com>,
 linux-kernel@...r.kernel.org
Cc: Lai Jiangshan <jiangshan.ljs@...group.com>, Ingo Molnar
 <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>, Dave Hansen
 <dave.hansen@...ux.intel.com>, x86@...nel.org, "H. Peter Anvin"
 <hpa@...or.com>, Xin Li <xin3.li@...el.com>, Jacob Pan
 <jacob.jun.pan@...ux.intel.com>, Rick Edgecombe
 <rick.p.edgecombe@...el.com>, Paolo Bonzini <pbonzini@...hat.com>
Subject: Re: [PATCH 1/2] x86/fred: Always install system interrupt handler
 into IDT

On Tue, Jun 25 2024 at 02:19, Xin Li wrote:
> On 6/21/2024 6:12 AM, Hou Wenlong wrote:
>> diff --git a/arch/x86/include/asm/idtentry.h b/arch/x86/include/asm/idtentry.h
>> index d4f24499b256..daee9f7765bc 100644
>> --- a/arch/x86/include/asm/idtentry.h
>> +++ b/arch/x86/include/asm/idtentry.h
>> @@ -470,8 +470,7 @@ static inline void fred_install_sysvec(unsigned int vector, const idtentry_t fun
>>   #define sysvec_install(vector, function) {				\
>>   	if (cpu_feature_enabled(X86_FEATURE_FRED))			\
>>   		fred_install_sysvec(vector, function);			\
>> -	else								\
>> -		idt_install_sysvec(vector, asm_##function);		\
>
> empty line, it improves readability.
>
> And please put a comment here to explain why this is unconditionally
> done for IDT.

Wait. If we need this during early boot, then why don't we enable FRED
earlier?

Thanks,

        tglx

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ