LOOKUP_MOUNTPOINT: we are cleaning "jumped" flag too late
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 6 Apr 2021 23:46:51 +0000 (19:46 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 7 Apr 2021 00:33:00 +0000 (20:33 -0400)
commit4f0ed93fb92d3528c73c80317509df3f800a222b
tree3b6e9894051b7df05c01c2fabf4d8c1766949e2c
parent7d01ef7585c07afaf487759a48486228cd065726
LOOKUP_MOUNTPOINT: we are cleaning "jumped" flag too late

That (and traversals in case of umount .) should be done before
complete_walk().  Either a braino or mismerge damage on queue
reorders - either way, I should've spotted that much earlier.

Fucked-up-by: Al Viro <viro@zeniv.linux.org.uk>
X-Paperbag: Brown
Fixes: 161aff1d93ab "LOOKUP_MOUNTPOINT: fold path_mountpointat() into path_lookupat()"
Cc: stable@vger.kernel.org # v5.7+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c