summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-04-22 01:53:50 +0300
committerArnd Bergmann <arnd@arndb.de>2019-10-23 18:15:56 +0300
commit6b2daec19094a90435abe67d16fb43b1a5527254 (patch)
tree41356bd6d6785527d665ae6789b9da5b57fd0773
parent2952db0fd51b0890f728df94ac563c21407f4f43 (diff)
downloadlinux-6b2daec19094a90435abe67d16fb43b1a5527254.tar.xz
fix compat handling of FICLONERANGE, FIDEDUPERANGE and FS_IOC_FIEMAP
Unlike FICLONE, all of those take a pointer argument; they do need compat_ptr() applied to arg. Fixes: d79bdd52d8be ("vfs: wire up compat ioctl for CLONE/CLONE_RANGE") Fixes: 54dbc1517237 ("vfs: hoist the btrfs deduplication ioctl to the vfs") Fixes: ceac204e1da9 ("fs: make fiemap work from compat_ioctl") Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--fs/compat_ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index a7ec2d3dff92..e0226b2138d6 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -1032,10 +1032,11 @@ COMPAT_SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd,
#endif
case FICLONE:
+ goto do_ioctl;
case FICLONERANGE:
case FIDEDUPERANGE:
case FS_IOC_FIEMAP:
- goto do_ioctl;
+ goto found_handler;
case FIBMAP:
case FIGETBSZ: