Re: your mail

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue Oct 02 2001 - 10:30:05 EST


> 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?

Yes

--
Alan

[Oh wait you want to know why...]

Either

1. You are using it for DMA 2. You are putting it on the stack and causing a stack overflow

- 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 : Sun Oct 07 2001 - 21:00:22 EST