Re: [PATCH v17] exec: Fix dead-lock in de_thread with ptrace_attach

From
Oleg Nesterov <oleg@redhat.com>
Date
2025-11-02 16:22:11
Also in
linux-fsdevel, linux-kselftest, linux-mm, lkml
Reply to
Bernd Edlinger, 2025-08-21
On 08/21, Bernd Edlinger wrote:
v16: rebased to 6.17-rc2, fixed some minor merge conflicts.

v17: avoid use of task->in_execve in ptrace_attach.
So I guess this version doesn't really differ from v14 I tried to review...
(yes, iirc my review wasn't really good, sorry).

Perhaps I am wrong, but I still think we need another approach. de_thread()
should not wait until all sub-threads are reaped, it should drop cred_guard_mutex
earlier.

I mean, something like

	[PATCH V2 1/2] exec: don't wait for zombie threads with cred_guard_mutex held
	https://lore.kernel.org/lkml/20170213180454.GA2858@redhat.com/ (local)

which is hopelessly outdated now.

Again, perhaps I am wrong. I'll try to take another look next week.

Oleg.
Thread (28 messages) 28 messages, 5 authors, last reply 2025-12-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help