Files
linux/fs/btrfs
Jeff Mahoney 93fb043478 btrfs: fix btrfs_compat_ioctl failures on non-compat ioctls
commit 2a36224918 upstream.

Commit 4c63c2454e incorrectly assumed that returning -ENOIOCTLCMD would
cause the native ioctl to be called.  The ->compat_ioctl callback is
expected to handle all ioctls, not just compat variants.  As a result,
when using 32-bit userspace on 64-bit kernels, everything except those
three ioctls would return -ENOTTY.

Fixes: 4c63c2454e ("btrfs: bugfix: handle FS_IOC32_{GETFLAGS,SETFLAGS,GETVERSION} in btrfs_ioctl")
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-02-14 15:25:40 -08:00
..
2016-09-26 18:08:44 +02:00
2015-10-06 06:55:23 -07:00
2016-10-24 18:20:29 +02:00
2016-07-26 13:52:25 +02:00
2016-08-03 14:08:37 -07:00
2016-09-26 18:08:44 +02:00
2016-09-26 17:59:49 +02:00
2016-09-26 18:08:44 +02:00
2016-09-26 18:08:44 +02:00
2016-09-26 18:08:44 +02:00