mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
[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>
This commit is contained in:
parent
5f4e8fd08f
commit
86c79cbcee
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user