]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/ia32/syscall: RESTORE_EXTRA_REGS when returning from syscall
authorAnkur Arora <ankur.a.arora@oracle.com>
Sat, 10 Feb 2018 03:25:21 +0000 (22:25 -0500)
committerJack Vogel <jack.vogel@oracle.com>
Mon, 26 Feb 2018 08:09:12 +0000 (00:09 -0800)
commit2110ad088232fd3c876be4c2c64df04784dd2fea
treea6408ea4bac3d1ec812c1c11f43e694e2bbac888
parent4e5d93269b9f5b6ff2d6fd1d0c34bb71c1d15378
x86/ia32/syscall: RESTORE_EXTRA_REGS when returning from syscall

EXTRA_REGS (callee saved regs) are saved on kernel stack at entry and
zero'd. Some of these registers might be potentially used in the syscall
entry path and contain kernel state; to avoid leaking this state we
restore these registers as we exit to user-space.

Orabug: 27461990
CVE: CVE-2017-5715

Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
arch/x86/ia32/ia32entry.S