Re: [PATCH V4 2/2] ptr_ring: try vmalloc() when kmalloc() fails

From: David Miller
Date: Fri Feb 09 2018 - 14:29:36 EST


From: Jason Wang <jasowang@xxxxxxxxxx>
Date: Fri, 9 Feb 2018 17:45:50 +0800

> This patch switch to use kvmalloc_array() for using a vmalloc()
> fallback to help in case kmalloc() fails.
>
> Reported-by: syzbot+e4d4f9ddd4295539735d@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: 2e0ab8ca83c12 ("ptr_ring: array based FIFO for pointers")
> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>

Applied.