binfmt_elf: count notes towards coredump limit
Subsystems (2)
RFC PATCH 9/13 binfmt_elf: count notes towards coredump limit
Signed-off-by Al Viro <[email protected]>
--- fs/binfmt_elf.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
fs/binfmt_elf.c +0 -3
@@ -2034,7 +2034,6 @@ static int elf_core_dump(struct coredump_params *cprm)int has_dumped =0 ;mm_segment_t fs;int segs; -size_t size =0 ;struct vm_area_struct *vma, *gate_vma;struct elfhdr *elf =NULL ;loff_t offset =0 , dataoff;
@@ -2155,7 +2154,6 @@ static int elf_core_dump(struct coredump_params *cprm)if (!elf_core_write_extra_phdrs (cprm, offset)) goto end_coredump; - size = cprm->written;/* write out the notes section */ if (!write_note_info (&info, cprm)) goto end_coredump;
@@ -2167,7 +2165,6 @@ static int elf_core_dump(struct coredump_params *cprm)if (!dump_seek (cprm->file, dataoff - cprm->written)) goto end_coredump; - cprm->written = size;for (vma =first_vma (current, gate_vma); vma !=NULL ; vma =next_vma (vma, gate_vma)) {unsigned long addr;
Signature · 1 line
1.7.2.5