Re: page size change on MIPS

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

 



Hi...

On Tue, Feb 8, 2011 at 14:35, naveen yadav <yad.naveen@xxxxxxxxx> wrote:
> Hi All,
>
> I debug this issue further, I check in kernel  File name is
> binfmt_elf.c and function name is  create_elf_tables()
>
> I put a debug print here to check what kernel is reading from user space.
>
>                if (__put_user((elf_addr_t)p, argv++))
>                        return -EFAULT;
>                len = strnlen_user((void __user *)p, MAX_ARG_STRLEN);
>                printk("\n Lenght of arg=%ld,%s \n",len,(void __user *)p);
>                if (!len || len > MAX_ARG_STRLEN)
>                        return -EINVAL;
>                p += len;
>        }
>
>
> when Page size is 16KB  o/p is
>
> Lenght of arg=6,/init
>
> when Page size is 64KB  o/p is
>
> Lenght of arg=1,
>
> so I got null when it read from ELF

hum? very strange.... so essentially it can't read...or to be precise,
properly read command arguments (including the executable name
itself)?

maybe the problem lies somewhere in the initrd/initramfs?


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
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