Re: [PATCH] x86: Implement __WARN using UD0

From: H. Peter Anvin
Date: Fri Feb 24 2017 - 06:43:05 EST


On 02/24/17 01:46, Borislav Petkov wrote:
> On Fri, Feb 24, 2017 at 10:15:37AM +0100, Ingo Molnar wrote:
>> With thousands of call sites a one byte opcode would be preferred, that's why INT3
>> is so nice.
>
> ICEBP is also a single-byte: F1. And should be pretty unused :)
>

That would make debugging preproduction hardware on Linux a living
nightmare.

-hpa