Re: [PATCH] inet: missing lock releases in udp.c

From: Cong Wang
Date: Sun Jan 23 2022 - 14:57:54 EST


On Fri, Jan 21, 2022 at 11:15:53AM +0800, ycaibb wrote:
> From: Ryan Cai <ycaibb@xxxxxxxxx>
>
> In method udp_get_first, the lock hslot->lock is not released when afinfo->family == AF_UNSPEC || sk->sk_family == afinfo->family is true. This patch fixes the problem by adding the unlock statement.
>

It should be unlocked by udp_seq_stop(). Do you see any real lockdep
warning or bug report?

Thanks.