Messages in this thread | | | Date | Sun, 28 Aug 2011 13:25:21 +0400 | From | Cyrill Gorcunov <> | Subject | Re: [PATCH v2] proc: fix races against execve() of /proc/PID/fd** |
| |
On Sat, Aug 27, 2011 at 11:01:47PM +0400, Vasiliy Kulikov wrote: ... > > +static int proc_pid_fd_link_getattr(struct vfsmount *mnt, struct dentry *dentry, > + struct kstat *stat) > +{ > + struct inode *inode = dentry->d_inode; > + struct task_struct *task = get_proc_task(inode); > + int rc; > +
Are we sure if the task will be always valid here?
if (!task) return -ENOENT;
Cyrill
| |