[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20231108071925.GB4875@lst.de>
Date: Wed, 8 Nov 2023 08:19:25 +0100
From: Christoph Hellwig <hch@....de>
To: Li Lingfeng <lilingfeng@...weicloud.com>
Cc: josef@...icpanda.com, linux-kernel@...r.kernel.org, hch@....de,
linux-block@...r.kernel.org, nbd@...er.debian.org, axboe@...nel.dk,
chaitanya.kulkarni@....com, yukuai1@...weicloud.com,
houtao1@...wei.com, yi.zhang@...wei.com, yangerkun@...wei.com,
lilingfeng3@...wei.com
Subject: Re: [PATCH v2] nbd: fix uaf in nbd_open
I don't think this is actually enough on it's own. You'll also
need to move al the teardown logic that is currently in
nbd_dev_remove. And with this you should be able to remove the
NULL check in nbd_open, and propably the nbd_index_mutex critical
section. Although that'll need a very careful audit.
Powered by blists - more mailing lists