Thread (7 messages) 7 messages, 3 authors, 2020-03-02

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

On 3/2/20 9:10 PM, Bernd Edlinger wrote:
quoted hunk ↗ jump to hunk
--- 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help