* [PATCH 16/16] UML - Fix hostfs stack corruption
@ 2006-03-24 18:15 Jeff Dike
0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2006-03-24 18:15 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, user-mode-linux-devel, Oleg Drokin
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>
Index: linux-2.6.16/fs/hostfs/hostfs_user.c
===================================================================
--- linux-2.6.16.orig/fs/hostfs/hostfs_user.c 2006-03-23 16:49:38.000000000 -0500
+++ linux-2.6.16/fs/hostfs/hostfs_user.c 2006-03-23 17:46:09.000000000 -0500
@@ -360,7 +360,6 @@ int do_statfs(char *root, long *bsize_ou
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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-24 18:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-24 18:15 [PATCH 16/16] UML - Fix hostfs stack corruption Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®