Re: [2.6.34-rc2 NFS4 oops] open error path failure...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Al Viro
Date: Monday, March 29, 2010 - 12:03 pm

On Mon, Mar 29, 2010 at 07:36:45PM +0100, Daniel J Blueman wrote:

Joy...  ERR_PTR(-EPERM) in nd.intent.file, and whoever had called
lookup_instantiate_filp() hadn't bothered to check the return value.

OK, I think I see what's going on.  Replace
                                lookup_instantiate_filp(nd, (struct dentry *)state, NULL);
                                return 1;
with
                                lookup_instantiate_filp(nd, (struct dentry *)state, NULL);
                                return state;
in fs/nfs/nfs4proc.c:nfs4_open_revalidate() and see if everything works
properly (or just lose the lookup_instantiate_filp() in there and simply
return state).

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6.34-rc2 NFS4 oops] open error path failure..., Daniel J Blueman, (Mon Mar 29, 11:36 am)
Re: [2.6.34-rc2 NFS4 oops] open error path failure..., Al Viro, (Mon Mar 29, 12:03 pm)
Re: [2.6.34-rc2 NFS4 oops] open error path failure..., Daniel J Blueman, (Mon Mar 29, 12:21 pm)
Re: [2.6.34-rc2 NFS4 oops] open error path failure..., Trond Myklebust, (Mon Mar 29, 2:22 pm)
Re: [2.6.34-rc2 NFS4 oops] open error path failure..., Daniel J Blueman, (Wed Mar 31, 4:20 am)
Re: [2.6.34-rc2 NFS4 oops] open error path failure..., Chuck Lever, (Wed Mar 31, 7:21 am)
Re: [2.6.34-rc2 NFS4 oops] open error path failure..., Daniel J Blueman, (Fri Apr 2, 3:34 am)