Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Al Viro and committed by
Arnd Bergmann
6b2daec1 2952db0f

+2 -1
+2 -1
fs/compat_ioctl.c
··· 1032 1032 #endif 1033 1033 1034 1034 case FICLONE: 1035 + goto do_ioctl; 1035 1036 case FICLONERANGE: 1036 1037 case FIDEDUPERANGE: 1037 1038 case FS_IOC_FIEMAP: 1038 - goto do_ioctl; 1039 + goto found_handler; 1039 1040 1040 1041 case FIBMAP: 1041 1042 case FIGETBSZ: