Commit 70b369c
committed
lockdep/mm: Fix might_fault() lockdep check of current->mm->mmap_lock
commit a1b65f3
Author: Peter Zijlstra <[email protected]>
Date: Mon Nov 4 14:39:10 2024 +0100
lockdep/mm: Fix might_fault() lockdep check of current->mm->mmap_lock
Turns out that this commit, about 10 years ago:
9ec2353 ("sched/preempt, mm/fault: Trigger might_sleep() in might_fault() with disabled pagefaults")
... accidentally (and unnessecarily) put the lockdep part of
__might_fault() under CONFIG_DEBUG_ATOMIC_SLEEP=y.
This is potentially notable because large distributions such as
Ubuntu are running with !CONFIG_DEBUG_ATOMIC_SLEEP.
Restore the debug check.
[ mingo: Update changelog. ]
Fixes: 9ec2353 ("sched/preempt, mm/fault: Trigger might_sleep() in might_fault() with disabled pagefaults")
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
JIRA: https://issues.redhat.com/browse/RHEL-77742
Signed-off-by: Nico Pache <[email protected]>1 parent 68d3f57 commit 70b369c
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6747 | 6747 | | |
6748 | 6748 | | |
6749 | 6749 | | |
6750 | | - | |
6751 | 6750 | | |
6752 | 6751 | | |
6753 | | - | |
6754 | 6752 | | |
6755 | 6753 | | |
6756 | 6754 | | |
| |||
0 commit comments