Commit 86c79cbc authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[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: default avatarJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Oleg Drokin <green@clusterfs.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5f4e8fd0
...@@ -360,7 +360,6 @@ int do_statfs(char *root, long *bsize_out, long long *blocks_out, ...@@ -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[2] = buf.f_spare[2];
spare_out[3] = buf.f_spare[3]; spare_out[3] = buf.f_spare[3];
spare_out[4] = buf.f_spare[4]; spare_out[4] = buf.f_spare[4];
spare_out[5] = buf.f_spare[5];
return(0); return(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment