Skip to content

Commit

Permalink
fuse: verify zero padding in fuse_backing_map
Browse files Browse the repository at this point in the history
To allow us extending the interface in the future.

Fixes: 4435025 ("fuse: implement ioctls to manage backing files")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
  • Loading branch information
Amir Goldstein authored and Miklos Szeredi committed Apr 22, 2024
1 parent ed30a4a commit aef8acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fuse/passthrough.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aef8acd

Please sign in to comment.