]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:50:09 +0000 (19:50 -0600)
commit1315ad70b6f21e024b42456bae2f484fca978f52
treea34a72849ccc91df971fe30123eb9b84f2e3f0db
parent22f2ce79947faa9dd762c17c457244118dd7aaee
xen/x86/vpmu: Zero struct pt_regs before calling into sample handling code

BugLink: https://bugs.launchpad.net/bugs/1836287
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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/x86/xen/pmu.c