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

From
Oleg Nesterov <oleg@redhat.com>
Date
2025-11-11 13:13:04
Also in
linux-fsdevel, linux-kselftest, linux-mm, lkml
Reply to
Bernd Edlinger, 2025-11-11
On 11/11, Bernd Edlinger wrote:
On 11/11/25 10:21, Christian Brauner wrote:
quoted
On Wed, Nov 05, 2025 at 03:32:10PM +0100, Oleg Nesterov wrote:
quoted
This is the most problematic change which I can't review...

Firstly, it changes task->mm/real_cred for __ptrace_may_access() and this
looks dangerous to me.
Yeah, that is not ok. This is effectively override_creds for real_cred
and that is not a pattern I want to see us establish at all! Temporary
credential overrides for the subjective credentials is already terrible
but at least we have the explicit split between real_cred and cred
expressely for that. So no, that's not an acceptable solution.
Well when this is absolutely not acceptable then I would have to change
all security engines to be aware of the current and the new credentials.
Hmm... even if we find another way to avoid the deadlock? Say, the patches
I sent...

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