mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
fix compat handling of FICLONERANGE, FIDEDUPERANGE and FS_IOC_FIEMAP
commit6b2daec190upstream. Unlike FICLONE, all of those take a pointer argument; they do need compat_ptr() applied to arg. Fixes:d79bdd52d8("vfs: wire up compat ioctl for CLONE/CLONE_RANGE") Fixes:54dbc15172("vfs: hoist the btrfs deduplication ioctl to the vfs") Fixes:ceac204e1d("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
41e7faf48f
commit
378ebd321f
@@ -1585,9 +1585,10 @@ COMPAT_SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd,
|
||||
#endif
|
||||
|
||||
case FICLONE:
|
||||
goto do_ioctl;
|
||||
case FICLONERANGE:
|
||||
case FIDEDUPERANGE:
|
||||
goto do_ioctl;
|
||||
goto found_handler;
|
||||
|
||||
case FIBMAP:
|
||||
case FIGETBSZ:
|
||||
|
||||
Reference in New Issue
Block a user