Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70513d58 authored by Boris Ostrovsky's avatar Boris Ostrovsky
Browse files

xen/x86/vpmu: Zero struct pt_regs before calling into sample handling code



Otherwise we may leak kernel stack for events that sample user
registers.

Reported-by: default avatarMark Rutland <mark.rutland@arm.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: stable@vger.kernel.org
parent 58a57569
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();