Description of problem: When walking a path, the LOOKUP_CONTINUE flag is used by some filesystems (for instance NFS) in order to determine whether or not it is looking up the last component of the path. It this is the case, it may have to look at the intent information in order to perform various tasks such as atomic open. A problem currently occurs when link_path_walk() hits a symlink. In this case LOOKUP_CONTINUE may be cleared prematurely when we hit the end of the path passed by __vfs_follow_link() (i.e. the end of the symlink path) rather than when we hit the end of the path passed by the user. The solution is to have link_path_walk() clear LOOKUP_CONTINUE if and only if that flag was unset when we entered the function. Additional info: From: Peter Bojanic <pbojanic> To: Kevin Anderson <kanderso> Cc: Tom (Di) Wang <wangdi>, Andreas Dilger <adilger>, Oleg Drokin <green>, Alex Tomas <alex> Subject: Fwd: patch-less lustre Date: Thu, 16 Mar 2006 17:39:52 -0400 Kevin, Sorry about the previous message. Try this one -- the patch should be attached properly this time. Thanks, Peter Begin forwarded message: >> From: Oleg Drokin <green> >> Date: March 16, 2006 3:23:25 PM AST >> To: Peter Bojanic <pbojanic> >> Cc: wangdi <wangdi>, Andreas Dilger >> <adilger> >> Subject: Re: patch-less lustre >> >> Hello! >> >> On Thu, Mar 16, 2006 at 11:45:41AM -0400, Peter Bojanic wrote: > >>>>>> - ACTION: CFS to send fixing nesting symlinks patch to Red Hat -- >>>>>> this appears to be the one we're stumbling on the most with RHEL4 >> >>>> Can you help me out, by extracting this patch so I can forward it to >>>> Red Hat? > >> >> See attached. Not sure why RedHat is all that interested in it, the >> only other >> user is probably NFS4. >> We do not have the autorship of the patch. The patch is a complete >> email message >> with all explanations from original author >> >> Bye, >> Oleg
Created attachment 133453 [details] The upstream patch
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
*** This bug has been marked as a duplicate of 196637 ***