]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
x86/syscall: Clear unused extra registers on 32-bit compatible syscall entrance
authorTim Chen <tim.c.chen@linux.intel.com>
Sat, 16 Sep 2017 02:41:24 +0000 (19:41 -0700)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Thu, 11 Jan 2018 20:35:01 +0000 (18:35 -0200)
commit725ad2ef81ccceb3e31a7263faae2059d05e2c48
tree5993bd0f39cfc9aa830d2533ec881776805329b1
parent7b5ea16f42b5e4860cf9033897bcdfa3e1209033
x86/syscall: Clear unused extra registers on 32-bit compatible syscall entrance

CVE-2017-5753
CVE-2017-5715

To prevent the unused registers %r8-%r15, from being used speculatively,
we clear them upon syscall entrance for code hygiene in 32 bit compatible
mode.

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/x86/entry/calling.h
arch/x86/entry/entry_64_compat.S