aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strcpy.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-10-12 11:07:59 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2021-10-15 04:47:36 -0400
commit019057bd73d1751fdfec41e43148baf3303d98f9 (patch)
tree28dfb7d5ddd48e4d36a5a9c01fd65b3e4ff7789a /lib/test_fortify/write_overflow-strcpy.c
parent2353e593a13ba76c82921940471ce442fe498927 (diff)
KVM: SEV-ES: fix length of string I/O
The size of the data in the scratch buffer is not divided by the size of each port I/O operation, so vcpu->arch.pio.count ends up being larger than it should be by a factor of size. Cc: stable@vger.kernel.org Fixes: 7ed9abfe8e9f ("KVM: SVM: Support string IO operations for an SEV-ES guest") Acked-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions