Skip to content

Commit 6a8d0d2

Browse files
committed
Merge tag 'core-urgent-2020-11-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull entry code fix from Thomas Gleixner: "A single fix for the generic entry code to correct the wrong assumption that the lockdep interrupt state needs not to be established before calling the RCU check" * tag 'core-urgent-2020-11-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: entry: Fix the incorrect ordering of lockdep and RCU check
2 parents e942d75 + 9d820f6 commit 6a8d0d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/entry/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ noinstr irqentry_state_t irqentry_enter(struct pt_regs *regs)
337337
* already contains a warning when RCU is not watching, so no point
338338
* in having another one here.
339339
*/
340+
lockdep_hardirqs_off(CALLER_ADDR0);
340341
instrumentation_begin();
341342
rcu_irq_enter_check_tick();
342-
/* Use the combo lockdep/tracing function */
343-
trace_hardirqs_off();
343+
trace_hardirqs_off_finish();
344344
instrumentation_end();
345345

346346
return ret;

0 commit comments

Comments
 (0)