commit | 2db9dbf71bf98d02a0bf33e798e5bfd2a9944696 | [log] [tgz] |
---|---|---|
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | Fri Mar 20 21:27:24 2020 +0100 |
committer | Eric W. Biederman <ebiederm@xmission.com> | Wed Mar 25 10:04:01 2020 -0500 |
tree | b63a4232ab077b356f26635dbb9bb971914933a8 | |
parent | 454e3126cb842388e22df6b3ac3da44062c00765 [diff] |
proc: Use new infrastructure to fix deadlocks in execve This changes lock_trace to use the new exec_update_mutex instead of cred_guard_mutex. This fixes possible deadlocks when the trace is accessing /proc/$pid/stack for instance. This should be safe, as the credentials are only used for reading, and task->mm is updated on execve under the new exec_update_mutex. Signed-off-by: Bernd Edlinger <bernd.edlinger@hotmail.de> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>