Re: [PATCH] proc: fix ->stack_start in compat mode

From: Stefani Seibold
Date: Sun Nov 01 2009 - 10:07:08 EST

Am Sonntag, den 01.11.2009, 15:43 +0300 schrieb Alexey Dobriyan:
> > > Stefani, I get "Stack usage: 0 kB", you may want to look at it.
> > >
> >
> > Under which circumstance do you get 0 kb reported? What is your system
> > (mmu/nommu, 32bit/64bit, architecture and so on).
> Well, no wonder it doesn't work:
> #define KSTK_ESP(tsk) -1 /* sorry. doesn't work for syscall. */
> How does it supposed to work on live task?

Okay, you are right. That's really strange. I just build a 64 bit kernel
i will try to fix this odd behavior. This is a break in the kernel API.
KSTP_ESP should return the value of the kernel stack and not a -1. Sh..

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at