Re: [tip: x86/urgent] x86/bugs: Use code segment selector for VERW operand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip: x86/urgent] x86/bugs: Use code segment selector for VERW operand
- From: Borislav Petkov <bp@xxxxxxxxx>
- Date: Wed, 9 Oct 2024 15:42:05 +0200
- Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-tip-commits@xxxxxxxxxxxxxxx, Robert Gill <rtgill82@xxxxxxxxx>, stable@xxxxxxxxxxxxxxx, #@tip-bot2.tec.linutronix.de, 5.10+@xxxxxxxxxxxxxxxxxxxxxxxxxx, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, Brian Gerst <brgerst@xxxxxxxxx>, Pawan Gupta <pawan.kumar.gupta@xxxxxxxxxxxxxxx>, x86@xxxxxxxxxx
- In-reply-to: <efa42b69-13ba-40ed-99e2-431220d7dcb3@citrix.com>
- References: <172842753652.1442.15253433006014560776.tip-bot2@tip-bot2> <20241009061102.GBZwYediMceBEfSEFo@fat_crate.local> <20241009073437.GG17263@noisy.programming.kicks-ass.net> <20241009093257.GDZwZNyfIjw0lTZJqL@fat_crate.local> <efa42b69-13ba-40ed-99e2-431220d7dcb3@citrix.com>
On Wed, Oct 09, 2024 at 11:24:19AM +0100, Andrew Cooper wrote:
> I'll bite. Why do you think this form is is better?
Smaller, shorter ifdeffery block. An example speaks more than 1000 words:
arch/x86/include/asm/asm.h
> You've now got VERW_ARG leaking across the whole kernel, and a layer of
> obfuscatio^W indirection in CLEAR_CPU_BUFFERS.
We have that all around the kernel anyway.
> Admittedly, when I wrote this fragment as a suggestion[1], the 32bit
> comment was in the main comment because there really is no need for it
> to be separate.
>
> But abstracting away VERW_ARG like this hampers legibility/clarity,
> rather than improving it IMO.
I guess we see it differently.
I don't care all that much to continue this - I'll just say that having the
CLEAR_CPU_BUFFERS macro text simpler and putting the argument complexity
abstracted away in macros reads better to me.
Oh well.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]