Re: Kernel panic - not syncing: Attempted to kill init!

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

 



2011/7/13 史星星(研六 福州) <shixingxing@xxxxxxxxxxxxx>:
> Hi,
>
>          I got a problem when trying to boot linux 2.6.32.13 on my Octeon
> CN5650 board.
>
> Booting logs below:
>
> ...omit….
>
> EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
>
> kjournald starting.  Commit interval 5 seconds
>
> EXT3 FS on mtdblock1, internal journal
>
> EXT3-fs: recovery complete.
>
> EXT3-fs: mounted filesystem with ordered data mode.
>
> VFS: Mounted root (ext3 filesystem) on device 31:1.
>
> Freeing unused kernel memory: 176k freed
>
> Kernel panic - not syncing: Attempted to kill init!     ß kernel panic here
>
>
>
> What I do:
>
> 1、The busybox init is OK in another version kernel .I replace init with
> “Hello world” prog or dead loop prog, kernel panic still.
>
> 2、
>
> run_init_process(“/sbin/init”) à kernel_execve à sys_execve
>
> so I add some debug msgs in sys_execve.
>
>
>
> asmlinkage int sys_execve(nabi_no_regargs struct pt_regs regs)
>
> {
>
>          int error;
>
>          char * filename;
>
>
>
>     printk("enter sys_execve\n");
>
>          filename = getname((char __user *) (long)regs.regs[4]);
>
>          error = PTR_ERR(filename);
>
>          if (IS_ERR(filename))
>
>                    goto out;
>
>          error = do_execve(filename, (char __user *__user *)
> (long)regs.regs[5],
>
>                            (char __user *__user *) (long)regs.regs[6],
> &regs);
>
>     putname(filename);
>
>     printk("out sys_execve\n");
>
> out:
>
>          return error;
>
> }
>
>
>
> Boot logs:
>
> VFS: Mounted root (ext3 filesystem) on device 31:1.
>
> Freeing unused kernel memory: 176k freed
>
> enter sys_execve
>
> out sys_execve
>
> Kernel panic - not syncing: Attempted to kill init!     ß kernel panic here
>
>
>
> My question:
>
> 1.the kernel panic happened when return to userspace prog?
>
> 2.how to solve this problem?
>
>
>
> Thank you!
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
Hi!

What about "init=" boot option?... and CONFIG_CMDLINE as well?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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