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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 03, 2025 at 06:05:07PM -0800, H. Peter Anvin wrote:
> On March 3, 2025 4:57:49 PM PST, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
> >> One more thing: if we remove ASM_CALL_CONSTRAINTS, we will not be able to use the redzone in future FRED only kernel builds.
> >
> >That's easy enough to fix with "|| CONFIG_FRED_EXCLUSIVE" in some
> >theoretical future when it's a feasible config to use.
> >
> >~Andrew
> 
> Assuming it hasn't bitrotted...

If we start using red zone, I'm thinking it should be fairly easy to add
"red zone stack validation" to objtool.  Then the build bots should be
able to shake out pretty quickly where ASM_CALL_CONSTRAINT is needed.

-- 
Josh




[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux