]> 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)
commit486f68e59ef2aacd0d5342acc608ac70e8a261ca
treec60425de6b6c599cba869c57fd938080d4e56581
parentbb266f741ea91351fcbc6e6cadd1f131b3516e72
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: 88b744dcd9a9 ("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