[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<168803282125.4865.3870530612120862542.git-patchwork-notify@kernel.org>
Date: Thu, 29 Jun 2023 10:00:21 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Chengfeng Ye <dg573847474@...il.com>
Cc: marcelo.leitner@...il.com, lucien.xin@...il.com, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
linux-sctp@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sctp: fix potential deadlock on &net->sctp.addr_wq_lock
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@...hat.com>:
On Tue, 27 Jun 2023 12:03:40 +0000 you wrote:
> As &net->sctp.addr_wq_lock is also acquired by the timer
> sctp_addr_wq_timeout_handler() in protocal.c, the same lock acquisition
> at sctp_auto_asconf_init() seems should disable irq since it is called
> from sctp_accept() under process context.
>
> Possible deadlock scenario:
> sctp_accept()
> -> sctp_sock_migrate()
> -> sctp_auto_asconf_init()
> -> spin_lock(&net->sctp.addr_wq_lock)
> <timer interrupt>
> -> sctp_addr_wq_timeout_handler()
> -> spin_lock_bh(&net->sctp.addr_wq_lock); (deadlock here)
>
> [...]
Here is the summary with links:
- sctp: fix potential deadlock on &net->sctp.addr_wq_lock
https://git.kernel.org/netdev/net/c/6feb37b3b06e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists