summaryrefslogtreecommitdiffstats
path: root/scripts/modules
diff options
context:
space:
mode:
authorPrasad J Pandit2016-10-12 11:10:55 +0200
committerJason Wang2016-10-26 03:57:59 +0200
commit8caed3d564672e8bc6d2e4c6a35228afd01f4723 (patch)
tree5e8887f57d22e9e07b0982e018d51b6380f977a6 /scripts/modules
parentnet: eepro100: fix memory leak in device uninit (diff)
downloadqemu-8caed3d564672e8bc6d2e4c6a35228afd01f4723.tar.gz
qemu-8caed3d564672e8bc6d2e4c6a35228afd01f4723.tar.xz
qemu-8caed3d564672e8bc6d2e4c6a35228afd01f4723.zip
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>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions