Re: [PATCH V4 1/2] ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE

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


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

> To avoid slab to warn about exceeded size, fail early if queue
> occupies more than KMALLOC_MAX_SIZE.
>
> Reported-by: syzbot+e4d4f9ddd4295539735d@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: 2e0ab8ca83c12 ("ptr_ring: array based FIFO for pointers")
> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>

Applied.