diff options
author | 2024-11-04 14:39:10 +0100 | |
---|---|---|
committer | 2025-03-01 19:32:41 +0100 | |
commit | a1b65f3f7c6f7f0a08a7dba8be458c6415236487 (patch) | |
tree | d2d66e3c0d61c03c9a6c5a4573cf3800d8039dab /scripts/generate_rust_analyzer.py | |
parent | x86/locking: Remove semicolon from "lock" prefix (diff) | |
download | wireguard-linux-a1b65f3f7c6f7f0a08a7dba8be458c6415236487.tar.xz wireguard-linux-a1b65f3f7c6f7f0a08a7dba8be458c6415236487.zip |
lockdep/mm: Fix might_fault() lockdep check of current->mm->mmap_lock
Turns out that this commit, about 10 years ago:
9ec23531fd48 ("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: 9ec23531fd48 ("sched/preempt, mm/fault: Trigger might_sleep() in might_fault() with disabled pagefaults")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/r/20241104135517.536628371@infradead.org
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions