Re: [PATCH] Fix null pointer for incremental in mdadm

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

 



On 4/4/23 07:31, miaoguanqin wrote:
> when we excute mdadm --assemble, udev-md-raid-assembly.rules is triggered.
> Then we stop array, we found an coredump for mdadm --incremental.func
> stack are as follows:
> 
> #0  enough (level=10, raid_disks=4, layout=258, clean=1, 
>     avail=avail@entry=0x0) at util.c:555
> #1  0x0000562170c26965 in Incremental (devlist=<optimized out>, 
>     c=<optimized out>, st=0x5621729b6dc0) at Incremental.c:514
> #2  0x0000562170bfb6ff in main (argc=<optimized out>, 
>     argv=<optimized out>) at mdadm.c:1762
> 
> func enough() use array avail,avail allocate space in func count_active,
> it may not alloc space, causing a coredump.We fix this coredump.
> 
> Signed-off-by: Guanqin Miao <miaoguanqin@xxxxxxxxxx>
> Signed-off-by: lixiaokeng <lixiaokeng@xxxxxxxxxx>
> ---
>  Incremental.c | 3 +++
>  1 file changed, 3 insertions(+)

Applied!

Thanks,
Jes





[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