]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Re-introduce clearing of r12-15, rbp, rbx
authorKris Van Hees <kris.van.hees@oracle.com>
Sun, 7 Jan 2018 20:18:42 +0000 (12:18 -0800)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Fri, 12 Jan 2018 18:20:13 +0000 (10:20 -0800)
commit360a97a0255cf630b93d90dd2792ace2ec57b8e6
tree07f795b4f86a88eae0af9c8b58ae50de0ab59748
parent15214960c7de9d8d8a3ee54e9bd90425c6e5a7e4
Re-introduce clearing of r12-15, rbp, rbx

Re-introduce the clearing of the extra registers (r12-r15, rbp, rbx)
upon entry into a system call.  This commit ensures that we do not
save the extra registers after they got cleared, because that causes
NULL values to get written in place of the saved values.

Orabug: 27344012
CVE: CVE-2017-5715

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
arch/x86/include/asm/calling.h
arch/x86/kernel/dtrace_syscall_stubs.S
arch/x86/kernel/entry_64.S