mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
binfmt_elf: count notes towards coredump limit
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
43a5d548eb
commit
1ad67015e6
1 changed files with 0 additions and 3 deletions
|
@ -2034,7 +2034,6 @@ static int elf_core_dump(struct coredump_params *cprm)
|
||||||
int has_dumped = 0;
|
int has_dumped = 0;
|
||||||
mm_segment_t fs;
|
mm_segment_t fs;
|
||||||
int segs;
|
int segs;
|
||||||
size_t size = 0;
|
|
||||||
struct vm_area_struct *vma, *gate_vma;
|
struct vm_area_struct *vma, *gate_vma;
|
||||||
struct elfhdr *elf = NULL;
|
struct elfhdr *elf = NULL;
|
||||||
loff_t offset = 0, dataoff;
|
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))
|
if (!elf_core_write_extra_phdrs(cprm, offset))
|
||||||
goto end_coredump;
|
goto end_coredump;
|
||||||
|
|
||||||
size = cprm->written;
|
|
||||||
/* write out the notes section */
|
/* write out the notes section */
|
||||||
if (!write_note_info(&info, cprm))
|
if (!write_note_info(&info, cprm))
|
||||||
goto end_coredump;
|
goto end_coredump;
|
||||||
|
@ -2167,7 +2165,6 @@ static int elf_core_dump(struct coredump_params *cprm)
|
||||||
if (!dump_seek(cprm->file, dataoff - cprm->written))
|
if (!dump_seek(cprm->file, dataoff - cprm->written))
|
||||||
goto end_coredump;
|
goto end_coredump;
|
||||||
|
|
||||||
cprm->written = size;
|
|
||||||
for (vma = first_vma(current, gate_vma); vma != NULL;
|
for (vma = first_vma(current, gate_vma); vma != NULL;
|
||||||
vma = next_vma(vma, gate_vma)) {
|
vma = next_vma(vma, gate_vma)) {
|
||||||
unsigned long addr;
|
unsigned long addr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue