Skip to content

Commit cb097be

Browse files
keesKAGA-KOKO
authored andcommitted
x86/refcounts: Switch to UD2 for exceptions
As done in commit 3b3a371 ("x86/debug: Use UD2 for WARN()"), this switches to UD2 from UD0 to keep disassembly readable. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lkml.kernel.org/r/20180225165056.GA11719@beast
1 parent f3afe53 commit cb097be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/refcount.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define _REFCOUNT_EXCEPTION \
1818
".pushsection .text..refcount\n" \
1919
"111:\tlea %[counter], %%" _ASM_CX "\n" \
20-
"112:\t" ASM_UD0 "\n" \
20+
"112:\t" ASM_UD2 "\n" \
2121
ASM_UNREACHABLE \
2222
".popsection\n" \
2323
"113:\n" \

0 commit comments

Comments
 (0)