aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLiran Alon <[email protected]>2018-11-08 00:43:06 +0200
committerPaolo Bonzini <[email protected]>2018-11-27 12:49:57 +0100
commitbcbfbd8ec21096027f1ee13ce6c185e8175166f6 (patch)
tree37f93e550fe07cf619662e165db685793e9ae347 /tools/perf/scripts/python/export-to-postgresql.py
parent7f9ad1dfa3c768d1116c2dbacd7a09f9a871534e (diff)
KVM: x86: Fix kernel info-leak in KVM_HC_CLOCK_PAIRING hypercall
kvm_pv_clock_pairing() allocates local var "struct kvm_clock_pairing clock_pairing" on stack and initializes all it's fields besides padding (clock_pairing.pad[]). Because clock_pairing var is written completely (including padding) to guest memory, failure to init struct padding results in kernel info-leak. Fix the issue by making sure to also init the padding with zeroes. Fixes: 55dd00a73a51 ("KVM: x86: add KVM_HC_CLOCK_PAIRING hypercall") Reported-by: [email protected] Reviewed-by: Mark Kanda <[email protected]> Signed-off-by: Liran Alon <[email protected]> Cc: [email protected] Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions