diff --git a/cr-restore.c b/cr-restore.c index 05d43f7ff..b899eb9be 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -2372,8 +2372,6 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core) if (ret < 0) goto err; - mutex_init(&task_args->rst_lock); - /* * Now prepare run-time data for threads restore. */ diff --git a/include/restorer.h b/include/restorer.h index a5d01971f..4375f9d03 100644 --- a/include/restorer.h +++ b/include/restorer.h @@ -108,8 +108,6 @@ struct task_restore_core_args { int logfd; unsigned int loglevel; - mutex_t rst_lock; - /* threads restoration */ int nr_threads; /* number of threads */ int nr_zombies; diff --git a/pie/restorer.c b/pie/restorer.c index c4171bd86..b29ce11a7 100644 --- a/pie/restorer.c +++ b/pie/restorer.c @@ -286,8 +286,6 @@ long __export_restore_thread(struct thread_restore_args *args) if (restore_thread_common(rt_sigframe, args)) goto core_restore_end; - mutex_unlock(&args->ta->rst_lock); - ret = restore_creds(&args->ta->creds); if (ret) goto core_restore_end; @@ -817,8 +815,6 @@ long __export_restore_task(struct task_restore_core_args *args) if (thread_args[i].pid == args->t->pid) continue; - mutex_lock(&args->rst_lock); - new_sp = RESTORE_ALIGN_STACK((long)thread_args[i].mem_zone.stack, sizeof(thread_args[i].mem_zone.stack));