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)
1459
1459
if (worst != MCE_AR_SEVERITY && !kill_current_task )
1460
1460
goto out ;
1461
1461
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
+
1462
1470
/* Fault was in user mode and we need to take some action */
1463
1471
if ((m .cs & 3 ) == 3 ) {
1464
1472
/* If this triggers there is no way to recover. Die hard. */
@@ -1487,6 +1495,9 @@ noinstr void do_machine_check(struct pt_regs *regs)
1487
1495
if (m .kflags & MCE_IN_KERNEL_COPYIN )
1488
1496
queue_task_work (& m , msg , kill_me_never );
1489
1497
}
1498
+
1499
+ instrumentation_end ();
1500
+
1490
1501
out :
1491
1502
mce_wrmsrl (MSR_IA32_MCG_STATUS , 0 );
1492
1503
}
You can’t perform that action at this time.
0 commit comments