diff options
author | Kees Cook <keescook@chromium.org> | 2018-02-25 11:50:56 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-02-28 09:18:40 -0500 |
commit | cb097be7036aa325adba33d8c41fe77b980b0e77 (patch) | |
tree | b6dc5b37447e0f04c2f100e6e0d43e3506710ee2 | |
parent | f3afe530d644488a074291da04a69a296ab63046 (diff) |
x86/refcounts: Switch to UD2 for exceptions
As done in commit 3b3a371cc9bc ("x86/debug: Use UD2 for WARN()"), this
switches to UD2 from UD0 to keep disassembly readable.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20180225165056.GA11719@beast
-rw-r--r-- | arch/x86/include/asm/refcount.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/refcount.h b/arch/x86/include/asm/refcount.h index d65171120e90..4cf11d88d3b3 100644 --- a/arch/x86/include/asm/refcount.h +++ b/arch/x86/include/asm/refcount.h | |||
@@ -17,7 +17,7 @@ | |||
17 | #define _REFCOUNT_EXCEPTION \ | 17 | #define _REFCOUNT_EXCEPTION \ |
18 | ".pushsection .text..refcount\n" \ | 18 | ".pushsection .text..refcount\n" \ |
19 | "111:\tlea %[counter], %%" _ASM_CX "\n" \ | 19 | "111:\tlea %[counter], %%" _ASM_CX "\n" \ |
20 | "112:\t" ASM_UD0 "\n" \ | 20 | "112:\t" ASM_UD2 "\n" \ |
21 | ASM_UNREACHABLE \ | 21 | ASM_UNREACHABLE \ |
22 | ".popsection\n" \ | 22 | ".popsection\n" \ |
23 | "113:\n" \ | 23 | "113:\n" \ |