1

fuse: verify zero padding in fuse_backing_map

To allow us extending the interface in the future.

Fixes: 44350256ab ("fuse: implement ioctls to manage backing files")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
Amir Goldstein 2024-04-22 09:40:08 +03:00 committed by Miklos Szeredi
parent ed30a4a51b
commit aef8acd79f

View File

@ -225,7 +225,7 @@ int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map)
goto out;
res = -EINVAL;
if (map->flags)
if (map->flags || map->padding)
goto out;
file = fget(map->fd);