Messages in this thread | | | Date | Tue, 23 Mar 1999 00:28:08 -0500 | From | getienne@globalse ... | Subject | Re: tracing a kernel stack corruption |
| |
two questions:
1. a function call a function which call another function and so on. how can we be sure not to go beyond 7k ? there is a automatic detection of this, a log/oops or other ?
2. why only 7k when a typical kernel uses 2meg ?
On Tue, Mar 23, 1999 at 02:17:43PM +0100, Ingo Molnar wrote: > One important kernel programming rule, at most ~7K should be used as stack > variables. (~4k on 2.0, thus a good guideline is to never allocate more > than 3k). Most probably the problem is that you allocate some big > structure on the kernel stack:
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |