patch-2.1.116 linux/fs/binfmt_elf.c
Next file: linux/fs/dcache.c
Previous file: linux/fs/binfmt_aout.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Aug 18 13:15:51 1998
- Orig file:
v2.1.115/linux/fs/binfmt_elf.c
- Orig date:
Wed Jun 24 22:54:08 1998
diff -u --recursive --new-file v2.1.115/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -1054,14 +1054,16 @@
struct vm_area_struct *vma;
struct elfhdr elf;
off_t offset = 0, dataoff;
- long limit = current->rlim[RLIMIT_CORE].rlim_cur;
+ unsigned long limit = current->rlim[RLIMIT_CORE].rlim_cur;
int numnote = 4;
struct memelfnote notes[4];
struct elf_prstatus prstatus; /* NT_PRSTATUS */
elf_fpregset_t fpu; /* NT_PRFPREG */
struct elf_prpsinfo psinfo; /* NT_PRPSINFO */
- if (!current->dumpable || limit < ELF_EXEC_PAGESIZE || current->mm->count != 1)
+ if (!current->dumpable ||
+ limit < ELF_EXEC_PAGESIZE ||
+ atomic_read(¤t->mm->count) != 1)
return 0;
current->dumpable = 0;
@@ -1075,7 +1077,7 @@
for(vma = current->mm->mmap; vma != NULL; vma = vma->vm_next) {
if (maydump(vma))
{
- int sz = vma->vm_end-vma->vm_start;
+ unsigned long sz = vma->vm_end-vma->vm_start;
if (size+sz >= limit)
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov