Lines Matching refs:dump
64 * Routine writes a core dump image in the current directory.
67 * Note that setuid/setgid files won't make a core-dump if the uid/gid
80 struct user dump;
93 strncpy(dump.u_comm, current->comm, sizeof(dump.u_comm));
94 dump.u_ar0 = offsetof(struct user, regs);
95 dump.signal = cprm->signr;
96 aout_dump_thread(cprm->regs, &dump);
98 /* If the size of the dump file exceeds the rlimit, then see what would happen
100 if ((dump.u_dsize + dump.u_ssize+1) * PAGE_SIZE > cprm->limit)
101 dump.u_dsize = 0;
104 if ((dump.u_ssize + 1) * PAGE_SIZE > cprm->limit)
105 dump.u_ssize = 0;
107 /* make sure we actually have a data and stack area to dump */
109 if (!access_ok(VERIFY_READ, START_DATA(dump), dump.u_dsize << PAGE_SHIFT))
110 dump.u_dsize = 0;
111 if (!access_ok(VERIFY_READ, START_STACK(dump), dump.u_ssize << PAGE_SHIFT))
112 dump.u_ssize = 0;
116 if (!dump_write(file, &dump, sizeof(dump)))
118 /* Now dump all of the user data. Include malloced stuff as well */
119 if (!dump_seek(cprm->file, PAGE_SIZE - sizeof(dump)))
124 if (dump.u_dsize != 0) {
125 dump_start = START_DATA(dump);
126 dump_size = dump.u_dsize << PAGE_SHIFT;
130 /* Now prepare to dump the stack area */
131 if (dump.u_ssize != 0) {
132 dump_start = START_STACK(dump);
133 dump_size = dump.u_ssize << PAGE_SHIFT;