]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fuse: do not allow mapping a non-regular backing file
authorAmir Goldstein <amir73il@gmail.com>
Thu, 10 Jul 2025 10:08:30 +0000 (12:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:37:31 +0000 (16:37 +0200)
commit036426d7a63d32e747f65929ab8d7f9d17ca4460
tree475effd79c6d5de38f0ad7834d2c6ecff739ecf5
parentd1d5d12b62ec7e53dde9cc8eab9c9e167655c596
fuse: do not allow mapping a non-regular backing file

commit e9c8da670e749f7dedc53e3af54a87b041918092 upstream.

We do not support passthrough operations other than read/write on
regular file, so allowing non-regular backing files makes no sense.

Fixes: efad7153bf93 ("fuse: allow O_PATH fd for FUSE_DEV_IOC_BACKING_OPEN")
Cc: stable@vger.kernel.org
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Bernd Schubert <bschubert@ddn.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fuse/passthrough.c