Message ID | 20191202083519.23138-8-yi.zhang@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fs/proc: Stop reporting eip and esp in | expand |
diff --git a/fs/proc/array.c b/fs/proc/array.c index 42e33ea50d1c..6238f45eed02 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -434,7 +434,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, * a program is not able to use ptrace(2) in that case. It is * safe because the task has stopped executing permanently. */ - if (permitted && (task->flags & PF_DUMPCORE)) { + if (permitted && (task->flags & (PF_EXITING|PF_DUMPCORE))) { if (try_get_task_stack(task)) { eip = KSTK_EIP(task); esp = KSTK_ESP(task);