From b5d531eb4f92ddec796065631d8948c55d69ec9f Mon Sep 17 00:00:00 2001 From: WHOIM1205 Date: Tue, 10 Feb 2026 15:29:52 -0800 Subject: [PATCH] sk-unix: fix mutex_ghost deadlock on connect failure in post_open_standalone Signed-off-by: WHOIM1205 --- criu/sk-unix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/criu/sk-unix.c b/criu/sk-unix.c index 6145fe734..1d5764427 100644 --- a/criu/sk-unix.c +++ b/criu/sk-unix.c @@ -1404,6 +1404,7 @@ static int post_open_standalone(struct file_desc *d, int fd) mutex_lock(mutex_ghost); if (connect(fd, (struct sockaddr *)&addr, sizeof(addr.sun_family) + len) < 0) { pr_perror("Can't connect %d socket", ui->ue->ino); + mutex_unlock(mutex_ghost); goto err_revert_and_exit; } mutex_unlock(mutex_ghost);