public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] proc: fix ->stack_start in compat mode
@ 2009-10-28 11:56 Alexey Dobriyan
  2009-11-01  9:54 ` Stefani Seibold
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Dobriyan @ 2009-10-28 11:56 UTC (permalink / raw)
  To: akpm; +Cc: m.s.tsirkin, linux-kernel, stefani

Assign tsk->stack_start even when doing compat execve(2).

As side effect, fix segfault inside boehm-gc library.
http://bugzilla.kernel.org/show_bug.cgi?id=14478

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 Michael, please, confirm.

 Stefani, I get "Stack usage: 0 kB", you may want to look at it.

 fs/compat.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/fs/compat.c
+++ b/fs/compat.c
@@ -1532,6 +1532,8 @@ int compat_do_execve(char * filename,
 	if (retval < 0)
 		goto out;
 
+	current->stack_start = current->mm->start_stack;
+
 	/* execve succeeded */
 	current->fs->in_exec = 0;
 	current->in_execve = 0;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-01 15:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28 11:56 [PATCH] proc: fix ->stack_start in compat mode Alexey Dobriyan
2009-11-01  9:54 ` Stefani Seibold
2009-11-01 10:21   ` Alexey Dobriyan
2009-11-01 12:43   ` Alexey Dobriyan
2009-11-01 14:42     ` Stefani Seibold
2009-11-01 15:06     ` Stefani Seibold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox