Skip to content

Commit aef8acd

Browse files
amir73ilMiklos Szeredi
authored andcommitted
fuse: verify zero padding in fuse_backing_map
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>
1 parent ed30a4a commit aef8acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fuse/passthrough.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map)
225225
goto out;
226226

227227
res = -EINVAL;
228-
if (map->flags)
228+
if (map->flags || map->padding)
229229
goto out;
230230

231231
file = fget(map->fd);

0 commit comments

Comments
 (0)