Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Loic Poulain <loic.poulain@linaro.org>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
ryazanov.s.a@gmail.com, stable@vger.kernel.org
Subject: Re: [PATCH net-next] net: wwan: mhi_wwan_ctrl: Fix possible deadlock
Date: Fri, 6 Aug 2021 15:47:21 -0700 [thread overview]
Message-ID: <20210806154721.0333f733@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> (raw)
In-Reply-To: <1628246109-27425-1-git-send-email-loic.poulain@linaro.org>
On Fri, 6 Aug 2021 12:35:09 +0200 Loic Poulain wrote:
> Lockdep detected possible interrupt unsafe locking scenario:
>
> CPU0 CPU1
> ---- ----
> lock(&mhiwwan->rx_lock);
> local_irq_disable();
> lock(&mhi_cntrl->pm_lock);
> lock(&mhiwwan->rx_lock);
> <Interrupt>
> lock(&mhi_cntrl->pm_lock);
>
> *** DEADLOCK ***
>
> To prevent this we need to disable the soft-interrupts when taking
> the rx_lock.
>
> Cc: stable@vger.kernel.org
> Fixes: fa588eba632d ("net: Add Qcom WWAN control driver")
> Reported-by: Thomas Perrot <thomas.perrot@bootlin.com>
> Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
This is for net, right? Despite it's subject annotation?
next prev parent reply other threads:[~2021-08-06 22:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-06 10:35 Loic Poulain
2021-08-06 10:38 ` Sergey Ryazanov
2021-08-06 22:47 ` Jakub Kicinski [this message]
2021-08-07 8:40 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210806154721.0333f733@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=loic.poulain@linaro.org \
--cc=netdev@vger.kernel.org \
--cc=ryazanov.s.a@gmail.com \
--cc=stable@vger.kernel.org \
--subject='Re: [PATCH net-next] net: wwan: mhi_wwan_ctrl: Fix possible deadlock' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).