[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180211.223450.926436849855081876.davem@davemloft.net>
Date: Sun, 11 Feb 2018 22:34:50 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: jasowang@...hat.com
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
mst@...hat.com, ebiggers3@...il.com
Subject: Re: [PATCH net] ptr_ring: prevent integer overflow when
calculating size
From: Jason Wang <jasowang@...hat.com>
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 <ebiggers3@...il.com>
> Fixes: 6e6e41c31122 ("ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE")
> Signed-off-by: Jason Wang <jasowang@...hat.com>
Applied and queued up for -stable, thanks Jason.
Powered by blists - more mailing lists