From: Jing Wu <realwujing@gmail.com>
To: jirislaby@kernel.org, gregkh@linuxfoundation.org,
avorontsov@ru.mvista.com, alan@redhat.com
Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
wangzhaolong@fnnas.com, yuanql9@chinatelecom.cn
Subject: Re: [PATCH v6] serial: 8250: fix use-after-free in IRQ chain handling
Date: Wed, 8 Jul 2026 15:11:38 +0800 [thread overview]
Message-ID: <20260708071138.3698581-1-realwujing@gmail.com> (raw)
In-Reply-To: <0ede8499-abe2-41d3-bb0c-095c02c5b699@kernel.org>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1681 bytes --]
From: Qiliang Yuan <realwujing@gmail.com>
On Wed, Jul 08, 2026 at 08:03:55AM +0200, Jiri Slaby wrote:
> Ah, now I see you are fixing the same thing as:
> https://lore.kernel.org/all/20260708031115.3757150-1-wangzhaolong@fnnas.com/
>
> I did not look up who of you was first.
>
> Looks like he reported and apparently tries to fix that too ;). You were
> obviously CCed, talk to them and don't send two patches for the same issue.
Wang reported Bugzilla #221579 and sent an initial patch on May 27.
I sent my v1 the next day (May 28), and have iterated with Wang's review
input across v1..v6 — the timeline shows Wang's v2 (Jul 8) was written
after and based on the direction of our v5/v6 series:
v1: May 28, Qiliang [PATCH] serial: 8250: fix use-after-free in IRQ chain handling
v3: May 29, Wang confirmed "v3 fixes the Bugzilla reproducer on my setup."
v5: Jun 24, Qiliang [PATCH v5] (with manual locking)
v6: Jul 7, Qiliang [PATCH v6] (back to guard style)
v2: Jul 8, Wang [PATCH v2] (same lock-move skeleton as v5/v6)
Wang's v2 has the same lock-move skeleton but is missing three pieces
we've added through review:
- lockdep_assert_held() and __must_hold() in serial_get_or_create_irq_info()
- hash_mutex covering the request_irq() error cleanup (use-after-free fix)
- addressing both the use-after-free and "Unbalanced enable" races
I'll add Co-developed-by: Wang Zhaolong to the next revision.
> hash_mutex is no longer an appropriate name for this lock.
Ack, will rename in v7.
> Unrelated change.
> Unrelated and mainly unneeded change.
Ack, will drop both the blank-line removal and the return 0 change.
Thanks,
Qiliang
next prev parent reply other threads:[~2026-07-08 7:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 14:06 [PATCH v6] serial: 8250: fix use-after-free in IRQ chain handling Qiliang Yuan
2026-07-08 6:03 ` Jiri Slaby
2026-07-08 6:34 ` Jing Wu
2026-07-08 7:11 ` Jing Wu [this message]
2026-07-08 7:33 ` Wang Zhaolong
2026-07-08 7:57 ` Jing Wu
2026-07-08 8:20 ` Wang Zhaolong
2026-07-08 7:39 ` Jing Wu
2026-07-08 7:53 ` Wang Zhaolong
2026-07-08 8:08 ` Jing Wu
2026-07-08 8:32 ` Wang Zhaolong
[not found] ` <5cf37150673ea4d5c28f94db91cdf68504b50522.9be37cbd.7a04.4d7e.b20e.d3f90675af6e@feishu.cn>
2026-07-10 12:17 ` Greg KH
2026-07-10 13:15 ` Wang Zhaolong
2026-07-10 13:28 ` Greg KH
2026-07-08 8:43 ` Jing Wu
2026-07-08 8:45 ` Jing Wu
-- strict thread matches above, loose matches on Subject: below --
2026-05-27 9:20 [PATCH] serial: 8250: serialize shared IRQ startup Wang Zhaolong
2026-07-08 3:11 ` [PATCH v2] serial: 8250: fix shared IRQ startup race causing IRQ warning Wang Zhaolong
2026-07-08 7:23 ` [PATCH v3] " Wang Zhaolong
2026-07-08 8:47 ` [PATCH v6] serial: 8250: fix use-after-free in IRQ chain handling Jing Wu
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=20260708071138.3698581-1-realwujing@gmail.com \
--to=realwujing@gmail.com \
--cc=alan@redhat.com \
--cc=avorontsov@ru.mvista.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=wangzhaolong@fnnas.com \
--cc=yuanql9@chinatelecom.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.