Alex Bennée
bb630d9251
util/timer: avoid deadlock when shutting down
...
When we shut down a guest we disable the timers. However this can
cause deadlock if the guest has queued some async work that is trying
to advance system time and spins forever trying to wind time forward.
Pay attention to the return code and bail early if we can't wind time
forward.
Reported-by: Elisha Hollander <just4now666666@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240916085400.1046925-15-alex.bennee@linaro.org>
(cherry picked from commit bc02be4508d8753d1f6071b77d10f4661587df6f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2024-09-30 23:07:38 +03:00
..
2024-01-08 10:45:34 -05:00
2023-05-30 17:37:26 +02:00
2023-05-10 14:15:13 +02:00
2024-01-08 10:45:34 -05:00
2017-02-21 11:14:07 +00:00
2024-07-25 15:57:38 -04:00
2022-03-07 13:16:49 +00:00
2020-11-15 17:04:40 +01:00
2022-11-21 11:58:10 +01:00
2023-03-20 12:43:50 +01:00
2020-10-23 13:42:16 +01:00
2020-10-23 13:42:16 +01:00
2020-11-15 17:04:40 +01:00
2024-06-19 12:47:11 -07:00
2023-06-13 11:28:58 +02:00
2023-12-19 19:03:38 +01:00
2022-05-03 15:18:14 +04:00
2023-10-04 09:52:06 -04:00
2024-01-22 11:00:12 -05:00
2023-05-18 08:53:52 +02:00
2024-07-30 07:59:23 +10:00
2024-06-28 14:44:51 +02:00
2024-06-19 10:55:12 -07:00
2024-07-30 07:59:23 +10:00
2024-07-03 10:24:12 -07:00
2023-05-23 15:20:15 +08:00
2021-01-24 20:10:54 +01:00
2023-10-19 23:13:27 +02:00
2020-01-06 18:41:32 +04:00
2023-10-31 15:41:42 +01:00
2020-07-13 14:36:10 +01:00
2023-03-20 12:43:50 +01:00
2024-05-14 12:46:39 +02:00
2023-04-06 12:38:42 -04:00
2022-05-03 15:17:56 +04:00
2022-04-06 14:31:55 +02:00
2023-05-30 17:37:26 +02:00
2024-01-18 10:43:51 +01:00
2023-05-30 17:37:26 +02:00
2024-07-23 22:34:54 +02:00
2023-11-15 12:06:05 +03:00
2020-11-15 17:04:40 +01:00
2024-07-30 07:59:23 +10:00
2023-10-06 13:27:48 +02:00
2023-02-17 14:34:24 +01:00
2024-06-05 12:14:20 -07:00
2022-06-20 08:38:58 -03:00
2021-03-09 21:47:45 +01:00
2023-02-04 06:19:42 -10:00
2023-08-09 09:26:32 -07:00
2023-09-07 20:32:11 -05:00
2022-09-02 10:22:39 +08:00
2022-04-21 17:03:51 +04:00
2020-09-23 16:07:44 +01:00
2024-04-30 16:12:05 -07:00
2024-01-08 10:45:43 -05:00
2022-03-07 13:16:49 +00:00
2019-09-11 08:46:17 +02:00
2024-07-03 10:24:12 -07:00
2023-04-24 11:29:00 +02:00
2024-08-13 16:35:47 +02:00
2024-02-28 11:31:28 +08:00
2020-12-10 17:16:44 +01:00
2024-06-21 09:47:22 -03:00
2024-08-05 08:21:59 +10:00
2024-02-06 08:15:22 +01:00
2019-06-24 22:19:30 +02:00
2023-08-31 19:47:43 +02:00
2021-06-25 14:24:24 +03:00
2022-06-29 10:56:12 +03:00
2024-04-18 11:17:27 +02:00
2023-05-30 17:37:26 +02:00
2023-06-06 09:42:14 +02:00
2023-01-19 10:18:28 +01:00
2024-03-21 13:14:30 -04:00
2024-04-24 09:50:58 +02:00
2020-10-09 07:08:19 +02:00
2022-04-06 14:31:43 +02:00
2024-02-12 10:04:32 +01:00
2018-12-20 10:29:08 +01:00
2023-03-07 12:38:40 +01:00
2023-03-07 12:38:40 +01:00
2021-01-18 10:05:06 +00:00
2024-09-30 23:07:38 +03:00
2023-02-02 11:48:20 +00:00
2024-01-08 10:45:43 -05:00
2023-03-28 15:23:10 -07:00
2023-11-15 12:06:05 +03:00
2024-01-08 10:45:43 -05:00
2024-06-19 12:42:03 +02:00
2023-11-03 09:20:31 +01:00
2023-09-01 13:34:03 -07:00
2023-04-27 16:39:43 +02:00
2018-04-05 14:37:38 +02:00
2023-05-03 14:00:08 -05:00
2022-12-14 16:19:35 +01:00
2023-10-31 15:42:14 +01:00
2023-08-29 10:49:24 +02:00
2016-05-18 15:04:27 +03:00
2023-06-27 17:08:56 +02:00
2020-08-21 06:18:24 -04:00
2021-11-16 09:43:44 +01:00
2018-08-24 20:26:37 +02:00
2024-01-30 21:20:20 +03:00
2023-11-03 09:20:31 +01:00
2023-05-24 09:21:22 +02:00
2024-07-02 09:27:56 -04:00
2024-01-26 07:04:53 +01:00