Commit 9ebd4eba authored by Stefani Seibold's avatar Stefani Seibold Committed by Linus Torvalds
Browse files

procfs: fix /proc/<pid>/stat stack pointer for kernel threads



Fix a small issue for the stack pointer in /proc/<pid>/stat.  In case of a
kernel thread the value of the printed stack pointer should be 0.

Signed-off-by: default avatarStefani Seibold <stefani@seibold.net>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6ad696d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -571,7 +571,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
		rsslim,
		mm ? mm->start_code : 0,
		mm ? mm->end_code : 0,
		(permitted) ? task->stack_start : 0,
		(permitted && mm) ? task->stack_start : 0,
		esp,
		eip,
		/* The signal information here is obsolete.