From: Matti Aarnio <matti.aarnio@zmailer.org>
To: Zeshan Ahmad <zeshan_uet@yahoo.com>
Cc: linux-mm@kvack.org
Subject: Re: stack overflow
Date: Mon, 4 Sep 2000 14:03:25 +0300 [thread overview]
Message-ID: <20000904140325.Y22907@mea-ext.zmailer.org> (raw)
In-Reply-To: <20000904104744.2259.qmail@web6402.mail.yahoo.com>; from zeshan_uet@yahoo.com on Mon, Sep 04, 2000 at 03:47:44AM -0700
On Mon, Sep 04, 2000 at 03:47:44AM -0700, Zeshan Ahmad wrote:
> Hi
>
> Can any1 tell me how can the stack size be changed in
> the Kernel. i am experiencing a stack overflow problem
In kernel ? DON'T!
> when the function kmem_cache_sizes_init is called in
> /init/main.c The exact place where the stack overflow
> occurs is in the function kmem_cache_slabmgmt in
> /mm/slab.c
>
> Is there any way to change the stack size in Kernel?
> Can the change in stack size simply solve this Kernel
> stack overflow problem?
That is indicative that somewhere along the path
you are: a) recursin, b) otherwise wasting stack
with too large local allocations (e.g. "auto"
variables).
In the kernel space: NEVER use stack-based buffers,
always kmalloc(). (If they are more than 8-16 bytes
in size, that is.) Similarly, NEVER use alloca() !
> Urgent help is needed.
>
> ZEESHAN
/Matti Aarnio
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next prev parent reply other threads:[~2000-09-04 11:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-04 10:47 Zeshan Ahmad
2000-09-04 11:03 ` Matti Aarnio [this message]
2000-09-04 11:23 ` Tigran Aivazian
2000-09-05 10:55 ` Mark Hemment
2000-09-05 19:03 Zeshan Ahmad
2000-09-06 8:33 ` Mark Hemment
2000-09-06 13:25 Zeshan Ahmad
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=20000904140325.Y22907@mea-ext.zmailer.org \
--to=matti.aarnio@zmailer.org \
--cc=linux-mm@kvack.org \
--cc=zeshan_uet@yahoo.com \
/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