RE: [PATCH v1] dmaengine: imx-sdma: fix kernel hangs with SLUB slab allocator

2019-10-14 Thread Robin Gong
On 2019-10-14 Vinod Koul wrote: > On 14-10-19, 13:32, Vinod Koul wrote: > > On 24-09-19, 09:49, Robin Gong wrote: > > > Illegal memory will be touch if SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V3 > > > (41) exceed the size of structure sdma_script_start_addrs(40), thus > > > cause memory corrupt such as slob

Re: [PATCH v1] dmaengine: imx-sdma: fix kernel hangs with SLUB slab allocator

2019-10-14 Thread Vinod Koul
On 14-10-19, 13:32, Vinod Koul wrote: > On 24-09-19, 09:49, Robin Gong wrote: > > Illegal memory will be touch if SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V3 > > (41) exceed the size of structure sdma_script_start_addrs(40), > > thus cause memory corrupt such as slob block header so that kernel > > trap into w

Re: [PATCH v1] dmaengine: imx-sdma: fix kernel hangs with SLUB slab allocator

2019-10-14 Thread Vinod Koul
On 24-09-19, 09:49, Robin Gong wrote: > Illegal memory will be touch if SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V3 > (41) exceed the size of structure sdma_script_start_addrs(40), > thus cause memory corrupt such as slob block header so that kernel > trap into while() loop forever in slob_free(). Please refer

[PATCH v1] dmaengine: imx-sdma: fix kernel hangs with SLUB slab allocator

2019-09-24 Thread Robin Gong
Illegal memory will be touch if SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V3 (41) exceed the size of structure sdma_script_start_addrs(40), thus cause memory corrupt such as slob block header so that kernel trap into while() loop forever in slob_free(). Please refer to below code piece in imx-sdma.c: for (i = 0