xen/x86/vpmu: Zero struct pt_regs before calling into sample handling code
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 12 Jul 2018 17:27:00 +0000 (13:27 -0400)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 19 Sep 2018 15:26:53 +0000 (11:26 -0400)
commit70513d58751d7c6c1a0133557b13089b9f2e3e66
treeab0fe365cafdec4186d75dbee621a3dc156fa717
parent58a57569904039d9ac38c0ff2a88396a43899689
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: 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