]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: 32-bit user space ioctl compat for fuse device
authorAlessio Balsini <balsini@android.com>
Mon, 25 Jan 2021 15:30:51 +0000 (15:30 +0000)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 16 Mar 2021 14:20:16 +0000 (15:20 +0100)
commit1892cb2f3ef96c9316541748160541dc3e2aff8a
tree69f35483555a347f8fb83e31f6ca8ebb8809fb30
parent84a1ebf7bf74e5281e9635358265e9384aae247a
fuse: 32-bit user space ioctl compat for fuse device

With a 64-bit kernel build the FUSE device cannot handle ioctl requests
coming from 32-bit user space.  This is due to the ioctl command
translation that generates different command identifiers that thus cannot
be used for direct comparisons without proper manipulation.

Explicitly extract type and number from the ioctl command to enable 32-bit
user space compatibility on 64-bit kernel builds.

Signed-off-by: Alessio Balsini <balsini@android.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c
include/uapi/linux/fuse.h