]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[PATCH] cramfs mounts provide corrupted content since 2.6.15
authorDave Johnson <djohnson@sw.starentnetworks.com>
Mon, 6 Mar 2006 23:42:36 +0000 (15:42 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Mar 2006 07:00:22 +0000 (23:00 -0800)
commit1421207ba3fd53f8090f6f337ac7de57015d3a5c
treefefb3229175e07324a8a8b17ba89ac03402c126c
parent8a3a2a3299081913c22f5d0e1ce893b781efe942
[PATCH] cramfs mounts provide corrupted content since 2.6.15

Fix handling of cramfs images created by util-linux containing empty
regular files.  Images created by cramfstools 1.x were ok.

Fill out inode contents in cramfs_iget5_set() instead of get_cramfs_inode()
to prevent issues if cramfs_iget5_test() is called with I_LOCK|I_NEW still
set.

Signed-off-by: Dave Johnson <djohnson+linux-kernel@sw.starentnetworks.com>
Cc: Olaf Hering <olh@suse.de>
Cc: Chris Mason <mason@suse.com>
Cc: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cramfs/inode.c