[lkml]   [1996]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: patch: NFS and O_EXCL. Also: is O_EXCL really atomic?
> This also brings up another question. In the Linux FS code, O_EXCL
> is treated by the VFS layer by first testing if the file is present,
> and then creating the file if not. It looks to me as if it could be
> possible that another process could be scheduled between the test and
> the create. This chance is really small, but still.. I don't know
> enough of the VFS layer to see if this is really true, though.

If that can happen its actually very serious because that has security
implications in some applications, and we would have to fix it ASAP.

Can an FS hacker verify that.

The O_EXCL for NFS looks a good fix. Bit hackish but good for 2.0

 \ /
  Last update: 2005-03-22 13:38    [W:0.060 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site