Conservative Automatic Stack Size Check
Posted Sep 9, 2005 1:58 UTC (Fri) by sethml
In reply to: Conservative Automatic Stack Size Check
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.
to post comments)