From: Jeff Dike Date: Mon, 27 Mar 2006 09:14:41 +0000 (-0800) Subject: [PATCH] uml: fix hostfs stack corruption X-Git-Tag: firefly_0821_release~36884 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=86c79cbcee7d617c5aaf9b4f7e6cc093397d3451;p=firefly-linux-kernel-4.4.55.git [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 Cc: Paolo 'Blaisorblade' Giarrusso Cc: Oleg Drokin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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); }