summaryrefslogtreecommitdiffstats
path: root/hw/intc/apic.c
diff options
context:
space:
mode:
authorPrasad J Pandit2018-12-12 20:30:36 +0100
committerMarcel Apfelbaum2018-12-22 10:09:57 +0100
commit2c858ce5da8ae6689c75182b73bc455a291cad41 (patch)
tree102b7040178f73c37b568f19c2076d4d189ad4e8 /hw/intc/apic.c
parentpvrdma: add uar_read routine (diff)
downloadqemu-2c858ce5da8ae6689c75182b73bc455a291cad41.tar.gz
qemu-2c858ce5da8ae6689c75182b73bc455a291cad41.tar.xz
qemu-2c858ce5da8ae6689c75182b73bc455a291cad41.zip
pvrdma: check number of pages when creating rings
When creating CQ/QP rings, an object can have up to PVRDMA_MAX_FAST_REG_PAGES 8 pages. Check 'npages' parameter to avoid excessive memory allocation or a null dereference. Reported-by: Li Qiang <liq3ea@163.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'hw/intc/apic.c')
0 files changed, 0 insertions, 0 deletions