A subsequent fix for arm64 will use this parameter to parse the vma information from the snapshot created by dump_vma_snapshot() rather than traversing the vma list without the mmap_lock.
Showing the changes to include/linux (1 of 6 files). Show all
Unified · Split
| @@ -105,14 +105,14 @@ int elf_core_copy_task_fpregs(struct task_struct *t, elf_fpregset_t *fpu); · 104 unmodified lines | |||
| 105 | * Dumping its extra ELF program headers includes all the other information | 105 | * Dumping its extra ELF program headers includes all the other information |
| 106 | * a debugger needs to easily find how the gate DSO was being used. | 106 | * a debugger needs to easily find how the gate DSO was being used. |
| 107 | */ | 107 | */ |
| 108 | extern Elf_Half elf_core_extra_phdrs(void); | 108 | extern Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm); |
| 109 | extern int | 109 | extern int |
| 110 | elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset); | 110 | elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset); |
| 111 | extern int | 111 | extern int |
| 112 | elf_core_write_extra_data(struct coredump_params *cprm); | 112 | elf_core_write_extra_data(struct coredump_params *cprm); |
| 113 | extern size_t elf_core_extra_data_size(void); | 113 | extern size_t elf_core_extra_data_size(struct coredump_params *cprm); |
| 114 | #else | 114 | #else |
| 115 | static inline Elf_Half elf_core_extra_phdrs(void) | 115 | static inline Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm) |
| 116 | { | 116 | { |
| 117 | return 0; | 117 | return 0; |
| 118 | } | 118 | } |
| @@ -127,7 +127,7 @@ static inline int elf_core_write_extra_data(struct coredump_params *cprm) · 8 unmodified lines | |||
| 127 | return 1; | 127 | return 1; |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | static inline size_t elf_core_extra_data_size(void) | 130 | static inline size_t elf_core_extra_data_size(struct coredump_params *cprm) |
| 131 | { | 131 | { |
| 132 | return 0; | 132 | return 0; |
| 133 | } | 133 | } |