]> Git Repo - linux.git/commitdiff
[elf][non-regset] use elf_core_copy_task_regs() for dumper as well
authorAl Viro <[email protected]>
Sun, 4 Sep 2022 21:17:26 +0000 (17:17 -0400)
committerAl Viro <[email protected]>
Fri, 25 Nov 2022 04:26:04 +0000 (23:26 -0500)
elf_core_copy_regs() is equivalent to elf_core_copy_task_regs() of
current on all architectures.

Signed-off-by: Al Viro <[email protected]>
fs/binfmt_elf.c

index c3c5bd48361e7a21128b3ea2a50107576113d772..cb95e842c50fc454f72ee1fa649a7a8075c90370 100644 (file)
@@ -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);
This page took 0.058201 seconds and 4 git commands to generate.