Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a02ac610 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "proc: fix coredump vs read /proc/*/stat race"

parents cac8ed4b 215f3cec
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -423,8 +423,11 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
		 * safe because the task has stopped executing permanently.
		 */
		if (permitted && (task->flags & PF_DUMPCORE)) {
			if (try_get_task_stack(task)) {
				eip = KSTK_EIP(task);
				esp = KSTK_ESP(task);
				put_task_stack(task);
			}
		}
	}