mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04: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 <[email protected]> Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]> Cc: Oleg Drokin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
5f4e8fd08f
commit
86c79cbcee
1 file changed
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user