[lkml]   [2018]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH net] ptr_ring: prevent integer overflow when calculating size
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")
> Signed-off-by: Jason Wang <>

Applied and queued up for -stable, thanks Jason.

 \ /
  Last update: 2018-02-12 04:35    [W:0.058 / U:1.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site