Commit 156172a1 authored by Peter Zijlstra's avatar Peter Zijlstra

irq_work: Make irq_work_queue() NMI-safe again

Someone carelessly put NMI unsafe code in irq_work_queue(), breaking
just about every single user. Also, someone has a terrible comment
style.

Fixes: e2b5bcf9 ("irq_work: record irq_work_queue() call stack")
Reported-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/YL+uBq8LzXXZsYVf@hirez.programming.kicks-ass.net
parent 848ff376
......@@ -70,9 +70,6 @@ bool irq_work_queue(struct irq_work *work)
if (!irq_work_claim(work))
return false;
/*record irq_work call stack in order to print it in KASAN reports*/
kasan_record_aux_stack(work);
/* Queue the entry and raise the IPI if needed. */
preempt_disable();
__irq_work_queue_local(work);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment