Thread (5 messages) 5 messages, 4 authors, 2023-07-30

Re: [PATCH] md: fix potential OOB in multipath_remove_disk()

From: Song Liu <song@kernel.org>
Date: 2023-07-29 10:46:22
Also in: lkml

On Sat, Jul 15, 2023 at 5:45 PM Zhang Shurong [off-list ref] wrote:
在 2023年7月13日星期四 CST 上午12:50:19,Christoph Hellwig 写道:
quoted
On Thu, Jul 13, 2023 at 12:46:05AM +0800, Zhang Shurong wrote:
quoted
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?
Yes, please write a patch to delete the multipath code.

Thanks,
Song
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help