From: Jason Wang
Date: Sun, 11 Feb 2018 11:28:12 +0800
> Switch to use dividing to prevent integer overflow when size is too
> big to calculate allocation size properly.
>
> Reported-by: Eric Biggers
> Fixes: 6e6e41c31122 ("ptr_ring: fail early if queue occupies more than
> KMALLOC_MAX_SIZE")
On Sun, Feb 11, 2018 at 11:28:12AM +0800, Jason Wang wrote:
> Switch to use dividing to prevent integer overflow when size is too
> big to calculate allocation size properly.
>
> Reported-by: Eric Biggers
> Fixes: 6e6e41c31122 ("ptr_ring: fail early if queue occupies more than
> KMALLOC_MAX_SIZE
Switch to use dividing to prevent integer overflow when size is too
big to calculate allocation size properly.
Reported-by: Eric Biggers
Fixes: 6e6e41c31122 ("ptr_ring: fail early if queue occupies more than
KMALLOC_MAX_SIZE")
Signed-off-by: Jason Wang
---
include/linux/ptr_ring.h | 2 +-
1 fi