Messages in this thread Patch in this message | | | Subject | [PATCH 1/2] fuse: fix uninitialized field in fuse_inode | From | Miklos Szeredi <> | Date | Thu, 15 Nov 2007 12:17:25 +0100 |
| |
Andrew,
Please queue these two fixes for 2.6.24, along with the rest of the fuse patches currently in -mm.
Thanks, Miklos
---- From: John Muir <muirj@nortel.com>
I found problems accessing (executing) previously existing files, until I did chmod on them (or setattr).
If the fi->attr_version is not initialized, then it could be larger than fc->attr_version until a setattr is executed, and as a result the inode attributes would never be set.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> ---
Index: linux/fs/fuse/inode.c =================================================================== --- linux.orig/fs/fuse/inode.c 2007-11-13 17:44:53.000000000 +0100 +++ linux/fs/fuse/inode.c 2007-11-13 17:49:13.000000000 +0100 @@ -56,6 +56,7 @@ static struct inode *fuse_alloc_inode(st fi->i_time = 0; fi->nodeid = 0; fi->nlookup = 0; + fi->attr_version = 0; INIT_LIST_HEAD(&fi->write_files); fi->forget_req = fuse_request_alloc(); if (!fi->forget_req) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |