All of lore.kernel.org
 help / color / mirror / Atom feed
* + fuse-fix-uninitialized-field-in-fuse_inode.patch added to -mm tree
@ 2007-11-16  3:27 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-11-16  3:27 UTC (permalink / raw)
  To: mm-commits; +Cc: muirj, mszeredi


The patch titled
     fuse: fix uninitialized field in fuse_inode
has been added to the -mm tree.  Its filename is
     fuse-fix-uninitialized-field-in-fuse_inode.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: fuse: fix uninitialized field in fuse_inode
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/fuse/inode.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN fs/fuse/inode.c~fuse-fix-uninitialized-field-in-fuse_inode fs/fuse/inode.c
--- a/fs/fuse/inode.c~fuse-fix-uninitialized-field-in-fuse_inode
+++ a/fs/fuse/inode.c
@@ -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) {
_

Patches currently in -mm which might be from muirj@nortel.com are

fuse-fix-uninitialized-field-in-fuse_inode.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-16  3:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-16  3:27 + fuse-fix-uninitialized-field-in-fuse_inode.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.