qemu-e2k/hw/net/rocker
Prasad J Pandit 8caed3d564 net: rocker: set limit to DMA buffer size
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 <psirt@huawei.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-10-26 09:57:59 +08:00
..
qmp-norocker.c
rocker_desc.c
rocker_desc.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_fp.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
rocker_fp.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_hw.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_of_dpa.c rocker: Use DIV_ROUND_UP 2016-06-07 18:19:25 +03:00
rocker_of_dpa.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_tlv.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_world.c rocker: add name field into WorldOps ale let world specify its name 2016-03-08 15:34:18 +08:00
rocker_world.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker.c net: rocker: set limit to DMA buffer size 2016-10-26 09:57:59 +08:00
rocker.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00