|
Message-ID: <20110828092520.GA8537@sun> Date: Sun, 28 Aug 2011 13:25:21 +0400 From: Cyrill Gorcunov <gorcunov@...il.com> To: Vasiliy Kulikov <segoon@...nwall.com> Cc: Andrew Morton <akpm@...ux-foundation.org>, kernel-hardening@...ts.openwall.com, Al Viro <viro@...iv.linux.org.uk>, David Rientjes <rientjes@...gle.com>, Stephen Wilson <wilsons@...rt.ca>, KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>, linux-kernel@...r.kernel.org, security@...nel.org 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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.