diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-03-27 01:14:41 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-27 08:44:39 -0800 |
commit | 86c79cbcee7d617c5aaf9b4f7e6cc093397d3451 (patch) | |
tree | 4f367ebf885a156103b948ad4614938333325302 /fs/hostfs | |
parent | 5f4e8fd08f3993bc31a7dd91767fdb4da4fe6278 (diff) | |
download | lwn-86c79cbcee7d617c5aaf9b4f7e6cc093397d3451.tar.gz lwn-86c79cbcee7d617c5aaf9b4f7e6cc093397d3451.zip |
[PATCH] uml: fix hostfs stack corruption
Noted by Oleg Drokin:
We initialized an extra slot of struct kstatfs.spare, sometimes
causing stack corruption.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Oleg Drokin <green@clusterfs.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/hostfs')
-rw-r--r-- | fs/hostfs/hostfs_user.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/hostfs/hostfs_user.c b/fs/hostfs/hostfs_user.c index b97809deba66..23b7cee72123 100644 --- a/fs/hostfs/hostfs_user.c +++ b/fs/hostfs/hostfs_user.c @@ -360,7 +360,6 @@ int do_statfs(char *root, long *bsize_out, long long *blocks_out, spare_out[2] = buf.f_spare[2]; spare_out[3] = buf.f_spare[3]; spare_out[4] = buf.f_spare[4]; - spare_out[5] = buf.f_spare[5]; return(0); } |