OSDN Git Service

ipv6: fix possible seqlock deadlock in ip6_finish_output2
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Fri, 29 Nov 2013 05:39:44 +0000 (06:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Dec 2013 15:29:26 +0000 (07:29 -0800)
commite761bada6f1eb056e720afd5704a21a79fb8df35
treeea92a61a3d4bf4ac636baaf2145688fbc26d2fdf
parent7be560d6fa090edd57fa2761282f46ef85a20088
ipv6: fix possible seqlock deadlock in ip6_finish_output2

[ Upstream commit 7f88c6b23afbd31545c676dea77ba9593a1a14bf ]

IPv6 stats are 64 bits and thus are protected with a seqlock. By not
disabling bottom-half we could deadlock here if we don't disable bh and
a softirq reentrantly updates the same mib.

Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_output.c