]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up queue-5.10/coredump-elf-pass-coredump_params-into-fill_note_info.patch again
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Apr 2022 18:33:22 +0000 (20:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Apr 2022 18:33:22 +0000 (20:33 +0200)
queue-5.10/coredump-elf-pass-coredump_params-into-fill_note_info.patch

index abb6beef03afdd407da0b57fc1987be9233d4b40..7e10b1a4d4b68570c4be47bbc835e1a525e97870 100644 (file)
@@ -18,8 +18,8 @@ Reviewed-by: Kees Cook <keescook@chromium.org>
 Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 ---
- fs/binfmt_elf.c |   20 ++++++++++----------
- 1 file changed, 10 insertions(+), 10 deletions(-)
+ fs/binfmt_elf.c |   22 +++++++++++-----------
+ 1 file changed, 11 insertions(+), 11 deletions(-)
 
 --- a/fs/binfmt_elf.c
 +++ b/fs/binfmt_elf.c
@@ -59,7 +59,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  {
        struct core_thread *ct;
        struct elf_thread_status *ets;
-@@ -2047,12 +2047,12 @@ static int fill_note_info(struct elfhdr
+@@ -2047,13 +2047,13 @@ static int fill_note_info(struct elfhdr
        list_for_each_entry(ets, &info->thread_list, list) {
                int sz;
  
@@ -70,10 +70,12 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        /* now collect the dump for the current */
        memset(info->prstatus, 0, sizeof(*info->prstatus));
 -      fill_prstatus(info->prstatus, current, siginfo->si_signo);
+-      elf_core_copy_regs(&info->prstatus->pr_reg, regs);
 +      fill_prstatus(info->prstatus, current, cprm->siginfo->si_signo);
-       elf_core_copy_regs(&info->prstatus->pr_reg, regs);
++      elf_core_copy_regs(&info->prstatus->pr_reg, cprm->regs);
  
        /* Set up header */
+       fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS);
 @@ -2069,7 +2069,7 @@ static int fill_note_info(struct elfhdr
        fill_note(info->notes + 1, "CORE", NT_PRPSINFO,
                  sizeof(*info->psinfo), info->psinfo);