login
Header Space

 
 

Re: nfs: infinite loop in fcntl(F_SETLKW)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <bfields@...>
Cc: <trond.myklebust@...>, <miklos@...>, <eshel@...>, <neilb@...>, <akpm@...>, <linux-nfs@...>, <linux-kernel@...>, <linux-fsdevel@...>
Date: Friday, April 11, 2008 - 3:12 pm

> > OK. So the correct fix here should really be applied to fcntl_setlk().

Yeah, that patch looks totally wrong.  It's not generally a good idea
to do a loop where the exit condition depends on something you don't
control.  And error values from filesystem methods are typically like
that.  For example with fuse, the error code could come from an
unprivileged userspace process.

I didn't realize this aspect of the bug previously, because I
concentrated on the lockd inconsistency.

Btw, why hasn't this work been posted on -fsdevel prior to merging
into mainline?


EAGAIN for a blocking lock is nonsensical, so my original patch could
still make sense.  But that's no longer a regression, and not all that
important.

Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
nfs: infinite loop in fcntl(F_SETLKW), Miklos Szeredi, (Thu Apr 10, 3:51 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), Trond Myklebust, (Thu Apr 10, 5:02 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), Trond Myklebust, (Thu Apr 10, 5:07 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), Trond Myklebust, (Thu Apr 10, 5:20 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), J. Bruce Fields, (Thu Apr 10, 5:54 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), Miklos Szeredi, (Sun Apr 13, 4:28 am)
Re: nfs: infinite loop in fcntl(F_SETLKW), J. Bruce Fields, (Mon Apr 14, 1:19 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), Miklos Szeredi, (Mon Apr 14, 5:15 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), J. Bruce Fields, (Tue Apr 15, 2:58 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), Miklos Szeredi, (Wed Apr 16, 12:28 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), J. Bruce Fields, (Thu Apr 17, 6:26 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), Miklos Szeredi, (Fri Apr 18, 8:47 am)
Re: nfs: infinite loop in fcntl(F_SETLKW), Miklos Szeredi, (Fri Apr 11, 3:12 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), J. Bruce Fields, (Sat Apr 12, 8:08 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), Miklos Szeredi, (Sun Apr 13, 4:13 am)
Re: nfs: infinite loop in fcntl(F_SETLKW), J. Bruce Fields, (Mon Apr 14, 1:07 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), J. Bruce Fields, (Fri Apr 11, 3:19 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW), Miklos Szeredi, (Fri Apr 11, 3:22 pm)
speck-geostationary