mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
kill coredump_params->regs
it's always task_pt_regs(current) Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6a542d1d5f
commit
9a938eba8d
|
@ -2082,7 +2082,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
|
||||||
/* now collect the dump for the current */
|
/* now collect the dump for the current */
|
||||||
memset(info->prstatus, 0, sizeof(*info->prstatus));
|
memset(info->prstatus, 0, sizeof(*info->prstatus));
|
||||||
fill_prstatus(&info->prstatus->common, current, cprm->siginfo->si_signo);
|
fill_prstatus(&info->prstatus->common, current, cprm->siginfo->si_signo);
|
||||||
elf_core_copy_regs(&info->prstatus->pr_reg, cprm->regs);
|
elf_core_copy_regs(&info->prstatus->pr_reg, task_pt_regs(current));
|
||||||
|
|
||||||
/* Set up header */
|
/* Set up header */
|
||||||
fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS);
|
fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS);
|
||||||
|
@ -2109,7 +2109,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
|
||||||
|
|
||||||
/* Try to dump the FPU. */
|
/* Try to dump the FPU. */
|
||||||
info->prstatus->pr_fpvalid =
|
info->prstatus->pr_fpvalid =
|
||||||
elf_core_copy_task_fpregs(current, cprm->regs, info->fpu);
|
elf_core_copy_task_fpregs(current, task_pt_regs(current), info->fpu);
|
||||||
if (info->prstatus->pr_fpvalid)
|
if (info->prstatus->pr_fpvalid)
|
||||||
fill_note(info->notes + info->numnote++,
|
fill_note(info->notes + info->numnote++,
|
||||||
"CORE", NT_PRFPREG, sizeof(*info->fpu), info->fpu);
|
"CORE", NT_PRFPREG, sizeof(*info->fpu), info->fpu);
|
||||||
|
|
|
@ -525,7 +525,6 @@ void do_coredump(const kernel_siginfo_t *siginfo)
|
||||||
static atomic_t core_dump_count = ATOMIC_INIT(0);
|
static atomic_t core_dump_count = ATOMIC_INIT(0);
|
||||||
struct coredump_params cprm = {
|
struct coredump_params cprm = {
|
||||||
.siginfo = siginfo,
|
.siginfo = siginfo,
|
||||||
.regs = task_pt_regs(current),
|
|
||||||
.limit = rlimit(RLIMIT_CORE),
|
.limit = rlimit(RLIMIT_CORE),
|
||||||
/*
|
/*
|
||||||
* We must use the same mm->flags while dumping core to avoid
|
* We must use the same mm->flags while dumping core to avoid
|
||||||
|
|
|
@ -18,7 +18,6 @@ struct core_vma_metadata {
|
||||||
|
|
||||||
struct coredump_params {
|
struct coredump_params {
|
||||||
const kernel_siginfo_t *siginfo;
|
const kernel_siginfo_t *siginfo;
|
||||||
struct pt_regs *regs;
|
|
||||||
struct file *file;
|
struct file *file;
|
||||||
unsigned long limit;
|
unsigned long limit;
|
||||||
unsigned long mm_flags;
|
unsigned long mm_flags;
|
||||||
|
|
Loading…
Reference in a new issue