projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a5756
)
xen/x86/vpmu: Zero struct pt_regs before calling into sample handling code
author
Boris Ostrovsky
<boris.ostrovsky@oracle.com>
Thu, 12 Jul 2018 17:27:00 +0000
(13:27 -0400)
committer
Boris Ostrovsky
<boris.ostrovsky@oracle.com>
Wed, 19 Sep 2018 15:26:53 +0000
(11:26 -0400)
Otherwise we may leak kernel stack for events that sample user
registers.
Reported-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: stable@vger.kernel.org
arch/x86/xen/pmu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/xen/pmu.c
b/arch/x86/xen/pmu.c
index 7d00d4ad44d44d62f9a6a089a2c8d4a649e6aa08..95997e6c06960073c75b713cb2be76ec74c0886c 100644
(file)
--- a/
arch/x86/xen/pmu.c
+++ b/
arch/x86/xen/pmu.c
@@
-478,7
+478,7
@@
static void xen_convert_regs(const struct xen_pmu_regs *xen_regs,
irqreturn_t xen_pmu_irq_handler(int irq, void *dev_id)
{
int err, ret = IRQ_NONE;
- struct pt_regs regs;
+ struct pt_regs regs
= {0}
;
const struct xen_pmu_data *xenpmu_data = get_xenpmu_data();
uint8_t xenpmu_flags = get_xenpmu_flags();