--- x/net/core/sock.c +++ y/net/core/sock.c @@ -3180,6 +3180,8 @@ EXPORT_SYMBOL(sock_init_data); void lock_sock_nested(struct sock *sk, int subclass) { might_sleep(); + mutex_acquire(&sk->sk_lock.dep_map, subclass, 0, _RET_IP_); + mutex_release(&sk->sk_lock.dep_map, _RET_IP_); spin_lock_bh(&sk->sk_lock.slock); if (sk->sk_lock.owned) __lock_sock(sk);