We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccde85b commit a10b5c5Copy full SHA for a10b5c5
kernel/locking/lockdep.c
@@ -4623,6 +4623,10 @@ asmlinkage __visible void lockdep_sys_exit(void)
4623
/*
4624
* The lock history for each syscall should be independent. So wipe the
4625
* slate clean on return to userspace.
4626
+ *
4627
+ * crossrelease_hist_end() works well here even when getting here
4628
+ * without starting (i.e. just after forking), because it rolls back
4629
+ * the index to point to the last entry, which is already invalid.
4630
*/
4631
crossrelease_hist_end(XHLOCK_PROC);
4632
crossrelease_hist_start(XHLOCK_PROC);
0 commit comments