lkml.org 
[lkml]   [2004]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.6.8-rc4-mm1
On Tue, Aug 10, 2004 at 06:39:33PM -0400, Robert Picco wrote:
> copy_thread expects a switch_stack below pt_regs on the stack. the
> switch_stack would have the parent's bspstore value for computing how
> much register backing store to copy into child. there isn't a
> switch_stack and the resultant bspstore size computed is enormous
> (depends on what there is on stack). i suspect printk has changed stack
> and the code layout changed too.

Please, let's do this instead:

Index: mm1-2.6.8-rc4/arch/ia64/kernel/smpboot.c
===================================================================
--- mm1-2.6.8-rc4.orig/arch/ia64/kernel/smpboot.c 2004-08-10 15:21:56.215915699 -0700
+++ mm1-2.6.8-rc4/arch/ia64/kernel/smpboot.c 2004-08-10 15:22:39.504001106 -0700
@@ -367,7 +367,7 @@
{
struct create_idle *c_idle = _c_idle;

- c_idle->idle = fork_idle(c_idle->cpu);
+ c_idle->idle = __fork_idle(c_idle->cpu, NULL);
complete(&c_idle->done);
}

Index: mm1-2.6.8-rc4/include/linux/sched.h
===================================================================
--- mm1-2.6.8-rc4.orig/include/linux/sched.h 2004-08-10 15:21:56.215915699 -0700
+++ mm1-2.6.8-rc4/include/linux/sched.h 2004-08-10 15:26:26.673920198 -0700
@@ -831,7 +831,8 @@

extern int do_execve(char *, char __user * __user *, char __user * __user *, struct pt_regs *);
extern long do_fork(unsigned long, unsigned long, struct pt_regs *, unsigned long, int __user *, int __user *);
-task_t *fork_idle(int);
+task_t *__fork_idle(int, struct pt_regs *);
+task_t *fork_idle(intcpu);

extern void set_task_comm(struct task_struct *tsk, char *from);
extern void get_task_comm(char *to, struct task_struct *tsk);
Index: mm1-2.6.8-rc4/kernel/fork.c
===================================================================
--- mm1-2.6.8-rc4.orig/kernel/fork.c 2004-08-10 15:21:56.200290699 -0700
+++ mm1-2.6.8-rc4/kernel/fork.c 2004-08-10 15:26:59.940521353 -0700
@@ -1192,11 +1192,15 @@

task_t * __init fork_idle(int cpu)
{
- task_t *task;
struct pt_regs regs;

memset(&regs, 0, sizeof(struct pt_regs));
- task = copy_process(CLONE_VM, 0, &regs, 0, NULL, NULL, 0);
+ return __fork_idle(cpu, &regs);
+}
+
+task_t * __init __fork_idle(int cpu, struct pt_regs *regs)
+{
+ task_t *task = copy_process(CLONE_VM, 0, regs, 0, NULL, NULL, 0);
if (!task)
return ERR_PTR(-ENOMEM);
init_idle(task, cpu);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.048 / U:1.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site