Mayank Rungta
db2acc01b7
ANDROID: mm: Make dump_tasks() safe in NMI context
...
dump_tasks() can be called from NMI context to dump memory status of all
tasks. However, calling from NMI context has safety issues:
1. find_lock_task_mm() acquires task_lock(t) using spin_lock(), which
is not NMI-safe and can deadlock if alloc_lock is held when NMI fires.
2. mem_cgroup_scan_tasks() traverses memcg structures and takes locks
that are not NMI-safe.
Fix these by:
- Using spin_trylock(&t->alloc_lock) in find_lock_task_mm() when in_nmi().
- Returning early if a memcg oom dump is requested in NMI context.
Fixes: 4df28ddcd9 ("ANDROID: mm: export dump_tasks symbol.")
Bug: 538262381
Change-Id: I8b79213015fde74b81427d44f122296c5e0edaf9
Signed-off-by: Mayank Rungta <mrungta@google.com >
2026-08-14 09:44:08 -07:00
..
2026-06-03 16:25:51 -07:00
2026-06-16 08:44:43 +05:30
2026-06-12 11:25:12 +02:00
2026-02-21 17:09:51 -08:00
2026-01-31 14:22:40 -08:00
2026-04-18 23:24:27 -07:00
2026-01-31 14:22:36 -08:00
2026-04-05 13:53:32 -07:00
2026-01-21 09:38:16 -08:00
2026-05-28 20:50:33 -07:00
2026-06-03 16:25:49 -07:00
2026-06-04 21:59:52 +00:00
2025-05-22 14:55:36 -07:00
2026-04-18 00:10:46 -07:00
2025-05-12 23:50:38 -07:00
2026-04-05 13:53:11 -07:00
2025-11-20 13:43:57 -08:00
2026-02-21 17:09:51 -08:00
2025-07-01 13:25:36 -06:00
2026-01-26 20:02:26 -08:00
2026-04-05 13:53:34 -07:00
2026-04-05 13:52:53 -07:00
2026-06-04 10:16:50 +02:00
2026-02-06 15:47:16 -08:00
2026-02-06 15:47:16 -08:00
2026-04-05 13:53:07 -07:00
2026-01-31 14:22:38 -08:00
2026-04-26 23:38:57 +02:00
2026-06-15 03:30:45 +05:30
2026-02-21 17:09:51 -08:00
2026-04-27 05:54:24 -07:00
2026-01-26 20:02:28 -08:00
2025-11-20 13:43:57 -08:00
2026-01-20 19:24:50 -08:00
2025-11-20 13:43:57 -08:00
2026-05-31 21:50:24 -07:00
2025-03-16 22:06:29 -07:00
2026-05-28 20:50:34 -07:00
2025-09-21 14:22:21 -07:00
2026-05-26 11:02:01 +02:00
2026-04-19 14:45:37 -07:00
2026-04-05 13:53:13 -07:00
2025-03-16 22:06:23 -07:00
2026-07-28 09:09:00 -07:00
2026-04-18 00:10:48 -07:00
2026-04-05 13:53:47 -07:00
2026-04-18 00:10:48 -07:00
2026-04-05 13:53:40 -07:00
2026-06-03 16:25:51 -07:00
2025-07-09 22:42:22 -07:00
2026-04-05 13:53:41 -07:00
2026-04-20 01:09:35 -07:00
2025-11-16 17:27:58 -08:00
2026-05-25 20:48:14 +03:00
2026-04-18 00:10:47 -07:00
2026-04-18 00:10:47 -07:00
2026-05-28 20:50:33 -07:00
2026-05-04 14:03:16 +00:00
2026-04-24 22:53:04 +00:00
2026-06-01 09:19:58 -07:00
2026-05-13 17:40:03 -07:00
2026-05-28 20:50:34 -07:00
2026-04-05 13:53:33 -07:00
2026-06-01 09:13:09 -07:00
2026-04-19 14:45:37 -07:00
2026-06-03 18:20:47 +02:00
2026-04-18 23:24:27 -07:00
2026-01-09 11:53:51 +02:00
2026-05-21 19:06:13 -07:00
2026-04-18 00:10:45 -07:00
2026-06-03 16:25:52 -07:00
2026-04-18 00:10:44 -07:00
2026-06-02 16:29:16 +01:00
2026-01-31 14:22:51 -08:00
2026-05-19 17:38:50 +00:00
2026-04-05 13:53:05 -07:00
2026-04-15 12:59:16 -07:00
2025-09-13 16:55:07 -07:00
2026-04-18 00:10:55 -07:00
2026-04-05 13:53:40 -07:00
2026-04-05 13:53:41 -07:00
2026-04-05 13:53:28 -07:00
2025-08-20 16:31:23 +03:00
2026-02-21 09:58:22 -08:00
2025-05-12 23:50:38 -07:00
2026-08-14 09:44:08 -07:00
2026-08-11 21:33:30 -07:00
2025-03-17 00:05:35 -07:00
2026-03-28 11:39:00 -07:00
2025-01-13 22:40:31 -08:00
2026-04-05 13:53:02 -07:00
2026-05-29 05:34:24 -06:00
2026-01-31 14:22:42 -08:00
2026-04-21 03:08:00 -07:00
2026-04-05 13:53:17 -07:00
2026-03-13 00:07:47 +01:00
2026-04-05 13:53:03 -07:00
2026-06-15 03:30:45 +05:30
2026-04-17 22:51:45 -07:00
2025-09-21 14:22:04 -07:00
2025-07-13 16:38:23 -07:00
2025-11-16 17:27:54 -08:00
2026-05-22 21:34:39 +00:00
2026-04-17 22:51:45 -07:00
2025-11-16 17:27:52 -08:00
2026-02-12 11:32:37 -08:00
2026-05-21 19:06:12 -07:00
2025-01-13 22:40:38 -08:00
2026-06-04 10:10:49 +02:00
2026-02-21 01:02:28 -08:00
2026-07-01 22:43:48 +00:00
2026-04-08 06:52:47 +10:00
2026-01-26 20:02:25 -08:00
2026-04-18 00:10:44 -07:00
2026-06-16 08:44:43 +05:30
2026-07-28 09:09:00 -07:00
2026-07-28 09:09:00 -07:00
2026-04-05 13:53:34 -07:00
2026-04-18 00:10:52 -07:00
2025-03-17 22:06:58 -07:00
2026-04-05 13:53:37 -07:00
2026-04-05 13:52:59 -07:00
2026-05-22 21:34:39 +00:00
2026-04-05 13:52:59 -07:00
2026-05-19 17:38:50 +00:00
2026-07-21 20:51:17 -07:00
2026-04-19 14:45:37 -07:00
2025-11-13 11:01:08 +01:00
2026-05-31 21:50:26 -07:00
2026-05-26 23:01:06 +00:00
2026-04-05 13:53:40 -07:00
2025-10-02 18:18:33 -07:00
2026-02-12 15:42:53 -08:00
2026-04-27 05:54:24 -07:00
2026-04-05 13:53:44 -07:00
2026-05-21 19:06:13 -07:00
2026-02-21 17:09:51 -08:00
2026-07-01 12:48:23 -07:00
2026-04-19 08:01:17 -07:00
2026-04-18 00:10:47 -07:00
2025-09-21 14:21:59 -07:00
2026-04-05 13:53:34 -07:00
2026-04-18 00:10:50 -07:00