]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/entry/64: Ensure %ebx handling correct in xen_failsafe_callback
authorGeorge Kennedy <george.kennedy@oracle.com>
Thu, 2 Aug 2018 18:51:42 +0000 (14:51 -0400)
committerBrian Maly <brian.maly@oracle.com>
Wed, 5 Sep 2018 17:36:19 +0000 (13:36 -0400)
commit56812649ac94d2c3f4ef38c791510e9a61ebbc4b
tree6e5052f12d47c5b8fd7bcd044cf0e0ba507bc39c
parent16372685020eb880fa90ab95ef07c4cd2809774d
x86/entry/64: Ensure %ebx handling correct in xen_failsafe_callback

error_entry and error_exit communicate the user vs. kernel status of
the frame using %ebx. Make sure %ebx is set properly in
xen_failsafe_callback().

This fix is different from the one provided in the XSA to minimize
risk of a regression. This alternative fix was suggested
by Andy Lutomirski in the original patch (Commit b3681dd548d0
("x86/entry/64: Remove %ebx handling from error_entry/exit"))

Orabug: 28402927
CVE: CVE-2018-14678

This is XSA-274

Signed-off-by: George Kennedy <george.kennedy@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/kernel/entry_64.S