mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
Revert "proc: Use new infrastructure to fix deadlocks in execve"
This reverts commit 4301db49e5 which is
commit 2db9dbf71bf98d02a0bf33e798e5bfd2a9944696 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: I77034b08efcd2ce56c4e19bad07c335db20bf31f
This commit is contained in:
parent
cdc9e06d57
commit
5bf86c2bf5
1 changed files with 3 additions and 3 deletions
|
|
@ -404,11 +404,11 @@ print0:
|
|||
|
||||
static int lock_trace(struct task_struct *task)
|
||||
{
|
||||
int err = mutex_lock_killable(&task->signal->exec_update_mutex);
|
||||
int err = mutex_lock_killable(&task->signal->cred_guard_mutex);
|
||||
if (err)
|
||||
return err;
|
||||
if (!ptrace_may_access(task, PTRACE_MODE_ATTACH_FSCREDS)) {
|
||||
mutex_unlock(&task->signal->exec_update_mutex);
|
||||
mutex_unlock(&task->signal->cred_guard_mutex);
|
||||
return -EPERM;
|
||||
}
|
||||
return 0;
|
||||
|
|
@ -416,7 +416,7 @@ static int lock_trace(struct task_struct *task)
|
|||
|
||||
static void unlock_trace(struct task_struct *task)
|
||||
{
|
||||
mutex_unlock(&task->signal->exec_update_mutex);
|
||||
mutex_unlock(&task->signal->cred_guard_mutex);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_STACKTRACE
|
||||
|
|
|
|||
Loading…
Reference in a new issue