]> git.itanic.dy.fi Git - linux-stable/commit
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:15 +0000 (07:29 -0800)
commit76a7894419438faeb03cf9a83b61c27e56f7a43a
treeea2fca1dad9593d0eeb13c01683444ebe726379b
parent556a91d4d7c6f37f26701c7c067e486f79272671
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