Thread (2 messages) flat view 2 messages, 2 authors, 2016-01-18

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

From: David Miller <davem@davemloft.net>
Date: 2016-01-18 17:10:20

From: Hannes Frederic Sowa <redacted>
Date: Mon, 18 Jan 2016 18:03:48 +0100
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 <redacted>
Cc: Simon Horman <redacted>
Cc: Eric Dumazet <redacted>
Cc: Simon Horman <redacted>
Signed-off-by: Hannes Frederic Sowa <redacted>
Applied, thanks Hannes.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help