Re: [PATCH v2] md: avoid invalid memory access for array sb->dev_roles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 30, 2019 at 3:29 AM Yufen Yu <yuyufen@xxxxxxxxxx> wrote:
>
> we need to gurantee 'desc_nr' valid before access array
> of sb->dev_roles.
>
> In addition, we should avoid .load_super always return '0'
> when level is LEVEL_MULTIPATH, which is not expected.
>
> Reported-by: coverity-bot <keescook+coverity-bot@xxxxxxxxxxxx>
> Addresses-Coverity-ID: 1487373 ("Memory - illegal accesses")
> Fixes: 6a5cb53aaa4e ("md: no longer compare spare disk superblock events in super_load")
> Signed-off-by: Yufen Yu <yuyufen@xxxxxxxxxx>

Applied to md-next. Thanks for the fix!

Song



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux