Re: [PATCH 1/5] procfs: get rid of ancient BS in pid_revalidate() uses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 26, 2018 at 01:04:06AM +0100, Al Viro wrote:
> +	pid_update_inode(task, inode);
>  	d_set_d_op(dentry, &pid_dentry_operations);
>  	d_add(dentry, inode);
> -	/* Close the race of the process dying before we return the dentry */
> -	if (pid_revalidate(dentry, 0))
> -		return 0;
> -out:
> -	return -ENOENT;
> +	return 0;
>  }

ACK this. I never understood what race is prevented if process can
exit after pid_revalidate().



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux