Messages in this thread Patch in this message | | | From | Arnd Bergmann <> | Subject | [PATCH v5 01/29] fix compat handling of FICLONERANGE, FIDEDUPERANGE and FS_IOC_FIEMAP | Date | Tue, 30 Jul 2019 21:25:12 +0200 |
| |
From: Al Viro <viro@zeniv.linux.org.uk>
Unlike FICLONE, all of those take a pointer argument; they do need compat_ptr() applied to arg.
Fixes: d79bdd52d8be7 54dbc15172375 ceac204e1da94 Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- fs/compat_ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 6e30949d9f77..31104486fc8b 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -1035,10 +1035,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: -- 2.20.0
| |