diff options
| -rw-r--r-- | arch/x86/entry/entry_64.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index 40e9933a2d33..84263c79a119 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S | |||
| @@ -620,7 +620,7 @@ GLOBAL(retint_user) | |||
| 620 | GLOBAL(swapgs_restore_regs_and_return_to_usermode) | 620 | GLOBAL(swapgs_restore_regs_and_return_to_usermode) |
| 621 | #ifdef CONFIG_DEBUG_ENTRY | 621 | #ifdef CONFIG_DEBUG_ENTRY |
| 622 | /* Assert that pt_regs indicates user mode. */ | 622 | /* Assert that pt_regs indicates user mode. */ |
| 623 | testl $3, CS(%rsp) | 623 | testb $3, CS(%rsp) |
| 624 | jnz 1f | 624 | jnz 1f |
| 625 | ud2 | 625 | ud2 |
| 626 | 1: | 626 | 1: |
| @@ -653,7 +653,7 @@ retint_kernel: | |||
| 653 | GLOBAL(restore_regs_and_return_to_kernel) | 653 | GLOBAL(restore_regs_and_return_to_kernel) |
| 654 | #ifdef CONFIG_DEBUG_ENTRY | 654 | #ifdef CONFIG_DEBUG_ENTRY |
| 655 | /* Assert that pt_regs indicates kernel mode. */ | 655 | /* Assert that pt_regs indicates kernel mode. */ |
| 656 | testl $3, CS(%rsp) | 656 | testb $3, CS(%rsp) |
| 657 | jz 1f | 657 | jz 1f |
| 658 | ud2 | 658 | ud2 |
| 659 | 1: | 659 | 1: |
