Matt Heon
0ccb836156
Fix a potential deadlock during podman cp
...
Have one function without a `defer lock.unlock()` as one of the
commands in it calls a function that also takes the same lock,
so the unlock has to happen prior to function completion.
Unfortunately, this is prone to errors, like the one here: I
missed a case, and we could return without unlocking, causing a
deadlock later in the cleanup code as we tried to take the same
lock again.
Refactor the command to use `defer unlock()` to simplify and
avoid any further errors of this type.
Introduced by e66b788a514fb8df2c8b8d3c000e0d543bbd60df - this
should be included in any backports of that commit.
Fixes #25585
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-04-02 09:38:19 -04:00
..
2024-09-05 10:40:07 -07:00
2023-02-20 14:51:04 +01:00
2023-04-11 09:15:05 -04:00
2025-01-15 11:44:56 +00:00
2023-01-26 22:20:15 +09:00
2024-02-27 04:30:26 -07:00
2025-02-24 20:27:23 +00:00
2025-01-09 18:47:37 +01:00
2024-11-24 22:00:31 -05:00
2024-08-19 11:41:29 +02:00
2025-01-23 00:03:52 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-03-26 18:46:48 +01:00
2024-10-16 10:15:19 -06:00
2024-10-16 10:15:19 -06:00
2024-10-16 10:15:19 -06:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-09-09 06:16:20 -06:00
2024-10-01 07:54:52 -04:00
2025-01-06 07:09:12 -07:00
2025-04-02 09:38:19 -04:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-11-05 11:58:47 +00:00
2025-04-01 11:32:49 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-09-05 11:36:38 -04:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-09-03 15:14:15 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-02-04 15:17:24 -05:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-01-23 01:10:18 +01:00
2025-01-23 01:10:18 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-09-03 15:14:15 +02:00
2025-01-23 00:03:52 +01:00
2025-01-23 00:03:52 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-01-20 15:55:26 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-01-15 16:12:02 -05:00
2024-08-19 11:41:29 +02:00
2025-03-26 18:46:48 +01:00
2024-09-03 15:14:15 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-01-27 14:21:27 +01:00
2024-08-19 11:41:29 +02:00
2025-01-23 00:11:24 +01:00
2024-11-29 12:40:49 +00:00
2024-12-30 12:33:00 -03:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-01-23 00:03:52 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-04-01 11:32:49 +02:00
2024-08-19 11:41:29 +02:00
2025-04-01 11:32:49 +02:00
2024-09-03 15:14:15 +02:00
2024-10-23 15:03:30 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-10-01 12:52:18 -07:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-10-15 15:17:50 +02:00
2024-08-19 11:41:29 +02:00
2025-04-01 11:32:33 +02:00
2024-08-19 11:41:29 +02:00
2025-01-08 10:08:29 +01:00
2024-11-15 08:26:16 -05:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-11-07 17:48:27 +01:00
2024-08-19 11:41:29 +02:00
2024-12-17 17:04:17 +01:00
2024-08-19 11:41:29 +02:00
2025-01-23 00:03:52 +01:00
2024-08-19 13:21:26 +00:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-09-17 17:35:17 +02:00