]> git.baikalelectronics.ru Git - kernel.git/commit
umount(2): move the flag validity checks first
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Jan 2021 20:25:34 +0000 (15:25 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Jan 2021 20:31:58 +0000 (15:31 -0500)
commitc8da0d941142598d653cda4867907a772b07596e
tree7ef2ed36a935d9643b6e6b50988054a603187755
parent703b4aaeda226c411ae7e592fdcf61efe00c01a0
umount(2): move the flag validity checks first

Unfortunately, there's userland code that used to rely upon these
checks being done before anything else to check for UMOUNT_NOFOLLOW
support.  That broke in c14f04db66ca ("fs: refactor ksys_umount").
Separate those from the rest of checks and move them to ksys_umount();
unlike everything else in there, this can be sanely done there.

Reported-by: Sargun Dhillon <sargun@sargun.me>
Fixes: c14f04db66ca ("fs: refactor ksys_umount")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c