Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11815
b: refs/heads/master
c: a928972
h: refs/heads/master
i:
  11813: aac7f03
  11811: 04a17f6
  11807: a011baf
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Oct 31, 2005
1 parent 6c8d142 commit 7ea5176
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dfc4f94d2ff95fc92127d3e512c1df7cab274fb8
refs/heads/master: a92897286485735e3708af357f8bcaf0592bd77a
17 changes: 6 additions & 11 deletions trunk/arch/mips/kernel/irixelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,8 +1077,8 @@ static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file)
struct elfhdr elf;
off_t offset = 0, dataoff;
int limit = current->signal->rlim[RLIMIT_CORE].rlim_cur;
int numnote = 4;
struct memelfnote notes[4];
int numnote = 3;
struct memelfnote notes[3];
struct elf_prstatus prstatus; /* NT_PRSTATUS */
elf_fpregset_t fpu; /* NT_PRFPREG */
struct elf_prpsinfo psinfo; /* NT_PRPSINFO */
Expand Down Expand Up @@ -1211,20 +1211,15 @@ static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file)
}
strlcpy(psinfo.pr_fname, current->comm, sizeof(psinfo.pr_fname));

notes[2].name = "CORE";
notes[2].type = NT_TASKSTRUCT;
notes[2].datasz = sizeof(*current);
notes[2].data = current;

/* Try to dump the FPU. */
prstatus.pr_fpvalid = dump_fpu (regs, &fpu);
if (!prstatus.pr_fpvalid) {
numnote--;
} else {
notes[3].name = "CORE";
notes[3].type = NT_PRFPREG;
notes[3].datasz = sizeof(fpu);
notes[3].data = &fpu;
notes[2].name = "CORE";
notes[2].type = NT_PRFPREG;
notes[2].datasz = sizeof(fpu);
notes[2].data = &fpu;
}

/* Write notes phdr entry. */
Expand Down
4 changes: 1 addition & 3 deletions trunk/fs/binfmt_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1502,9 +1502,7 @@ static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file)
fill_psinfo(psinfo, current->group_leader, current->mm);
fill_note(notes +1, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo);

fill_note(notes +2, "CORE", NT_TASKSTRUCT, sizeof(*current), current);

numnote = 3;
numnote = 2;

auxv = (elf_addr_t *) current->mm->saved_auxv;

Expand Down

0 comments on commit 7ea5176

Please sign in to comment.