Re: [PATCH] btrfs: fix btrfs_compat_ioctl failures on non-compat ioctls

2017-02-08 Thread David Sterba
On Mon, Feb 06, 2017 at 07:39:09PM -0500, Jeff Mahoney wrote: > Commit 4c63c2454ef 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

[PATCH] btrfs: fix btrfs_compat_ioctl failures on non-compat ioctls

2017-02-06 Thread Jeff Mahoney
Commit 4c63c2454ef 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