From: Robert Love <rml@tech9.net>
To: "Raj, Ashok" <ashok.raj@intel.com>
Cc: "Linux-Kernel (E-mail)" <linux-kernel@vger.kernel.org>
Subject: Re: Kernel Stack Limit...
Date: 29 Aug 2002 15:15:13 -0400 [thread overview]
Message-ID: <1030648513.978.2601.camel@phantasy> (raw)
In-Reply-To: <8A9A5F4E6576D511B98F00508B68C20A0C84D1CC@orsmsx106.jf.intel.com>
On Thu, 2002-08-29 at 15:07, Raj, Ashok wrote:
> 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?
It depends on the architecture. 8KB for x86 and most others. Some
(all?) 64-bit platforms have 16KB stacks.
Note the effective size is actually (8KB - sizeof(task_struct)) in 2.4
and (8KB - sizeof(thread_info)) in 2.5 since those structures are stored
at the top of the stack.
Also note interrupts share the stack.
> Is there a gcc option for x86 that can warn if too large variables are
> specified in the stack?
I believe 2.4-ac has a stack overflow check in it... as does the RedHat
kernel - check it out.
Also kgdb (or at least our copy here at MontaVista) has a stack overflow
check.
Robert Love
next prev parent reply other threads:[~2002-08-29 19:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-29 19:07 Raj, Ashok
2002-08-29 19:15 ` Robert Love [this message]
2002-08-29 19:18 ` Randy.Dunlap
2002-08-29 19:28 ` Richard B. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1030648513.978.2601.camel@phantasy \
--to=rml@tech9.net \
--cc=ashok.raj@intel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®