Messages in this thread Patch in this message | | | Subject | [PATCH] fix /proc/<pid>/stat stack pointer for kernel threads | From | Stefani Seibold <> | Date | Thu, 05 Nov 2009 14:02:28 +0100 |
| |
This patch fix a small issue for the stack pointer in /proc/<pid>/stat. In case of a kernel thread the value of the stack pointer should be 0.
Signed-off-by: Stefani Seibold <stefani@seibold.net> --- array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.32-rc5.old/fs/proc/array.c 2009-10-16 02:41:50.000000000 +0200 +++ linux-2.6.32-rc5.new/fs/proc/array.c 2009-11-05 13:46:58.770599144 +0100 @@ -571,7 +571,7 @@ 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.
| |