Re: [tip: x86/asm] x86/asm: Make ASM_CALL_CONSTRAINT conditional on frame pointers

From: Ingo Molnar
Date: Tue Mar 04 2025 - 14:15:15 EST



* Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:

> On Tue, Mar 04, 2025 at 08:01:58AM -1000, Linus Torvalds wrote:
> > On Tue, 4 Mar 2025 at 07:51, Linus Torvalds
> > <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> > >
> > > Put another way: the old code has years of testing and is
> > > significantly simpler. The new code is new and untested and more
> > > complicated and has already caused known new problems, never mind any
> > > unknown ones.
> > >
> > > It really doesn't sound like a good trade-off to me.
>
> I'm utterly confused, what are these new problems you're referring to?
>
> And how specifically is this more fragile?
>
> AFAICT, there was one known bug before the patches. Now there are zero
> known bugs.
>
> Of course, it's entirely possible the build bots will shake out new
> objtool warnings over the next weeks. But as of now, I haven't seen
> anything.

In any case I've zapped these two commits from tip:x86/asm for the time
being:

x86/asm: Fix ASM_CALL_CONSTRAINT for Clang 19 + KCOV + KMSAN
x86/asm: Make ASM_CALL_CONSTRAINT conditional on frame pointers

Until there's consensus.

I left the 3 preparatory patches, which make sense as standalone
cleanups:

KVM: VMX: Use named operands in inline asm
x86/hyperv: Use named operands in inline asm
x86/alternatives: Simplify alternative_call() interface

Thanks,

Ingo