projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3afe53
)
x86/refcounts: Switch to UD2 for exceptions
author
Kees Cook
<keescook@chromium.org>
Sun, 25 Feb 2018 16:50:56 +0000
(08:50 -0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Wed, 28 Feb 2018 14:18:40 +0000
(15:18 +0100)
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
arch/x86/include/asm/refcount.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/refcount.h
b/arch/x86/include/asm/refcount.h
index
d651711
..
4cf11d8
100644
(file)
--- a/
arch/x86/include/asm/refcount.h
+++ b/
arch/x86/include/asm/refcount.h
@@
-17,7
+17,7
@@
#define _REFCOUNT_EXCEPTION \
".pushsection .text..refcount\n" \
"111:\tlea %[counter], %%" _ASM_CX "\n" \
- "112:\t" ASM_UD
0
"\n" \
+ "112:\t" ASM_UD
2
"\n" \
ASM_UNREACHABLE \
".popsection\n" \
"113:\n" \