Peter Zijlstra
53d472f972
lockdep/mm: Fix might_fault() lockdep check of current->mm->mmap_lock
...
[ Upstream commit a1b65f3f7c6f7f0a08a7dba8be458c6415236487 ]
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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:33:30 +02:00
..
2024-12-14 19:54:52 +01:00
2024-12-14 19:54:50 +01:00
2025-02-21 13:49:48 +01:00
2025-03-13 12:53:15 +01:00
2023-04-26 14:28:39 +02:00
2022-08-02 12:34:03 -04:00
2022-08-28 14:02:45 -07:00
2022-09-11 20:25:50 -07:00
2024-06-16 13:41:39 +02:00
2024-04-03 15:19:42 +02:00
2022-06-27 12:52:53 -07:00
2022-09-26 19:46:26 -07:00
2022-03-22 15:57:11 -07:00
2022-04-26 13:36:25 -07:00
2022-11-22 18:50:44 -08:00
2025-01-23 17:17:14 +01:00
2022-10-03 14:02:53 -07:00
2022-09-26 12:14:34 -07:00
2022-07-17 17:14:27 -07:00
2025-03-07 16:56:47 +01:00
2022-10-12 18:51:51 -07:00
2022-09-26 19:46:05 -07:00
2024-11-08 16:26:47 +01:00
2024-05-17 11:55:52 +02:00
2023-09-19 12:27:56 +02:00
2022-08-08 18:06:43 -07:00
2024-08-14 13:53:02 +02:00
2022-10-03 14:03:05 -07:00
2022-09-26 19:46:16 -07:00
2024-11-22 15:37:34 +01:00
2022-06-27 12:22:31 +01:00
2024-10-17 15:22:05 +02:00
2023-06-14 11:15:29 +02:00
2024-08-29 17:30:17 +02:00
2025-02-21 13:49:49 +01:00
2023-03-30 12:49:29 +02:00
2022-06-16 19:48:31 -07:00
2023-06-28 11:12:17 +02:00
2025-03-07 16:56:39 +01:00
2022-10-03 14:03:36 -07:00
2024-03-01 13:26:36 +01:00
2025-03-07 16:56:29 +01:00
2023-06-28 11:12:27 +02:00
2024-09-12 11:10:17 +02:00
2024-08-29 17:30:15 +02:00
2023-03-10 09:34:27 +01:00
2025-04-10 14:33:30 +02:00
2024-08-03 08:49:40 +02:00
2022-06-16 19:48:30 -07:00
2022-11-08 15:57:23 -08:00
2024-04-03 15:19:36 +02:00
2022-11-22 18:50:43 -08:00
2025-03-28 21:59:02 +01:00
2023-03-22 13:34:03 +01:00
2022-09-26 19:46:27 -07:00
2022-09-26 19:46:09 -07:00
2022-10-03 14:02:43 -07:00
2024-08-03 08:49:30 +02:00
2024-12-14 19:54:53 +01:00
2022-11-30 14:49:42 -08:00
2022-04-21 20:01:10 -07:00
2022-09-26 19:46:09 -07:00
2022-10-12 15:56:46 -07:00
2023-02-09 11:28:22 +01:00
2022-09-26 19:46:25 -07:00
2025-03-28 21:58:53 +01:00
2025-03-07 16:56:29 +01:00
2025-03-13 12:53:15 +01:00
2022-09-11 20:26:01 -07:00
2022-11-22 18:50:41 -08:00
2022-05-19 14:08:54 -07:00
2023-02-09 11:28:04 +01:00
2022-10-28 13:37:22 -07:00
2022-10-03 14:03:03 -07:00
2024-06-27 13:46:22 +02:00
2022-09-26 19:46:05 -07:00
2024-07-11 12:47:14 +02:00
2022-10-10 17:53:04 -07:00
2022-05-13 07:20:18 -07:00
2022-07-17 17:14:47 -07:00
2024-06-16 13:41:38 +02:00
2023-02-09 11:28:04 +01:00
2022-09-03 10:13:13 -07:00
2025-01-09 13:30:06 +01:00
2023-03-10 09:34:25 +01:00
2022-10-03 14:03:05 -07:00
2024-10-17 15:22:28 +02:00
2024-11-22 15:37:34 +01:00
2023-02-22 12:59:46 +01:00
2022-10-03 14:03:07 -07:00
2024-11-17 15:07:22 +01:00
2023-03-30 12:49:23 +02:00
2022-10-10 17:53:04 -07:00
2022-09-29 11:30:55 +02:00
2022-10-11 17:42:55 -06:00
2022-08-08 18:06:42 -07:00
2024-09-12 11:10:17 +02:00
2022-10-03 14:03:36 -07:00
2022-10-03 14:02:46 -07:00
2022-10-03 14:02:51 -07:00
2024-12-14 19:54:31 +01:00
2024-03-01 13:26:32 +01:00
2024-10-22 15:56:43 +02:00
2024-09-04 13:25:00 +02:00
2023-06-28 11:12:17 +02:00
2024-02-23 09:12:51 +01:00
2024-11-22 15:37:34 +01:00
2025-03-13 12:53:15 +01:00
2023-09-13 09:42:33 +02:00
2025-01-09 13:30:07 +01:00
2024-12-14 19:54:13 +01:00
2023-12-20 17:00:26 +01:00
2022-08-02 12:34:03 -04:00
2023-08-23 17:52:40 +02:00
2024-03-01 13:26:39 +01:00