lkml.org 
[lkml]   [2022]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5.15 089/779] md-raid10: fix KASAN warning


On Fri, 19 Aug 2022, Pavel Machek wrote:

> Hi!
>
> > From: Mikulas Patocka <mpatocka@redhat.com>
> >
> > commit d17f744e883b2f8d13cca252d71cfe8ace346f7d upstream.
> >
> > There's a KASAN warning in raid10_remove_disk when running the lvm
> > test lvconvert-raid-reshape.sh. We fix this warning by verifying that the
> > value "number" is valid.
> >
> > BUG: KASAN: slab-out-of-bounds in raid10_remove_disk+0x61/0x2a0 [raid10]
> > Read of size 8 at addr ffff889108f3d300 by task mdX_raid10/124682
>
> Is this place for array_index_nospec?
>
> Best regards,
> Pavel

Hi

I think it is not needed - userspace code can't trigger this code path at
will.

Mikulas

\
 
 \ /
  Last update: 2022-08-20 18:06    [W:0.417 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site