Re: [PATCH] mm: cma: Fix incorrect type conversion for size during dma allocation

From: Greg Kroah-Hartman
Date: Sun Oct 18 2015 - 01:11:03 EST


On Wed, Oct 14, 2015 at 01:23:51PM -0700, Rohit Vaswani wrote:
> This was found during userspace fuzzing test when a large size
> dma cma allocation is made by driver(like ion) through userspace.
>
> show_stack+0x10/0x1c
> dump_stack+0x74/0xc8
> kasan_report_error+0x2b0/0x408
> kasan_report+0x34/0x40
> __asan_storeN+0x15c/0x168
> memset+0x20/0x44
> __dma_alloc_coherent+0x114/0x18c
>
> Signed-off-by: Rohit Vaswani <rvaswani@xxxxxxxxxxxxxx>

Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/