aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHannes Frederic Sowa <[email protected]>2016-01-18 18:03:48 +0100
committerDavid S. Miller <[email protected]>2016-01-18 12:09:45 -0500
commitb064d0d88ae5280c7e878f79d0c9a8e2876a4d14 (patch)
treef4cbdf604f01fcd3c0bd25fe819aaa0cf8825b40 /tools/perf/scripts/python/stackcollapse.py
parent60a6531bfe49555581ccd65f66a350cc5693fcde (diff)
ovs: limit ovs recursions in ovs_execute_actions to not corrupt stack
It was seen that defective configurations of openvswitch could overwrite the STACK_END_MAGIC and cause a hard crash of the kernel because of too many recursions within ovs. This problem arises due to the high stack usage of openvswitch. The rest of the kernel is fine with the current limit of 10 (RECURSION_LIMIT). We use the already existing recursion counter in ovs_execute_actions to implement an upper bound of 5 recursions. Cc: Pravin Shelar <[email protected]> Cc: Simon Horman <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Simon Horman <[email protected]> Signed-off-by: Hannes Frederic Sowa <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions