From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: "Denis V. Lunev" <den@openvz.org>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2] fs: fix use-after-free in fs_send_uevent_work()
Date: Mon, 30 Nov 2026 14:52:24 +0100 [thread overview]
Message-ID: <179604674474.1034346.2445642355659805491.b4-review@b4> (raw)
In-Reply-To: <20261130131952.2329425-1-den@openvz.org>
Applying with these fixes on my side:
- added: Fixes: 44897dc519b2 ("fs: Introduce fs_events_wq to use
instead ext4's rsv_conversion_wq")
On Mon, 30 Nov 2026 14:19:52 +0100, Denis V. Lunev wrote:
> fs_send_uevent() queues a work item that carries plain pointers to the
> superblock and to the filesystem kobject. Nothing keeps them alive
> until the worker runs; each filesystem is expected to flush
> fs_events_wq before it frees them.
Before 44897dc519b2 ext4 queued the event on its own
rsv_conversion_wq and dropped it once ext4_put_super() had destroyed
that queue, before the journal goes away. The check became
!fs_events_wq, which never holds after boot, so a late ERROR is
queued and outlives the sbi.
> - /* Do not forget to flush fs_events_wq before you kill sb */
No change needed, a note for later: the flushes in ext4_put_super()
and xfs_fs_put_super() are still needed, now to deliver UMOUNT.
Without them kobject_del() clears state_in_sysfs before the worker
runs and the new check drops UMOUNT silently. Worth keeping in mind
if someone wants to remove them as obsolete.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-30 13:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 13:19 Denis V. Lunev
2026-11-30 13:52 ` Konstantin Khorenko [this message]
2026-11-30 13:52 ` Konstantin Khorenko
2026-11-30 14:03 ` Konstantin Khorenko
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=179604674474.1034346.2445642355659805491.b4-review@b4 \
--to=khorenko@virtuozzo.com \
--cc=den@openvz.org \
--cc=devel@openvz.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