News for hackers. Stuff that matters.
Re:Trigger a Kernel Panic to Diagnose Unresponsive EC2 Insta... by kccqzy on Thursday August 15, 2019 @03:46PM (#20708937)
Not all NMIs cause kernel panics. In fact in a normally running system you are likely to receive NMIs as part of the normal operation. I've seen a typical Windows 10 system handle hundreds of NMIs in a short span, and they are all handled gracefully (interrupt vector 2). (Perhaps certain drivers? Not sure.)

It might be a better idea to trigger a machine check (#MC). That said, AWS probably knows more than I do.

Re:Trigger a Kernel Panic to Diagnose Unresponsive EC2 Insta... by amluto on Thursday August 15, 2019 @04:28PM (#20709316)
#MC is a colossal turd. Don’t go there.

source: I help keep Linux’s NMI and MCE entry asm working. NMI is also a turd, but it’s a turd that can work reliably. Not crashing due to MCE is strictly best-effort.

Re:Trigger a Kernel Panic to Diagnose Unresponsive EC2 Insta... by throwaway2048 on Thursday August 15, 2019 @03:58PM (#20709034)
NMI (Non Maskable Interrupt) is both a general term and a term that specifically refers to an IBM PC x86 compatible function built into motherboards.

Historically it took the form of a button on the computer/server that when pressed would signal the kernel to bluescreen/kernel panic and a dump of memory to disk, then a reboot, aka a "machine check". It is now present also in the virtual hardware of a VM.

This article is talking about the latter, not the generic idea of hardware raising an NMI (which many types of hardware raise during error conditions, such as ECC or raid controllers or other devices), which is likely what you are seeing in your logs.

Re:Trigger a Kernel Panic to Diagnose Unresponsive EC2 Insta... by kccqzy on Thursday August 15, 2019 @04:03PM (#20709076)
No I'm talking about the latter. To be specific I'm referring to the kind of NMI interrupt defined by Intel in Volume 3 Section 6.7 of its manual, that triggers interrupt vector 2 in protected mode. I write code for a hypervisor and it's the hypervisor's job to pass on NMIs from the hardware to the guest, which is why I see these NMIs.