Skip to contentSkip to conversation

fuse: verify zero padding in fuse_backing_map

PATCH Applied Amir Goldstein 2 participants 2 messages Apr 22, 2024

Subsystems (3)
lore
Share & tools
lore

Amir Goldstein

author maintainer
#0 lore raw

PATCH 1/1 fuse: verify zero padding in fuse_backing_map

To allow us extending the interface in the future.

Fixes 44350256ab94 ("fuse: implement ioctls to manage backing files")
---
 fs/fuse/passthrough.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/passthrough.c +1 -1
index 1567f0323858..9666d13884ce 100644
@@ -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);
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 5 lines · Amir Goldstein

To allow us extending the interface in the future.

Fixes 44350256ab94 ("fuse: implement ioctls to manage backing files")

Applied, thanks.

Miklos