diff options
| author | Al Viro <[email protected]> | 2021-01-04 20:25:34 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2021-01-04 20:31:58 +0000 |
| commit | a0a6df9afcaf439a6b4c88a3b522e3d05fdef46f (patch) | |
| tree | 7ef2ed36a935d9643b6e6b50988054a603187755 /net/unix/af_unix.c | |
| parent | Linux 5.11-rc1 (diff) | |
| download | kernel-a0a6df9afcaf439a6b4c88a3b522e3d05fdef46f.tar.gz kernel-a0a6df9afcaf439a6b4c88a3b522e3d05fdef46f.zip | |
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 41525f56e256 ("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 <[email protected]>
Fixes: 41525f56e256 ("fs: refactor ksys_umount")
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
