Tetsuo Handa
b88f55389a
profiling: remove profile=sleep support
...
The kernel sleep profile is no longer working due to a recursive locking
bug introduced by commit 42a20f86dc ("sched: Add wrapper for get_wchan()
to keep task blocked")
Booting with the 'profile=sleep' kernel command line option added or
executing
# echo -n sleep > /sys/kernel/profiling
after boot causes the system to lock up.
Lockdep reports
kthreadd/3 is trying to acquire lock:
ffff93ac82e08d58 (&p->pi_lock){....}-{2:2}, at: get_wchan+0x32/0x70
but task is already holding lock:
ffff93ac82e08d58 (&p->pi_lock){....}-{2:2}, at: try_to_wake_up+0x53/0x370
with the call trace being
lock_acquire+0xc8/0x2f0
get_wchan+0x32/0x70
__update_stats_enqueue_sleeper+0x151/0x430
enqueue_entity+0x4b0/0x520
enqueue_task_fair+0x92/0x6b0
ttwu_do_activate+0x73/0x140
try_to_wake_up+0x213/0x370
swake_up_locked+0x20/0x50
complete+0x2f/0x40
kthread+0xfb/0x180
However, since nobody noticed this regression for more than two years,
let's remove 'profile=sleep' support based on the assumption that nobody
needs this functionality.
Fixes: 42a20f86dc ("sched: Add wrapper for get_wchan() to keep task blocked")
Cc: stable@vger.kernel.org # v5.16+
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2024-08-04 13:36:28 -07:00
..
2024-07-15 08:02:26 -07:00
2024-07-03 15:16:54 +02:00
2024-07-10 09:41:57 +02:00
2024-07-15 08:49:59 -07:00
2024-07-19 12:39:34 -07:00
2024-07-03 15:16:54 +02:00
2024-07-02 11:40:37 +02:00
2024-07-27 10:53:06 -07:00
2024-06-30 11:29:24 +01:00
2024-07-22 13:52:05 -07:00
2024-07-18 09:34:02 -07:00
2024-07-04 12:29:07 +02:00
2024-07-19 11:57:55 -07:00
2024-07-05 09:35:51 +01:00
2024-07-03 14:07:14 +01:00
2024-07-20 03:07:55 +02:00
2024-07-05 18:30:00 -07:00
2024-06-26 20:09:28 +01:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00
2024-07-03 15:16:54 +02:00
2024-07-18 17:17:30 -07:00
2024-07-10 13:56:22 +02:00
2024-07-27 10:14:34 -07:00
2024-07-17 21:05:18 -07:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00
2024-07-04 16:45:25 +01:00
2024-07-13 21:31:57 -07:00
2024-07-03 10:21:16 -06:00
2024-07-03 10:21:15 -06:00
2024-07-19 09:32:49 -06:00
2024-07-03 10:21:15 -06:00
2024-07-19 09:32:49 -06:00
2024-07-22 11:32:05 -07:00
2024-07-12 22:14:15 +02:00
2024-07-21 17:15:46 -07:00
2024-07-14 20:38:34 -07:00
2024-07-09 17:01:46 +02:00
2024-07-03 19:29:59 -07:00
2024-07-08 01:51:05 -06:00
2024-07-10 10:19:59 -07:00
2024-07-21 17:56:22 -07:00
2024-07-22 11:32:05 -07:00
2024-06-24 22:25:02 -07:00
2024-07-16 16:42:37 -07:00
2024-06-24 22:25:02 -07:00
2024-07-10 09:53:39 -04:00
2024-07-18 10:33:14 -07:00
2024-07-30 10:36:47 -07:00
2024-06-24 22:25:02 -07:00
2024-06-24 22:25:02 -07:00
2024-07-21 17:56:22 -07:00
2024-07-09 17:58:20 +02:00
2024-08-02 09:33:35 -07:00
2024-06-24 22:25:01 -07:00
2024-07-26 09:50:36 -07:00
2024-07-10 13:19:50 -07:00
2024-07-02 12:52:25 -07:00
2024-07-03 19:30:13 -07:00
2024-07-15 11:39:44 -07:00
2024-06-30 12:27:16 +01:00
2024-07-19 10:48:44 -07:00
2024-07-03 15:16:54 +02:00
2024-06-25 17:15:06 -07:00
2024-07-10 15:38:14 +02:00
2024-07-12 15:52:20 -07:00
2024-07-12 10:06:01 +02:00
2024-07-03 15:16:54 +02:00
2024-07-15 08:02:30 -07:00
2024-07-10 23:15:36 +00:00
2024-07-17 21:05:18 -07:00
2024-06-28 10:36:45 +02:00
2024-07-09 17:01:46 +02:00
2024-07-27 10:28:28 +09:00
2024-07-02 06:20:49 +02:00
2024-07-15 14:20:22 -07:00
2024-07-03 10:36:14 +02:00
2024-07-03 15:16:54 +02:00
2024-07-24 20:59:29 +02:00
2024-07-03 15:16:54 +02:00
2024-07-03 19:29:52 -07:00
2024-07-03 15:16:54 +02:00
2024-07-21 17:15:46 -07:00
2024-06-27 11:00:45 +02:00
2024-07-03 19:30:06 -07:00
2024-07-06 11:53:19 -07:00
2024-07-26 14:33:09 -07:00
2024-07-17 21:08:54 -07:00
2024-07-03 15:16:54 +02:00
2024-07-25 10:42:22 -07:00
2024-07-12 16:39:52 -07:00
2024-07-08 16:22:49 -07:00
2024-07-08 11:40:57 -05:00
2024-07-22 13:52:05 -07:00
2024-07-26 08:31:59 -06:00
2024-07-03 15:45:47 +01:00
2024-07-19 09:59:58 -07:00
2024-07-04 09:25:59 +02:00
2024-07-15 15:13:56 +02:00
2024-07-21 17:15:46 -07:00
2024-06-24 22:25:02 -07:00
2024-07-03 19:30:22 -07:00
2024-07-03 19:30:23 -07:00
2024-07-26 14:46:15 -04:00
2024-07-04 17:07:01 +01:00
2024-07-04 11:52:32 +02:00
2024-07-10 12:14:54 -07:00
2024-07-14 19:00:16 -04:00
2024-07-18 17:27:43 -07:00
2024-07-16 14:50:44 -07:00
2024-07-03 15:16:54 +02:00
2024-07-01 19:28:58 +01:00
2024-07-03 15:16:54 +02:00
2024-07-03 15:16:54 +02:00
2024-07-21 17:15:46 -07:00
2024-07-26 14:33:09 -07:00
2024-07-12 15:52:09 -07:00
2024-07-03 19:30:18 -07:00
2024-07-12 15:52:20 -07:00
2024-07-03 15:16:54 +02:00
2024-07-25 10:42:22 -07:00
2024-07-03 19:30:12 -07:00
2024-07-06 11:53:20 -07:00
2024-07-15 08:02:26 -07:00
2024-07-31 09:57:18 -07:00
2024-07-12 06:45:23 -10:00
2024-07-21 17:15:46 -07:00
2024-07-26 14:33:09 -07:00
2024-07-06 11:44:41 -07:00
2024-07-23 11:43:40 -07:00
2024-07-03 15:16:54 +02:00
2024-07-22 14:02:19 -07:00
2024-07-03 15:16:54 +02:00
2024-07-15 08:02:26 -07:00
2024-07-11 18:11:31 -07:00
2024-07-08 13:47:25 -04:00
2024-07-08 13:47:27 -04:00
2024-07-08 13:47:51 -04:00
2024-07-08 13:47:26 -04:00
2024-06-24 22:25:02 -07:00
2024-06-28 10:37:29 +02:00
2024-07-21 17:56:22 -07:00
2024-07-26 08:06:15 -06:00
2024-07-25 06:53:47 -05:00
2024-07-12 15:52:20 -07:00
2024-07-03 22:40:38 -07:00
2024-07-03 19:30:20 -07:00
2024-07-26 15:32:27 -07:00
2024-07-23 15:15:16 -07:00
2024-06-24 22:25:05 -07:00
2024-07-03 16:44:22 +02:00
2024-06-28 09:52:05 +02:00
2024-07-19 12:39:34 -07:00
2024-07-04 14:40:53 +00:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00
2024-07-03 19:30:02 -07:00
2024-06-24 22:25:02 -07:00
2024-07-24 20:59:29 +02:00
2024-07-17 21:05:19 -07:00
2024-07-12 15:52:15 -07:00
2024-07-25 10:42:22 -07:00
2024-07-21 17:56:22 -07:00
2024-06-26 11:17:20 +05:30
2024-07-03 15:16:54 +02:00
2024-07-21 17:56:22 -07:00
2024-06-26 17:32:00 +02:00
2024-07-25 13:18:41 -07:00
2024-08-04 13:36:28 -07:00
2024-07-10 17:52:47 +02:00
2024-07-13 21:36:36 -07:00
2024-07-21 17:56:22 -07:00
2024-07-10 23:05:45 +01:00
2024-07-02 19:49:54 +02:00
2024-07-03 15:16:54 +02:00
2024-07-03 19:30:18 -07:00
2024-07-19 09:39:32 -06:00
2024-07-10 07:59:03 +02:00
2024-07-21 17:56:22 -07:00
2024-07-03 15:16:54 +02:00
2024-07-24 20:59:29 +02:00
2024-06-24 22:25:02 -07:00
2024-07-03 15:16:54 +02:00
2024-06-28 10:48:23 +01:00
2024-07-12 15:52:21 -07:00
2024-07-02 18:59:33 -07:00
2024-07-21 17:15:46 -07:00
2024-07-12 15:52:20 -07:00
2024-07-21 17:15:46 -07:00
2024-07-03 15:16:54 +02:00
2024-07-16 19:28:34 -07:00
2024-07-20 12:41:03 -07:00
2024-07-05 09:35:51 +01:00
2024-06-24 22:25:02 -07:00
2024-07-06 11:44:41 -07:00
2024-07-12 15:52:15 -07:00
2024-07-10 07:59:03 +02:00
2024-07-18 12:19:20 -07:00
2024-07-24 20:59:29 +02:00
2024-07-04 02:02:33 -06:00
2024-07-09 13:26:34 +02:00
2024-07-03 15:16:54 +02:00
2024-07-03 15:16:54 +02:00
2024-07-12 15:14:56 +02:00
2024-06-24 22:25:02 -07:00
2024-07-05 02:12:27 +03:00
2024-06-24 22:25:02 -07:00
2024-07-01 15:46:36 +02:00
2024-07-08 23:44:01 +02:00
2024-07-10 13:58:24 +02:00
2024-07-19 20:22:12 +02:00
2024-07-17 05:43:21 -04:00
2024-07-30 18:34:13 -07:00
2024-07-29 12:53:37 -07:00
2024-07-24 20:59:29 +02:00
2024-07-21 17:56:22 -07:00
2024-07-24 20:59:29 +02:00
2024-07-10 10:25:54 +02:00
2024-07-10 12:14:55 -07:00