From: Eric Dumazet <eric.dumazet@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: ben@decadent.org.uk, netdev@vger.kernel.org,
beatrice.barbe@gmail.com, 599816@bugs.debian.org
Subject: Re: Nested GRE locking bug
Date: Mon, 25 Oct 2010 22:08:25 +0200 [thread overview]
Message-ID: <1288037305.3296.0.camel@edumazet-laptop> (raw)
In-Reply-To: <20101025.125347.28807251.davem@davemloft.net>
Le lundi 25 octobre 2010 à 12:53 -0700, David Miller a écrit :
> I'll commit the following to upstream, and submit a combined
> patch to -stable.
>
> --------------------
> net: Increase xmit RECURSION_LIMIT to 10.
>
> Three is definitely too low, and we know from reports that GRE tunnels
> stacked as deeply as 37 levels cause stack overflows, so pick some
> reasonable value between those two.
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
> ---
> net/core/dev.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/core/dev.c b/net/core/dev.c
> index 78b5a89..2c7da3a 100644
> --- a/net/core/dev.c
> +++ b/net/core/dev.c
> @@ -2213,7 +2213,7 @@ static inline int __dev_xmit_skb(struct sk_buff *skb, struct Qdisc *q,
> }
>
> static DEFINE_PER_CPU(int, xmit_recursion);
> -#define RECURSION_LIMIT 3
> +#define RECURSION_LIMIT 10
>
> /**
> * dev_queue_xmit - transmit a buffer
Perfect, thanks !
prev parent reply other threads:[~2010-10-25 20:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-14 4:00 Nested GRE locking bug Ben Hutchings
2010-10-14 4:11 ` Eric Dumazet
2010-10-19 8:53 ` David Miller
2010-10-19 9:02 ` Eric Dumazet
2010-10-25 19:53 ` David Miller
2010-10-25 20:08 ` Eric Dumazet [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1288037305.3296.0.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=599816@bugs.debian.org \
--cc=beatrice.barbe@gmail.com \
--cc=ben@decadent.org.uk \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox