svn commit: r326758 - in head/sys/i386: conf include

Eugene Grosbein eugen at grosbein.net
Tue Dec 12 19:29:14 UTC 2017


On 13.12.2017 00:32, Rodney W. Grimes wrote:

>> I am not sure if there are tools that can analyze stack requirements for
>> possible call chains rather than individual functions.
> 
> Call graphs can be used to find deep chains.  Combine the above
> with a call graph and we should be able to come up with some
> data.
> 
> This also sounds like a good caniate for GSOC, creation
> of a call graph with static analysis of local variable size +
> call frame size requirements as a O(1) stack space estimator.

"Longitude" of call chain greatly depends of run-time system configuration.
For example, application sendto() call can result in variable number
of system calls performing IPSEC transformations (ESP, AH, IPCOMP)
then custom PFIL processing then multiple NETGRAPH calls then complex
WiFi stack operations and each of such calls can result in kernel stack exhaustion.



More information about the svn-src-head mailing list