From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Johan Hovold <johan@kernel.org>
Cc: stable@vger.kernel.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, Peter Chen <peter.chen@kernel.org>
Subject: Re: [PATCH stable-4.9] USB: chipidea: fix interrupt deadlock
Date: Mon, 15 Nov 2021 13:26:14 +0100 [thread overview]
Message-ID: <YZJR5p2Zu39sdkap@kroah.com> (raw)
In-Reply-To: <20211115080043.23894-1-johan@kernel.org>
On Mon, Nov 15, 2021 at 09:00:43AM +0100, Johan Hovold wrote:
> commit 9aaa81c3366e8393a62374e3a1c67c69edc07b8a upstream.
>
> Chipidea core was calling the interrupt handler from non-IRQ context
> with interrupts enabled, something which can lead to a deadlock if
> there's an actual interrupt trying to take a lock that's already held
> (e.g. the controller lock in udc_irq()).
>
> Add a wrapper that can be used to fake interrupts instead of calling the
> handler directly.
>
> Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect")
> Fixes: 876d4e1e8298 ("usb: chipidea: core: add wakeup support for extcon")
> Cc: Peter Chen <peter.chen@kernel.org>
> Cc: stable@vger.kernel.org # 4.4
> Signed-off-by: Johan Hovold <johan@kernel.org>
> Link: https://lore.kernel.org/r/20211021083447.20078-1-johan@kernel.org
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> [ johan: backport to 4.9; adjust context ]
> Signed-off-by: Johan Hovold <johan@kernel.org>
> ---
>
> This one should apply to 4.4 as well.
All now queued up, thanks.
greg k-h
prev parent reply other threads:[~2021-11-15 12:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-15 8:00 [PATCH stable-4.9] USB: chipidea: fix interrupt deadlock Johan Hovold
2021-11-15 12:26 ` Greg Kroah-Hartman [this message]
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=YZJR5p2Zu39sdkap@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=peter.chen@kernel.org \
--cc=stable@vger.kernel.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox