Subject: Re: [net-next] bpf: avoid hashtab deadlock with try_lock

From: Jakub Kicinski <[email-masked]>
Date: Mon, 21 Nov 2022 12:19:55 -0800

On Mon, 21 Nov 2022 18:05:21 +0800 [email-masked] wrote:
> From: Tonghao Zhang <[email-masked]>
> 
> The commit 20b6cc34ea74 ("bpf: Avoid hashtab deadlock with map_locked"),
> try to fix deadlock, but in some case, the deadlock occurs:
> 
> * CPUn in task context with K1, and taking lock.
> * CPUn interrupted by NMI context, with K2.
> * They are using the same bucket, but different map_locked.

You should really put bpf@ in the CC line for bpf patches.