On 2016年10月12日 17:52, Jiri Pirko wrote:
Wed, Oct 12, 2016 at 11:10:55AM CEST, ppan...@redhat.com wrote:
From: Prasad J Pandit <p...@fedoraproject.org>

Rocker network switch emulator has test registers to help debug
DMA operations. While testing host DMA access, a buffer address
is written to register 'TEST_DMA_ADDR' and its size is written to
register 'TEST_DMA_SIZE'. When performing TEST_DMA_CTRL_INVERT
test, if DMA buffer size was greater than 'INT_MAX', it leads to
an invalid buffer access. Limit the DMA buffer size to avoid it.

Reported-by: Huawei PSIRT <ps...@huawei.com>
Signed-off-by: Prasad J Pandit <p...@fedoraproject.org>
Reviewed-by: Jiri Pirko <j...@mellanox.com>

Applied, thanks.

Reply via email to