Re: [PATCHv3] exec: Fix a deadlock in ptrace
From: Bernd Edlinger <hidden>
Date: 2020-03-02 20:29:05
Also in:
linux-doc, linux-fsdevel, linux-mm, lkml, stable
From: Bernd Edlinger <hidden>
Date: 2020-03-02 20:29:05
Also in:
linux-doc, linux-fsdevel, linux-mm, lkml, stable
On 3/2/20 9:10 PM, Bernd Edlinger wrote:
--- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h@@ -44,7 +44,11 @@ struct linux_binprm { * exec has happened. Used to sanitize execution environment * and to set AT_SECURE auxv for glibc. */ - secureexec:1; + secureexec:1, + /* + * Set by flush_old_exec, when the cred_change_mutex is taken.
Oops, missed to update this comment, should be "when the cred_guard_mutex is taken". I'll send a new patch later. Bernd.
+ */ + called_flush_old_exec:1; #ifdef __alpha__ unsigned int taso:1; #endif