From: Jeff Voskamp <jeff@cr154328-a.ktchnr1.on.wave.home.com>
To: jdthood@home.dhs.org (Thomas Hood)
Cc: linux-kernel@vger.kernel.org
Subject: Re: Untitled
Date: Tue, 2 Oct 2001 11:40:11 -0400 (EDT) [thread overview]
Message-ID: <200110021540.f92FeBH09317@thor.voskamp.ca> (raw)
In-Reply-To: <20011002153222.5ED6710E6@thanatos.toad.net> from "Thomas Hood" at Oct 02, 2001 11:32:22 AM
>
> > Hello,
> > I have written a linux kernel module. The linux version is 2.2.14.
> > In this module I have declared an array of size 2048. If I use this array, the execution of this module function
> > causes kernel to reboot. If I kmalloc() this array then execution of this module function doesnot cause any
> > problem.
> > Can you explain this behaviour?
> > Thnaks,
> > Dinesh
>
> Hmm. Perhaps there's is a bug in your module.
>
> --
> Thomas Hood
> (Don't reply to the From: address but to jdthood_AT_yahoo.co.uk)
More likely he's causing a kernel stack overflow. If it's a local variable
it's going to be either 4k or 8k (int or long) and the kernel stack is only
8k on intel. Try making it a static array outside of any function.
Jeff Voskamp
prev parent reply other threads:[~2001-10-02 15:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-02 15:32 Untitled Thomas Hood
2001-10-02 15:40 ` Jeff Voskamp [this message]
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=200110021540.f92FeBH09317@thor.voskamp.ca \
--to=jeff@cr154328-a.ktchnr1.on.wave.home.com \
--cc=jdthood@home.dhs.org \
--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®