tcp: tcp_probe: use spin_lock_bh()
authorEric Dumazet <edumazet@google.com>
Wed, 24 May 2017 01:53:32 +0000 (21:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:49 +0000 (06:41 +0200)
commit116589a5a7e0f3dc91a50b9d39365306b2198680
tree16de268159d292af970645e60d549186e6e29afe
parenta2901d01a6c7aac1b1e0603bc7d8fce448760195
tcp: tcp_probe: use spin_lock_bh()

[ Upstream commit e70ac171658679ecf6bea4bbd9e9325cd6079d2b ]

tcp_rcv_established() can now run in process context.

We need to disable BH while acquiring tcp probe spinlock,
or risk a deadlock.

Fixes: 5413d1babe8f ("net: do not block BH while processing socket backlog")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Ricardo Nabinger Sanchez <rnsanchez@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_probe.c