Commit a0a6df9
Al Viro
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 41525f5 ("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: 41525f5 ("fs: refactor ksys_umount")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 5c8fe58 commit a0a6df9
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1713 | 1713 | | |
1714 | 1714 | | |
1715 | 1715 | | |
1716 | | - | |
1717 | | - | |
1718 | 1716 | | |
1719 | 1717 | | |
1720 | 1718 | | |
| |||
1728 | 1726 | | |
1729 | 1727 | | |
1730 | 1728 | | |
| 1729 | + | |
1731 | 1730 | | |
1732 | 1731 | | |
1733 | 1732 | | |
| |||
1749 | 1748 | | |
1750 | 1749 | | |
1751 | 1750 | | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1752 | 1755 | | |
1753 | 1756 | | |
1754 | 1757 | | |
| |||
0 commit comments