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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Sep 2018 10:06:03 +0000 (03:06 -0700)
commit5ca87a38202e6265214afbe49353a10be81a6ecc
treeddc59b2f9d235655fa8b44a59b325041d950b543
parent7eced4478f4ec6ff0a603ddfd6e24a5d3831fca7
xen/x86/vpmu: Zero struct pt_regs before calling into sample handling code

commit 70513d58751d7c6c1a0133557b13089b9f2e3e66 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/pmu.c