Kernel Stack Limit...

From: Raj, Ashok (ashok.raj@intel.com)
Date: Thu Aug 29 2002 - 14:07:19 EST


Hello.

Please reply to me, since i dont have this email id on the list.

Could someone tell me at what the kernel stack size limit is?

Is there a gcc option for x86 that can warn if too large variables are
specified in the stack?

recently we had a problem with one variable accidently declared on the stack
which was quite large, and when
some calls nested, we noticed stack corruption. Once the variable was moved
to global, the corruption went away. We would always see that some member of

"current" would be corrupted, so when the user mode program exits, we will
notice the files member would be having garbage values.

if there is a compiler option to force that during compilation to point out
such weirdness, or if a runtime check could be done during each function
exit,
it would be really useful.

thanks
ashokr
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:27 EST