diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-04 23:17:26 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-11-25 05:26:04 +0100 |
commit | e961d370fc7b806a0d668413a9f1b006760eaee6 (patch) | |
tree | 0352dc901e34644494f4acf02c0dd89a2bd923c4 /fs/binfmt_elf.c | |
parent | [elf][non-regset] uninline elf_core_copy_task_fpregs() (and lose pt_regs argu... (diff) | |
download | linux-e961d370fc7b806a0d668413a9f1b006760eaee6.tar.xz linux-e961d370fc7b806a0d668413a9f1b006760eaee6.zip |
[elf][non-regset] use elf_core_copy_task_regs() for dumper as well
elf_core_copy_regs() is equivalent to elf_core_copy_task_regs() of
current on all architectures.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index c3c5bd48361e..cb95e842c50f 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -2072,7 +2072,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs, /* now collect the dump for the current */ memset(info->prstatus, 0, sizeof(*info->prstatus)); fill_prstatus(&info->prstatus->common, current, cprm->siginfo->si_signo); - elf_core_copy_regs(&info->prstatus->pr_reg, task_pt_regs(current)); + elf_core_copy_task_regs(current, &info->prstatus->pr_reg); /* Set up header */ fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS); |