@@ -1797,7 +1797,7 @@ static int fill_thread_core_info(struct elf_thread_core_info *t,
17971797
17981798static int fill_note_info (struct elfhdr * elf , int phdrs ,
17991799 struct elf_note_info * info ,
1800- const kernel_siginfo_t * siginfo , struct pt_regs * regs )
1800+ struct coredump_params * cprm )
18011801{
18021802 struct task_struct * dump_task = current ;
18031803 const struct user_regset_view * view = task_user_regset_view (dump_task );
@@ -1869,7 +1869,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
18691869 * Now fill in each thread's information.
18701870 */
18711871 for (t = info -> thread ; t != NULL ; t = t -> next )
1872- if (!fill_thread_core_info (t , view , siginfo -> si_signo , & info -> size ))
1872+ if (!fill_thread_core_info (t , view , cprm -> siginfo -> si_signo , & info -> size ))
18731873 return 0 ;
18741874
18751875 /*
@@ -1878,7 +1878,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
18781878 fill_psinfo (psinfo , dump_task -> group_leader , dump_task -> mm );
18791879 info -> size += notesize (& info -> psinfo );
18801880
1881- fill_siginfo_note (& info -> signote , & info -> csigdata , siginfo );
1881+ fill_siginfo_note (& info -> signote , & info -> csigdata , cprm -> siginfo );
18821882 info -> size += notesize (& info -> signote );
18831883
18841884 fill_auxv_note (& info -> auxv , current -> mm );
@@ -2026,7 +2026,7 @@ static int elf_note_info_init(struct elf_note_info *info)
20262026
20272027static int fill_note_info (struct elfhdr * elf , int phdrs ,
20282028 struct elf_note_info * info ,
2029- const kernel_siginfo_t * siginfo , struct pt_regs * regs )
2029+ struct coredump_params * cprm )
20302030{
20312031 struct core_thread * ct ;
20322032 struct elf_thread_status * ets ;
@@ -2047,13 +2047,13 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
20472047 list_for_each_entry (ets , & info -> thread_list , list ) {
20482048 int sz ;
20492049
2050- sz = elf_dump_thread_status (siginfo -> si_signo , ets );
2050+ sz = elf_dump_thread_status (cprm -> siginfo -> si_signo , ets );
20512051 info -> thread_status_size += sz ;
20522052 }
20532053 /* now collect the dump for the current */
20542054 memset (info -> prstatus , 0 , sizeof (* info -> prstatus ));
2055- fill_prstatus (info -> prstatus , current , siginfo -> si_signo );
2056- elf_core_copy_regs (& info -> prstatus -> pr_reg , regs );
2055+ fill_prstatus (info -> prstatus , current , cprm -> siginfo -> si_signo );
2056+ elf_core_copy_regs (& info -> prstatus -> pr_reg , cprm -> regs );
20572057
20582058 /* Set up header */
20592059 fill_elf_header (elf , phdrs , ELF_ARCH , ELF_CORE_EFLAGS );
@@ -2069,7 +2069,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
20692069 fill_note (info -> notes + 1 , "CORE" , NT_PRPSINFO ,
20702070 sizeof (* info -> psinfo ), info -> psinfo );
20712071
2072- fill_siginfo_note (info -> notes + 2 , & info -> csigdata , siginfo );
2072+ fill_siginfo_note (info -> notes + 2 , & info -> csigdata , cprm -> siginfo );
20732073 fill_auxv_note (info -> notes + 3 , current -> mm );
20742074 info -> numnote = 4 ;
20752075
@@ -2079,8 +2079,8 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
20792079 }
20802080
20812081 /* Try to dump the FPU. */
2082- info -> prstatus -> pr_fpvalid = elf_core_copy_task_fpregs ( current , regs ,
2083- info -> fpu );
2082+ info -> prstatus -> pr_fpvalid =
2083+ elf_core_copy_task_fpregs ( current , cprm -> regs , info -> fpu );
20842084 if (info -> prstatus -> pr_fpvalid )
20852085 fill_note (info -> notes + info -> numnote ++ ,
20862086 "CORE" , NT_PRFPREG , sizeof (* info -> fpu ), info -> fpu );
@@ -2193,7 +2193,7 @@ static int elf_core_dump(struct coredump_params *cprm)
21932193 * Collect all the non-memory information about the process for the
21942194 * notes. This also sets up the file header.
21952195 */
2196- if (!fill_note_info (& elf , e_phnum , & info , cprm -> siginfo , cprm -> regs ))
2196+ if (!fill_note_info (& elf , e_phnum , & info , cprm ))
21972197 goto end_coredump ;
21982198
21992199 has_dumped = 1 ;
0 commit comments