[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_0EDE0D522DF8161358B80786820BAAA5C406@qq.com>
Date: Sat, 15 Jul 2023 17:44:53 +0800
From: Zhang Shurong <zhang_shurong@...mail.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: song@...nel.org, linux-raid@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] md: fix potential OOB in multipath_remove_disk()
在 2023年7月13日星期四 CST 上午12:50:19,Christoph Hellwig 写道:
> On Thu, Jul 13, 2023 at 12:46:05AM +0800, Zhang Shurong wrote:
> > If rddev->raid_disk is greater than mddev->raid_disks, there will be
> > an out-of-bounds in multipath_remove_disk. We have already found
> > similar reports as follows:
> >
> > 1) commit d17f744e883b ("md-raid10: fix KASAN warning")
> > 2) commit 1ebc2cec0b7d ("dm raid: fix KASAN warning in raid5_remove_disk")
> >
> > Fix this bug by checking whether the "number" variable is
> > valid.
>
> I think it might just be time to finally dropped the deprecated md
> multipath code instead..
Should I write another patch to delete them?
Powered by blists - more mailing lists