Re: [RFC] arch generic way to trigger unknown NMIs

From: Andi Kleen
Date: Thu Oct 07 2010 - 03:26:52 EST



Having a regression test for this is good, but it would
be also good if it wasn't a private one but in some public
git repository.

> static struct jprobe lkdtm;
> @@ -340,6 +343,9 @@ static void lkdtm_do_action(enum ctype which)
> set_current_state(TASK_UNINTERRUPTIBLE);
> schedule();
> break;
> + case NMI:
> + apic->send_IPI_allbutself(NMI_VECTOR);
> + break;
> case NONE:
> default:
> break;
>
> Anyone have any thoughts? Maybe there is an easier way?

Do you really want the NMI on all CPUs - 1? Normally it's directed to
a single one.

-Andi
--
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/