Conservative Automatic Stack Size Check
Posted Sep 9, 2005 1:58 UTC (Fri) by
sethml (subscriber, #8471)
In reply to:
Conservative Automatic Stack Size Check by pkolloch
Parent article:
4K stacks for everyone?
Clever idea, but you missed a case that's hard to deal with: calling through function pointers. The kernel uses function pointers extensively, especially for device drivers. I suspect the case mentioned involving RAID involves calling through quite a few levels of function pointers. Figuring out the maximum possible call stack depth, even very conservatively, is probably pretty difficult, and the conservative answer is probably "infinite" because there are pathways you could construct that would recurse, even if that never happens in practice.
(
Log in to post comments)