@@ -1822,7 +1822,7 @@ static int fill_thread_core_info(struct elf_thread_core_info *t,
18221822
18231823static int fill_note_info (struct elfhdr * elf , int phdrs ,
18241824 struct elf_note_info * info ,
1825- const kernel_siginfo_t * siginfo , struct pt_regs * regs )
1825+ struct coredump_params * cprm )
18261826{
18271827 struct task_struct * dump_task = current ;
18281828 const struct user_regset_view * view = task_user_regset_view (dump_task );
@@ -1894,7 +1894,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
18941894 * Now fill in each thread's information.
18951895 */
18961896 for (t = info -> thread ; t != NULL ; t = t -> next )
1897- if (!fill_thread_core_info (t , view , siginfo -> si_signo , & info -> size ))
1897+ if (!fill_thread_core_info (t , view , cprm -> siginfo -> si_signo , & info -> size ))
18981898 return 0 ;
18991899
19001900 /*
@@ -1903,7 +1903,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
19031903 fill_psinfo (psinfo , dump_task -> group_leader , dump_task -> mm );
19041904 info -> size += notesize (& info -> psinfo );
19051905
1906- fill_siginfo_note (& info -> signote , & info -> csigdata , siginfo );
1906+ fill_siginfo_note (& info -> signote , & info -> csigdata , cprm -> siginfo );
19071907 info -> size += notesize (& info -> signote );
19081908
19091909 fill_auxv_note (& info -> auxv , current -> mm );
@@ -2051,7 +2051,7 @@ static int elf_note_info_init(struct elf_note_info *info)
20512051
20522052static int fill_note_info (struct elfhdr * elf , int phdrs ,
20532053 struct elf_note_info * info ,
2054- const kernel_siginfo_t * siginfo , struct pt_regs * regs )
2054+ struct coredump_params * cprm )
20552055{
20562056 struct core_thread * ct ;
20572057 struct elf_thread_status * ets ;
@@ -2072,13 +2072,13 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
20722072 list_for_each_entry (ets , & info -> thread_list , list ) {
20732073 int sz ;
20742074
2075- sz = elf_dump_thread_status (siginfo -> si_signo , ets );
2075+ sz = elf_dump_thread_status (cprm -> siginfo -> si_signo , ets );
20762076 info -> thread_status_size += sz ;
20772077 }
20782078 /* now collect the dump for the current */
20792079 memset (info -> prstatus , 0 , sizeof (* info -> prstatus ));
2080- fill_prstatus (& info -> prstatus -> common , current , siginfo -> si_signo );
2081- elf_core_copy_regs (& info -> prstatus -> pr_reg , regs );
2080+ fill_prstatus (& info -> prstatus -> common , current , cprm -> siginfo -> si_signo );
2081+ elf_core_copy_regs (& info -> prstatus -> pr_reg , cprm -> regs );
20822082
20832083 /* Set up header */
20842084 fill_elf_header (elf , phdrs , ELF_ARCH , ELF_CORE_EFLAGS );
@@ -2094,7 +2094,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
20942094 fill_note (info -> notes + 1 , "CORE" , NT_PRPSINFO ,
20952095 sizeof (* info -> psinfo ), info -> psinfo );
20962096
2097- fill_siginfo_note (info -> notes + 2 , & info -> csigdata , siginfo );
2097+ fill_siginfo_note (info -> notes + 2 , & info -> csigdata , cprm -> siginfo );
20982098 fill_auxv_note (info -> notes + 3 , current -> mm );
20992099 info -> numnote = 4 ;
21002100
@@ -2104,8 +2104,8 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
21042104 }
21052105
21062106 /* Try to dump the FPU. */
2107- info -> prstatus -> pr_fpvalid = elf_core_copy_task_fpregs ( current , regs ,
2108- info -> fpu );
2107+ info -> prstatus -> pr_fpvalid =
2108+ elf_core_copy_task_fpregs ( current , cprm -> regs , info -> fpu );
21092109 if (info -> prstatus -> pr_fpvalid )
21102110 fill_note (info -> notes + info -> numnote ++ ,
21112111 "CORE" , NT_PRFPREG , sizeof (* info -> fpu ), info -> fpu );
@@ -2218,7 +2218,7 @@ static int elf_core_dump(struct coredump_params *cprm)
22182218 * Collect all the non-memory information about the process for the
22192219 * notes. This also sets up the file header.
22202220 */
2221- if (!fill_note_info (& elf , e_phnum , & info , cprm -> siginfo , cprm -> regs ))
2221+ if (!fill_note_info (& elf , e_phnum , & info , cprm ))
22222222 goto end_coredump ;
22232223
22242224 has_dumped = 1 ;
0 commit comments