Skip to content

Commit

Permalink
[PATCH] uml: fix hostfs stack corruption
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cfd-36 authored and Linus Torvalds committed Mar 27, 2006
1 parent 5f4e8fd commit 86c79cb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/hostfs/hostfs_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 86c79cb

Please sign in to comment.