Re: [POC 1/6] irq & spin_lock: Add counted interrupt disabling/enabling

From: Thomas Gleixner
Date: Thu Oct 24 2024 - 13:23:08 EST


On Thu, Oct 24 2024 at 12:05, Peter Zijlstra wrote:
> On Wed, Oct 23, 2024 at 10:38:38PM +0200, Thomas Gleixner wrote:
>> But if we want to support insanity then we make preempt count 64 bit and
>> be done with it. But no, I don't think that encouraging insanity is a
>> good thing.
>
> The problem is that in most release builds the overflow will be silent
> and cause spurious weirdness that is a pain in the arse to debug :/
>
> That is my only concern -- making insane code crash hard is good, making
> it silently mostly work but cause random weirdness is not.

I wish we could come up with a lightweight check for that.

Thanks,

tglx