Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb097be7 authored by Kees Cook's avatar Kees Cook Committed by Thomas Gleixner
Browse files

x86/refcounts: Switch to UD2 for exceptions



As done in commit 3b3a371c ("x86/debug: Use UD2 for WARN()"), this
switches to UD2 from UD0 to keep disassembly readable.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20180225165056.GA11719@beast
parent f3afe530
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -17,7 +17,7 @@
#define _REFCOUNT_EXCEPTION				\
#define _REFCOUNT_EXCEPTION				\
	".pushsection .text..refcount\n"		\
	".pushsection .text..refcount\n"		\
	"111:\tlea %[counter], %%" _ASM_CX "\n"		\
	"111:\tlea %[counter], %%" _ASM_CX "\n"		\
	"112:\t" ASM_UD0 "\n"				\
	"112:\t" ASM_UD2 "\n"				\
	ASM_UNREACHABLE					\
	ASM_UNREACHABLE					\
	".popsection\n"					\
	".popsection\n"					\
	"113:\n"					\
	"113:\n"					\