summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-10-07 07:23:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-11-09 00:16:25 -0500
commit1ad67015e619ba4e0b15ed0482d464292fedf263 (patch)
tree1eb5523ba610f9bd32396e4366b75e39d339606d /fs
parent43a5d548eb5949580c1d96b9f3fa9f4c0bee0b98 (diff)
downloadop-kernel-dev-1ad67015e619ba4e0b15ed0482d464292fedf263.zip
op-kernel-dev-1ad67015e619ba4e0b15ed0482d464292fedf263.tar.gz
binfmt_elf: count notes towards coredump limit
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/binfmt_elf.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index 3bf75d7..4f7dda9 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -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;
OpenPOWER on IntegriCloud