Commit 86c79cbcee7d617c5aaf9b4f7e6cc093397d3451

Authored by Jeff Dike
Committed by Linus Torvalds
1 parent 5f4e8fd08f

[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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

fs/hostfs/hostfs_user.c
... ... @@ -360,7 +360,6 @@
360 360 spare_out[2] = buf.f_spare[2];
361 361 spare_out[3] = buf.f_spare[3];
362 362 spare_out[4] = buf.f_spare[4];
363   - spare_out[5] = buf.f_spare[5];
364 363 return(0);
365 364 }
366 365