ring 0 Linux


         


, , ELF-, 11 2005  : 2.2.27-rc2, 2.4, 2.4.31-pr1, 2.6, 2.6.12-rc4 . .

elf_core_dump(), binfmt_elf.c. :

static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file){ struct elf_prpsinfo psinfo; /* NT_PRPSINFO */  /* first copy the parameters from user space */ memset(&psinfo, 0, sizeof(psinfo)); { int i, len; /* 1 */ len = current->mm->arg_end - current->mm->arg_start; if (len >= ELF_PRARGSZ) / * 2 * / len = ELF_PRARGSZ-1; copy_from_user(&psinfo.pr_psargs,/* 1167 */ (const char *)current->mm->arg_start, len); }}