]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: add a recursion limit in xmit path
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 29 Sep 2010 20:23:09 +0000 (13:23 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 19:00:15 +0000 (11:00 -0800)
commit3f266b04185de51d8e6446eb1fccec3b5e7ce575
treeacc454774ea7b0a3647b0ac40e9778da075e15da
parenta3c1c5704f66741f3249926b31cc4a201b1faeda
net: add a recursion limit in xmit path

[ Upstream commits 745e20f1b626b1be4b100af5d4bf7b3439392f8f and
  11a766ce915fc9f8663714eac6d59239388534ea ]

As tunnel devices are going to be lockless, we need to make sure a
misconfigured machine wont enter an infinite loop.

Add a percpu variable, and limit to three the number of stacked xmits.

Reported-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/dev.c