Re: STI architectural question (and lretq -- I'm not even kidding)

From: Andy Lutomirski
Date: Wed Jul 23 2014 - 17:53:19 EST


On Wed, Jul 23, 2014 at 2:18 PM, Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
> Andy Lutomirski <luto@xxxxxxxxxxxxxx> writes:
>
>> I think an MCE just might be okay -- it's not
>> really recoverable anyway.
>
> That's wrong.

I think that, other than broadcast MCEs, #MC that hits in kernel mode
is non-recoverable, or at least can't safely be recovered. (There's a
separate APIC interrupt for recoverable errors, I think, but that's a
much saner interface.)

Regardless, I put in a fixup in the patches I sent out -- they should
be just as safe as existing code if a #MC hits right after sti. I
have no idea how to test that, though...

--Andy

>
> -Andi
>
> --
> ak@xxxxxxxxxxxxxxx -- Speaking for myself only



--
Andy Lutomirski
AMA Capital Management, LLC
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/