From: Bilal Hashim <AeeSec@126.com>
To: Damien Le Moal <dlemoal@kernel.org>,
Christoph Hellwig <hch@lst.de>, Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] zloop: fix double-free and use-after-free in zloop_ctl_add()
Date: Wed, 02 Dec 2026 02:55:21 +0800 [thread overview]
Message-ID: <179615132146.19728.10165410146895918485@126.com> (raw)
In-Reply-To: <179614753959.27176.11073306063101756949@126.com>
Please disregard v1.
On closer verification, disk_release() only invokes fops->free_disk()
when GD_ADDED is set (at the end of add_disk_final()). Therefore, on
blk_revalidate_disk_zones() or add_disk() failure, put_disk() does not
call zloop_free_disk(), the fall-through cleanup in zloop_ctl_add() is
required, and jumping to out in v1 would leak resources.
The pr_info() read use-after-free after transitioning zlo->state to
Zlo_live is still real. I will send a clean v2 in a new thread that
only moves the pr_info() calls before setting Zlo_live.
Sorry for the noise.
Best regards,
Bilal
prev parent reply other threads:[~2026-12-01 18:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 17:52 Bilal Hashim
2026-12-01 18:55 ` Bilal Hashim [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=179615132146.19728.10165410146895918485@126.com \
--to=aeesec@126.com \
--cc=axboe@kernel.dk \
--cc=dlemoal@kernel.org \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®