/Linux-v5.10/fs/ |
D | coredump.c | 196 static int format_corename(struct core_name *cn, struct coredump_params *cprm, in format_corename() argument 288 __get_dumpable(cprm->mm_flags)); in format_corename() 293 cprm->siginfo->si_signo); in format_corename() 594 struct coredump_params cprm = { in do_coredump() local 611 if (!__get_dumpable(cprm.mm_flags)) in do_coredump() 623 if (__get_dumpable(cprm.mm_flags) == SUID_DUMP_ROOT) { in do_coredump() 635 ispipe = format_corename(&cn, &cprm, &argv, &argc); in do_coredump() 649 if (cprm.limit == 1) { in do_coredump() 671 cprm.limit = RLIM_INFINITY; in do_coredump() 695 umh_pipe_setup, NULL, &cprm); in do_coredump() [all …]
|
D | binfmt_elf_fdpic.c | 78 static int elf_fdpic_core_dump(struct coredump_params *cprm); 1240 static int writenote(struct memelfnote *men, struct coredump_params *cprm) in writenote() argument 1247 return dump_emit(cprm, &en, sizeof(en)) && in writenote() 1248 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote() 1249 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote() 1457 static bool elf_fdpic_dump_segments(struct coredump_params *cprm, in elf_fdpic_dump_segments() argument 1466 if (!dump_user_range(cprm, meta->start, meta->dump_size)) in elf_fdpic_dump_segments() 1479 static int elf_fdpic_core_dump(struct coredump_params *cprm) in elf_fdpic_core_dump() argument 1508 if (dump_vma_snapshot(cprm, &vma_count, &vma_meta, &vma_data_size)) in elf_fdpic_core_dump() 1513 tmp = elf_dump_thread_status(cprm->siginfo->si_signo, in elf_fdpic_core_dump() [all …]
|
D | binfmt_elf.c | 81 static int elf_core_dump(struct coredump_params *cprm); 1440 static int writenote(struct memelfnote *men, struct coredump_params *cprm) in writenote() argument 1447 return dump_emit(cprm, &en, sizeof(en)) && in writenote() 1448 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote() 1449 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote() 1891 struct coredump_params *cprm) in write_note_info() argument 1899 if (!writenote(&t->notes[0], cprm)) in write_note_info() 1902 if (first && !writenote(&info->psinfo, cprm)) in write_note_info() 1904 if (first && !writenote(&info->signote, cprm)) in write_note_info() 1906 if (first && !writenote(&info->auxv, cprm)) in write_note_info() [all …]
|
D | binfmt_flat.c | 94 static int flat_core_dump(struct coredump_params *cprm); 109 static int flat_core_dump(struct coredump_params *cprm) in flat_core_dump() argument 112 current->comm, current->pid, cprm->siginfo->si_signo); in flat_core_dump()
|
/Linux-v5.10/arch/powerpc/platforms/cell/spufs/ |
D | coredump.c | 116 struct coredump_params *cprm, int dfd) in spufs_arch_write_note() argument 128 if (!dump_emit(cprm, &en, sizeof(en))) in spufs_arch_write_note() 130 if (!dump_emit(cprm, fullname, en.n_namesz)) in spufs_arch_write_note() 132 if (!dump_align(cprm, 4)) in spufs_arch_write_note() 136 ret = spufs_coredump_read[i].dump(ctx, cprm); in spufs_arch_write_note() 148 if (!dump_emit(cprm, buf, ret + 1)) in spufs_arch_write_note() 152 if (!dump_skip(cprm, roundup(cprm->pos - ret + sz, 4) - cprm->pos)) in spufs_arch_write_note() 157 int spufs_coredump_extra_notes_write(struct coredump_params *cprm) in spufs_coredump_extra_notes_write() argument 169 rc = spufs_arch_write_note(ctx, j, cprm, fd); in spufs_coredump_extra_notes_write()
|
D | file.c | 133 static ssize_t spufs_dump_emit(struct coredump_params *cprm, void *buf, in spufs_dump_emit() argument 136 if (!dump_emit(cprm, buf, size)) in spufs_dump_emit() 184 spufs_mem_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_mem_dump() argument 186 return spufs_dump_emit(cprm, ctx->ops->get_ls(ctx), LS_SIZE); in spufs_mem_dump() 469 spufs_regs_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_regs_dump() argument 471 return spufs_dump_emit(cprm, ctx->csa.lscsa->gprs, in spufs_regs_dump() 526 spufs_fpcr_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_fpcr_dump() argument 528 return spufs_dump_emit(cprm, &ctx->csa.lscsa->fpcr, in spufs_fpcr_dump() 962 struct coredump_params *cprm) in spufs_signal1_dump() argument 966 return spufs_dump_emit(cprm, &ctx->csa.spu_chnldata_RW[3], in spufs_signal1_dump() [all …]
|
D | spufs.h | 239 extern int spufs_coredump_extra_notes_write(struct coredump_params *cprm); 340 ssize_t (*dump)(struct spu_context *ctx, struct coredump_params *cprm);
|
/Linux-v5.10/include/linux/ |
D | coredump.h | 21 extern int dump_skip(struct coredump_params *cprm, size_t nr); 22 extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr); 23 extern int dump_align(struct coredump_params *cprm, int align); 24 extern void dump_truncate(struct coredump_params *cprm); 25 int dump_user_range(struct coredump_params *cprm, unsigned long start, 27 int dump_vma_snapshot(struct coredump_params *cprm, int *vma_count,
|
D | elfcore.h | 118 elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset); 120 elf_core_write_extra_data(struct coredump_params *cprm); 128 static inline int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) in elf_core_write_extra_phdrs() argument 133 static inline int elf_core_write_extra_data(struct coredump_params *cprm) in elf_core_write_extra_data() argument
|
D | elf.h | 60 static inline int elf_coredump_extra_notes_write(struct coredump_params *cprm) { return 0; } in elf_coredump_extra_notes_write() argument 63 extern int elf_coredump_extra_notes_write(struct coredump_params *cprm);
|
D | binfmts.h | 96 int (*core_dump)(struct coredump_params *cprm);
|
/Linux-v5.10/arch/x86/um/ |
D | elfcore.c | 15 int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) in elf_core_write_extra_phdrs() argument 35 if (!dump_emit(cprm, &phdr, sizeof(phdr))) in elf_core_write_extra_phdrs() 42 int elf_core_write_extra_data(struct coredump_params *cprm) in elf_core_write_extra_data() argument 55 if (!dump_emit(cprm, addr, filesz)) in elf_core_write_extra_data()
|
/Linux-v5.10/arch/ia64/kernel/ |
D | elfcore.c | 15 int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) in elf_core_write_extra_phdrs() argument 38 if (!dump_emit(cprm, &phdr, sizeof(phdr))) in elf_core_write_extra_phdrs() 44 int elf_core_write_extra_data(struct coredump_params *cprm) in elf_core_write_extra_data() argument 55 if (!dump_emit(cprm, addr, memsz)) in elf_core_write_extra_data()
|
/Linux-v5.10/arch/powerpc/platforms/cell/ |
D | spu_syscalls.c | 118 int elf_coredump_extra_notes_write(struct coredump_params *cprm) in elf_coredump_extra_notes_write() argument 127 ret = calls->coredump_extra_notes_write(cprm); in elf_coredump_extra_notes_write()
|
/Linux-v5.10/arch/m68k/include/asm/ |
D | bvme6000hw.h | 35 pad_u[3], cprm, member
|
/Linux-v5.10/arch/powerpc/include/asm/ |
D | spu.h | 235 int (*coredump_extra_notes_write)(struct coredump_params *cprm);
|