Revert "exec: Fix a deadlock in strace"

This reverts commit d8d15a4c44 which is
commit 3e74fabd39710ee29fa25618d2c2b40cfa7d76c7 upstream.

It breaks the API and we don't need it right now in the 5.4 tree.

Bug: 161946584
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ieff15911457c15fcaa7b063139ae887726720089
This commit is contained in:
Greg Kroah-Hartman 2020-10-01 18:28:47 +02:00
parent 39f690e459
commit 2ca0318f1b

View File

@ -1232,7 +1232,7 @@ struct mm_struct *mm_access(struct task_struct *task, unsigned int mode)
struct mm_struct *mm;
int err;
err = mutex_lock_killable(&task->signal->exec_update_mutex);
err = mutex_lock_killable(&task->signal->cred_guard_mutex);
if (err)
return ERR_PTR(err);
@ -1242,7 +1242,7 @@ struct mm_struct *mm_access(struct task_struct *task, unsigned int mode)
mmput(mm);
mm = ERR_PTR(-EACCES);
}
mutex_unlock(&task->signal->exec_update_mutex);
mutex_unlock(&task->signal->cred_guard_mutex);
return mm;
}