Skip to contentSkip to conversation

fs: make fiemap work from compat_ioctl

PATCH In review Josef Bacik 2 participants 2 messages Sep 29, 2017 – Oct 1, 2017 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: make fiemap work from compat_ioctl

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.

---
 fs/compat_ioctl.c | 1 +
 1 file changed, 1 insertion(+)
fs/compat_ioctl.c +1 -0
index d27b326d96f4..480f9366b4e3 100644
@@ -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:
Signature · 1 line
2.7.4