]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: must block bh in __inet_twsk_hashdance()
authorEric Dumazet <edumazet@google.com>
Wed, 4 May 2016 00:10:50 +0000 (17:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 20:55:11 +0000 (16:55 -0400)
commitc73c730adbfc3552dd402366223c607fc4fb0c68
treec60425de6b6c599cba869c57fd938080d4e56581
parent9ffd448e9a5a7db55a843c0609947e1e9b0f06d8
tcp: must block bh in __inet_twsk_hashdance()

__inet_twsk_hashdance() might be called from process context,
better block BH before acquiring bind hash and established locks

Fixes: 1c26a27723c1 ("tcp: do not assume TCP code is non preemptible")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_timewait_sock.c