aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/Context.c
diff options
context:
space:
mode:
authorVishnu DASA <[email protected]>2019-05-24 15:13:10 +0000
committerGreg Kroah-Hartman <[email protected]>2019-06-21 16:04:05 +0200
commit1c2eb5b2853c9f513690ba6b71072d8eb65da16a (patch)
treedc58a16d48db90df7f58d96b18b0850c7d2b6f9b /tools/perf/scripts/python/Perf-Trace-Util/Context.c
parent84705f9f8c64cc3d8409ac63e5dd06ed97886fb7 (diff)
VMCI: Fix integer overflow in VMCI handle arrays
The VMCI handle array has an integer overflow in vmci_handle_arr_append_entry when it tries to expand the array. This can be triggered from a guest, since the doorbell link hypercall doesn't impose a limit on the number of doorbell handles that a VM can create in the hypervisor, and these handles are stored in a handle array. In this change, we introduce a mandatory max capacity for handle arrays/lists to avoid excessive memory usage. Signed-off-by: Vishnu Dasa <[email protected]> Reviewed-by: Adit Ranadive <[email protected]> Reviewed-by: Jorgen Hansen <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/Context.c')
0 files changed, 0 insertions, 0 deletions