Thread (1 message) 1 message, 1 author, 2016-01-15

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

From: Hannes Frederic Sowa <hidden>
Date: 2016-01-15 16:51:42

On 15.01.2016 17:45, Eric Dumazet wrote:
On Fri, 2016-01-15 at 15:33 +0100, Hannes Frederic Sowa wrote:
quoted
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.
...
quoted
+
+	preempt_disable();
+	level = __this_cpu_inc_return(exec_actions_level);
+	if (level > ovs_recursion_limit) {
if (unlikely(level > ovs_recursion_limit)) {
Thanks, I added it!

Bye,
Hannes


_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help