File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1459,6 +1459,14 @@ noinstr void do_machine_check(struct pt_regs *regs)
14591459 if (worst != MCE_AR_SEVERITY && !kill_current_task )
14601460 goto out ;
14611461
1462+ /*
1463+ * Enable instrumentation around the external facilities like
1464+ * task_work_add() (via queue_task_work()), fixup_exception() etc.
1465+ * For now, that is. Fixing this properly would need a lot more involved
1466+ * reorganization.
1467+ */
1468+ instrumentation_begin ();
1469+
14621470 /* Fault was in user mode and we need to take some action */
14631471 if ((m .cs & 3 ) == 3 ) {
14641472 /* If this triggers there is no way to recover. Die hard. */
@@ -1487,6 +1495,9 @@ noinstr void do_machine_check(struct pt_regs *regs)
14871495 if (m .kflags & MCE_IN_KERNEL_COPYIN )
14881496 queue_task_work (& m , msg , kill_me_never );
14891497 }
1498+
1499+ instrumentation_end ();
1500+
14901501out :
14911502 mce_wrmsrl (MSR_IA32_MCG_STATUS , 0 );
14921503}
You can’t perform that action at this time.
0 commit comments