Re: [PATCH RFC] pid: make setpgid() system call use RCU read-side critical section

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Thursday, September 9, 2010 - 3:15 pm

On 08/30, Jiri Slaby wrote:

Sorry for delay...


The problem is, find_task_by_vpid() is not safe without RCU. It is not
that the returned task_struct can't go away, find_pid_ns() itself is
not safe. This is because the failing copy_process() calls free_pid()
without tasklist_lock and modifies pid_hash[] list.

Oleg.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] pid: make setpgid() system call use RCU read-s ..., Paul E. McKenney, (Mon Aug 30, 10:26 am)
Re: [PATCH RFC] pid: make setpgid() system call use RCU re ..., Oleg Nesterov, (Thu Sep 9, 3:15 pm)