]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/ia32: Restore r8 correctly in 32bit SYSCALL instruction entry.
authorGayatri Vasudevan <gayatri.vasudevan@oracle.com>
Mon, 17 Sep 2018 18:03:30 +0000 (11:03 -0700)
committerBrian Maly <brian.maly@oracle.com>
Mon, 8 Oct 2018 16:09:41 +0000 (12:09 -0400)
commitaf7594868ae722ef5abdfba2aa61fbd02aa2e67a
tree753cac164a943b55051bcc034f33b412be8a1117
parent5ad100b868774b8e1ab2158ba0c690f75bf42b1b
x86/ia32: Restore r8 correctly in 32bit SYSCALL instruction entry.

This commit fixes a bug in a previous commit
8e69671028ac ("x86/ia32: Adds code hygiene for 32bit SYSCALL instruction
entry.")

SAVE_EXTRA_REGS does not save the r8 register. r8 is rather saved in
pt_regs->sp before it is cleared. So, retrieve r8 from pt_regs->sp.

Orabug: 28529706

Signed-off-by: Gayatri Vasudevan <gayatri.vasudevan@oracle.com>
Reviewed-by: Bert Barbe <bert.barbe@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/ia32/ia32entry.S