]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tcp: tcp_probe: use spin_lock_bh()
authorEric Dumazet <edumazet@google.com>
Wed, 15 Feb 2017 01:11:14 +0000 (17:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2017 03:19:39 +0000 (22:19 -0500)
commite70ac171658679ecf6bea4bbd9e9325cd6079d2b
tree6757ae4ff0186cf6b68b57797c983b143577967b
parenta725eb15db80643a160310ed6bcfd6c5a6c907f2
tcp: tcp_probe: use spin_lock_bh()

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>
net/ipv4/tcp_probe.c