[ovs-dev] [PATCH net v3] ovs: limit ovs recursions in ovs_execute_actions to not corrupt stack

Eric Dumazet eric.dumazet at gmail.com
Fri Jan 15 16:45:57 UTC 2016


On Fri, 2016-01-15 at 15:33 +0100, Hannes Frederic Sowa wrote:
> 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.

...

> +
> +	preempt_disable();
> +	level = __this_cpu_inc_return(exec_actions_level);
> +	if (level > ovs_recursion_limit) {

if (unlikely(level > ovs_recursion_limit)) {






More information about the dev mailing list