Re: problem is with process 0 and process 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Selon Guillaume Thouvenin <guillaume.thouvenin@polymtl.ca>:

> here is the oops:
> 
> Unable to handle kernel paging request at virtual address fffffff0
>  printing eip:
> c0137c95
> *pde = 00004067
> *pte = 00000000
> Oops: 0000 [#1]
> SMP
> CPU:    0
> EIP:    0060:[<c0137c95>]    Not tainted
> EFLAGS: 00010213   (2.6.5-elsa)
> EIP is at elsa_copy_parent_bank+0x31/0x5d
> eax: 00000001   ebx: fffffff0   ecx: c03bf10c   edx: 00000000
> esi: f7f9f780   edi: 00000001   ebp: 00000001   esp: c044bf20
> ds: 007b   es: 007b   ss: 0068
> Process swapper (pid: 0, threadinfo=c044a000 task=c03beb60)

I changed function elsa_copy_parent_bank(struct task_struct *p) to
elsa_copy_parent_bank(struct task_struct *from, struct task_struct *to) where
"from" is the parent and "to" is the child. I also added a printk to see pid of
processus implied in the crash. I can see that crash occured when:
"elsa_copy_parent_bank: from pid#0 to pid#1"

AFAIK, process 0 is the idle task and process 1 is "init". My question is, where
 are process 0 fields initilized? Others processes are initialized during the
fork (right?) but how/where process 0 starts? 

Thanks in advance for your help
Guillaume

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux