Re: [PATCH] yama: don't abuse rcu_read_lock/get_task_struct in yama_task_prctl()

From
Oleg Nesterov <oleg@redhat.com>
Date
2025-02-19 21:42:56
Also in
lkml
Reply to
Oleg Nesterov, 2025-02-19
Damn, sorry for the spam ;)

On 02/19, Oleg Nesterov wrote:
Forgot to say...

with or without this patch the usage of ptrace_relation->tracer/tracee
doesn't look right (safe) to me... but probably I missed something
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Yes I did. I didn't realize that put_task_struct(tracer/tracee) calls
security_task_free() -> yama_task_free().

Sorry fo the noise.

Oleg.
Thread (6 messages) 6 messages, 2 authors, last reply 2025-03-04
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