Return-Path: Received: from mail-qk0-f194.google.com ([209.85.220.194]:32939 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752294AbdI2TYJ (ORCPT ); Fri, 29 Sep 2017 15:24:09 -0400 Received: by mail-qk0-f194.google.com with SMTP id r141so72464qke.0 for ; Fri, 29 Sep 2017 12:24:08 -0700 (PDT) From: Josef Bacik To: viro@ZenIV.linux.org.uk, kernel-team@fb.com, linux-fsdevel@vger.kernel.org Subject: [PATCH] fs: make fiemap work from compat_ioctl Date: Fri, 29 Sep 2017 15:24:06 -0400 Message-Id: <1506713046-19299-1-git-send-email-jbacik@fb.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: We don't need to do anything special with fiemap to make it work with a 64bit kernel from 32bit userspace, so just go down to do_vfs_ioctl(). Without this patch we were incorrectly failing to do fiemap with a 32bit userspace on a 64bit kernel. Signed-off-by: Josef Bacik --- fs/compat_ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index d27b326d96f4..480f9366b4e3 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -1579,6 +1579,7 @@ COMPAT_SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, case FICLONE: case FICLONERANGE: case FIDEDUPERANGE: + case FS_IOC_FIEMAP: goto do_ioctl; case FIBMAP: -- 2.7.4