-
由 Ed Swierk 提交于
With print-fatal-signals=1 on a kernel with CONFIG_PREEMPT=y, sending an unexpected signal to a process causes a BUG: using smp_processor_id() in preemptible code. get_signal_to_deliver() releases the siglock before calling print_fatal_signal(), which calls show_regs(), which calls smp_processor_id(), which is not supposed to be called from a preemptible thread. Make sure show_regs() runs with preemption disabled. Signed-off-by: NEd Swierk <eswierk@aristanetworks.com> Signed-off-by: NIngo Molnar <mingo@elte.hu>
3a9f84d3