aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2018-12-13 01:00:36 +0530
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>2018-12-22 11:09:57 +0200
commit2c858ce5da8ae6689c75182b73bc455a291cad41 (patch)
tree102b7040178f73c37b568f19c2076d4d189ad4e8 /hw/9pfs
parent2aa86456fb938a11f2b7bd57c8643c213218681c (diff)
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/9pfs')
0 files changed, 0 insertions, 0 deletions