From: Greg KH <gregkh@linuxfoundation.org>
To: Cheng Yu <serein.chengyu@huawei.com>
Cc: cve@kernel.org, linux-kernel@vger.kernel.org,
tanghui20@huawei.com, zhangqiao22@huawei.com,
huangjiale13@h-partners.com
Subject: Re: [Question] fix CVE-2022-49980 introduces deadlock in linux-5.10.y
Date: Tue, 26 Aug 2025 16:49:57 +0200 [thread overview]
Message-ID: <2025082627-sinuous-ovary-21c9@gregkh> (raw)
In-Reply-To: <20250826142418.961703-1-serein.chengyu@huawei.com>
On Tue, Aug 26, 2025 at 10:24:18PM +0800, Cheng Yu wrote:
> Hello,
> I noticed that the community has assigned CVE-2022-49980.
> I found that the issue described by this CVE also exists
> in the linux-5.10.y. Therefore, I attempted to backport
> the fix patch to the linux-5.10.y, but encountered a
> potential deadlock after applying the patch.
> The specific call path is as follows:
> usb_add_gadget [(1) mutex_lock(&udc_lock]
> -> device_add
> -> kobject_uevent
> -> uevent_ops->uevent
> -> dev->class->dev_uevent
> -> usb_udc_uevent [(2) mutex_lock(&udc_lock)]
> This results in repeated acquisition of udc_lock, causing
> a deadlock.
> Does the community have any suggestions on how to resolve
> this new deadlock issue introduced by the CVE fix?
As you are making a business decision to stay on a very old kernel
version, I think that business decision includes doing the development
of fixes for it on your own :)
Seriously, the community doesn't do much, if any, work on older kernels
like this, especially ones as old as 5.10.y, as we do not even have
systems that run that kernel anymore.
Why not just move to a newer kernel version instead? What's preventing
that from happening today? You are going to have to do it soon anyway,
why not use this as a prompt to do so?
thanks,
greg k-h
prev parent reply other threads:[~2025-08-26 14:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2025061820-CVE-2022-49980-982c@gregkh>
2025-08-26 14:24 ` [Question] fix CVE-2022-49980 introduces deadlock in linux-5.10.y Cheng Yu
2025-08-26 14:49 ` Greg KH [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=2025082627-sinuous-ovary-21c9@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=cve@kernel.org \
--cc=huangjiale13@h-partners.com \
--cc=linux-kernel@vger.kernel.org \
--cc=serein.chengyu@huawei.com \
--cc=tanghui20@huawei.com \
--cc=zhangqiao22@huawei.com \
/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