Skip to content

Commit 9e0ec6c

Browse files
KAGA-KOKOgregkh
authored andcommitted
x86/entry/32: Add missing ASM_CLAC to general_protection entry
commit 3d51507 upstream. All exception entry points must have ASM_CLAC right at the beginning. The general_protection entry is missing one. Fixes: e59d1b0 ("x86-32, smap: Add STAC/CLAC instructions to 32-bit kernel entry") Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com> Reviewed-by: Andy Lutomirski <luto@kernel.org> Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20200225220216.219537887@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6b9e27d commit 9e0ec6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/entry/entry_32.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,7 @@ ENTRY(int3)
10711071
END(int3)
10721072

10731073
ENTRY(general_protection)
1074+
ASM_CLAC
10741075
pushl $do_general_protection
10751076
jmp error_code
10761077
END(general_protection)

0 commit comments

Comments
 (0)