All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org,
	user-mode-linux-devel@lists.sourceforge.net,
	Oleg Drokin <green@linuxhacker.ru>
Subject: [uml-devel] [PATCH 16/16] UML - Fix hostfs stack corruption
Date: Fri, 24 Mar 2006 13:15:06 -0500	[thread overview]
Message-ID: <200603241815.k2OIF6Ts005575@ccure.user-mode-linux.org> (raw)

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);
 }
 



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

WARNING: multiple messages have this Message-ID (diff)
From: Jeff Dike <jdike@addtoit.com>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org,
	user-mode-linux-devel@lists.sourceforge.net,
	Oleg Drokin <green@linuxhacker.ru>
Subject: [PATCH 16/16] UML - Fix hostfs stack corruption
Date: Fri, 24 Mar 2006 13:15:06 -0500	[thread overview]
Message-ID: <200603241815.k2OIF6Ts005575@ccure.user-mode-linux.org> (raw)

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);
 }
 


             reply	other threads:[~2006-03-24 18:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-24 18:15 Jeff Dike [this message]
2006-03-24 18:15 ` [PATCH 16/16] UML - Fix hostfs stack corruption Jeff Dike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200603241815.k2OIF6Ts005575@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=akpm@osdl.org \
    --cc=green@linuxhacker.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.