stackprotector: use canary at end of stack to indicate overruns at oops time
[deliverable/linux.git] / kernel / sched.c
index cfa222a91539e193a54d20d422fa92b43a19334b..a964ed9450947de981fa1d20417cb6f144dffe47 100644 (file)
@@ -5748,12 +5748,7 @@ void sched_show_task(struct task_struct *p)
                printk(KERN_CONT " %016lx ", thread_saved_pc(p));
 #endif
 #ifdef CONFIG_DEBUG_STACK_USAGE
-       {
-               unsigned long *n = end_of_stack(p);
-               while (!*n)
-                       n++;
-               free = (unsigned long)n - (unsigned long)end_of_stack(p);
-       }
+       free = stack_not_used(p);
 #endif
        printk(KERN_CONT "%5lu %5d %6d\n", free,
                task_pid_nr(p), task_pid_nr(p->real_parent));
This page took 0.02558 seconds and 5 git commands to generate.