|
|
9ae3a8 |
From edb9059eb8f42f892d67df324eeb0098c05d1f4a Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
Date: Tue, 28 Feb 2017 12:07:54 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 09/24] i386: kvmvapic: initialise imm32 variable
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
Message-id: <20170228120754.16073-1-pbonzini@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 74089
|
|
|
9ae3a8 |
O-Subject: [RHEL7.4 qemu-kvm PATCH] i386: kvmvapic: initialise imm32 variable
|
|
|
9ae3a8 |
Bugzilla: 1335751
|
|
|
9ae3a8 |
RH-Acked-by: David Hildenbrand <david@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
When processing Task Priorty Register(TPR) access, it could leak
|
|
|
9ae3a8 |
automatic stack variable 'imm32' in patch_instruction().
|
|
|
9ae3a8 |
Initialise the variable to avoid it.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Reported by: Donghai Zdh <donghai.zdh@alibaba-inc.com>
|
|
|
9ae3a8 |
Cc: qemu-stable@nongnu.org
|
|
|
9ae3a8 |
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
|
|
|
9ae3a8 |
Message-Id: <1460013608-16670-1-git-send-email-ppandit@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit 691a02e2ce0c413236a78dee6f2651c937b09fb0)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/i386/kvmvapic.c | 2 +-
|
|
|
9ae3a8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c
|
|
|
9ae3a8 |
index 577ae64..a5dd9dd 100644
|
|
|
9ae3a8 |
--- a/hw/i386/kvmvapic.c
|
|
|
9ae3a8 |
+++ b/hw/i386/kvmvapic.c
|
|
|
9ae3a8 |
@@ -390,7 +390,7 @@ static void patch_instruction(VAPICROMState *s, X86CPU *cpu, target_ulong ip)
|
|
|
9ae3a8 |
CPUX86State *env = &cpu->env;
|
|
|
9ae3a8 |
VAPICHandlers *handlers;
|
|
|
9ae3a8 |
uint8_t opcode[2];
|
|
|
9ae3a8 |
- uint32_t imm32;
|
|
|
9ae3a8 |
+ uint32_t imm32 = 0;
|
|
|
9ae3a8 |
target_ulong current_pc = 0;
|
|
|
9ae3a8 |
target_ulong current_cs_base = 0;
|
|
|
9ae3a8 |
int current_flags = 0;
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|