]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: md5: correct a RCU lockdep splat
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 7 Mar 2012 04:45:43 +0000 (04:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2012 20:13:42 +0000 (15:13 -0500)
commitda01607a7625f02d9dded72b30e25f3991dd3050
tree6d8e347a2a10fe9a260c322409e793796ba5ce57
parent3bbf16708e98493c17128f0ed9d27eca69fbf863
tcp: md5: correct a RCU lockdep splat

commit 12aadef611 (tcp: md5: protects md5sig_info with RCU) added a
lockdep splat in tcp_md5_do_lookup() in case a timer fires a tcp
retransmit.

At this point, socket lock is owned by the sofirq handler, not the user,
so we should adjust a bit the lockdep condition, as we dont hold
rcu_read_lock().

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Reported-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c