aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/locking/lockdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index 1114dc42c27f..257931e2fbbe 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -4623,6 +4623,10 @@ asmlinkage __visible void lockdep_sys_exit(void)
4623 /* 4623 /*
4624 * The lock history for each syscall should be independent. So wipe the 4624 * The lock history for each syscall should be independent. So wipe the
4625 * slate clean on return to userspace. 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.
4626 */ 4630 */
4627 crossrelease_hist_end(XHLOCK_PROC); 4631 crossrelease_hist_end(XHLOCK_PROC);
4628 crossrelease_hist_start(XHLOCK_PROC); 4632 crossrelease_hist_start(XHLOCK_PROC);