Fix sysrq-t free stack output
PATCH 1/1 Fix sysrq-t free stack output
It seems that we're attempting to work out the free stack size using two unrelated pointers for the lowest address of the stack. Fix this to use the correct pointer.
kernel/sched.c +1 -1
@@ -2465,7 +2465,7 @@unsigned long * n = (unsigned long *) (p->thread_info+1 );while (!*n) n++; - free = (unsigned long ) n - (unsigned long )(p+1 ); + free = (unsigned long ) n - (unsigned long )(p->thread_info+1 ); }printk ("%5lu %5d %6d " , free, p->pid, p->parent->pid);if ((relative =eldest_child (p)))
Signature · 4 lines
Russell King ([email protected]) http://www.arm.linux.org.uk/personal/ Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/ 2.6 Serial core