Jann Horn ac26d1f74c x86/fpu: Use the correct exception table macro in the XSTATE_OP wrapper
Commit

  75045f77f7a7 ("x86/extable: Introduce _ASM_EXTABLE_UA for uaccess fixups")

incorrectly replaced the fixup entry for XSTATE_OP with a user-#PF-only
fixup. XRSTOR can also raise #GP if the xstate content is invalid,
and _ASM_EXTABLE_UA doesn't expect that. Change this fixup back to
_ASM_EXTABLE so that #GP gets fixed up.

Fixes: 75045f77f7a7 ("x86/extable: Introduce _ASM_EXTABLE_UA for uaccess fixups")
Reported-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-hardening@lists.openwall.com
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20181126165957.xhsyu2dhyy45mrjo@linutronix.de
Link: https://lkml.kernel.org/r/20181127133200.38322-1-jannh@google.com
2018-11-27 17:55:45 +01:00
..
2018-11-10 13:32:14 -06:00
2018-10-31 08:54:16 -07:00
2018-11-09 06:30:44 -06:00
2018-11-10 07:07:21 -06:00
2018-10-31 15:39:25 -07:00
2018-10-31 08:54:16 -07:00
2018-11-09 06:30:44 -06:00
2018-11-09 06:30:44 -06:00
2018-11-09 06:30:44 -06:00
2018-10-31 08:54:16 -07:00
2018-11-09 06:30:44 -06:00
2018-11-03 10:47:33 -07:00
2018-11-01 17:04:07 -07:00
2018-11-09 06:30:44 -06:00
2018-10-31 08:54:16 -07:00
2018-11-09 16:31:51 -06:00
2018-11-01 11:46:27 -07:00