fix compat handling of FICLONERANGE, FIDEDUPERANGE and FS_IOC_FIEMAP
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 21 Apr 2019 22:53:50 +0000 (18:53 -0400)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:15:56 +0000 (17:15 +0200)
commit6b2daec19094a90435abe67d16fb43b1a5527254
tree41356bd6d6785527d665ae6789b9da5b57fd0773
parent2952db0fd51b0890f728df94ac563c21407f4f43
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>
fs/compat_ioctl.c