Skip to content

Commit 3fb9268

Browse files
committed
Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 asm updates from Ingo Molnar: "The main changes in this cycle were: - unwinder fixes and enhancements - improve ftrace interaction with the unwinder - optimize the code footprint of WARN() and related debugging constructs - ... plus misc updates, cleanups and fixes" * 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (24 commits) x86/unwind: Dump all stacks in unwind_dump() x86/unwind: Silence more entry-code related warnings x86/ftrace: Fix ebp in ftrace_regs_caller that screws up unwinder x86/unwind: Remove unused 'sp' parameter in unwind_dump() x86/unwind: Prepend hex mask value with '0x' in unwind_dump() x86/unwind: Properly zero-pad 32-bit values in unwind_dump() x86/unwind: Ensure stack pointer is aligned debug: Avoid setting BUGFLAG_WARNING twice x86/unwind: Silence entry-related warnings x86/unwind: Read stack return address in update_stack_state() x86/unwind: Move common code into update_stack_state() debug: Fix __bug_table[] in arch linker scripts debug: Add _ONCE() logic to report_bug() x86/debug: Define BUG() again for !CONFIG_BUG x86/debug: Implement __WARN() using UD0 x86/ftrace: Use Makefile logic instead of #ifdef for compiling ftrace_*.o x86/ftrace: Add -mfentry support to x86_32 with DYNAMIC_FTRACE set x86/ftrace: Clean up ftrace_regs_caller x86/ftrace: Add stack frame pointer to ftrace_caller x86/ftrace: Move the ftrace specific code out of entry_32.S ...
2 parents 12ca7c8 + 262fa73 commit 3fb9268

38 files changed

Lines changed: 591 additions & 401 deletions

File tree

‎arch/arm/kernel/vmlinux-xip.lds.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ SECTIONS
242242
}
243243
_edata_loc = __data_loc + SIZEOF(.data);
244244

245+
BUG_TABLE
246+
245247
#ifdef CONFIG_HAVE_TCM
246248
/*
247249
* We align everything to a page boundary so we can

‎arch/arm/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ SECTIONS
262262
}
263263
_edata_loc = __data_loc + SIZEOF(.data);
264264

265+
BUG_TABLE
266+
265267
#ifdef CONFIG_HAVE_TCM
266268
/*
267269
* We align everything to a page boundary so we can

‎arch/arm64/include/asm/bug.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ _BUGVERBOSE_LOCATION(__FILE__, __LINE__) \
5555
unreachable(); \
5656
} while (0)
5757

58-
#define __WARN_TAINT(taint) _BUG_FLAGS(BUGFLAG_TAINT(taint))
58+
#define __WARN_FLAGS(flags) _BUG_FLAGS(BUGFLAG_WARNING|(flags))
5959

6060
#endif /* ! CONFIG_GENERIC_BUG */
6161

‎arch/blackfin/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ SECTIONS
115115
__data_lma = LOADADDR(.data);
116116
__data_len = SIZEOF(.data);
117117

118+
BUG_TABLE
119+
118120
/* The init section should be last, so when we free it, it goes into
119121
* the general memory pool, and (hopefully) will decrease fragmentation
120122
* a tiny bit. The init section has a _requirement_ that it be

‎arch/c6x/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ SECTIONS
128128
. = ALIGN(8);
129129
}
130130

131+
BUG_TABLE
132+
131133
_edata = .;
132134

133135
__bss_start = .;

‎arch/cris/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ SECTIONS
6868
__edata = . ; /* End of data section. */
6969
_edata = . ;
7070

71+
BUG_TABLE
72+
7173
INIT_TASK_DATA_SECTION(PAGE_SIZE)
7274

7375
. = ALIGN(PAGE_SIZE); /* Init code and data. */

‎arch/frv/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ SECTIONS
102102

103103
_edata = .; /* End of data section */
104104

105+
BUG_TABLE
106+
105107
/* GP section */
106108
. = ALIGN(L1_CACHE_BYTES);
107109
_gp = . + 2048;

‎arch/ia64/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ SECTIONS {
192192
CONSTRUCTORS
193193
}
194194

195+
BUG_TABLE
196+
195197
. = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
196198
.got : AT(ADDR(.got) - LOAD_OFFSET) {
197199
*(.got.plt)

‎arch/mips/kernel/vmlinux.lds.S‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ SECTIONS
9797
DATA_DATA
9898
CONSTRUCTORS
9999
}
100+
BUG_TABLE
100101
_gp = . + 0x8000;
101102
.lit8 : {
102103
*(.lit8)

‎arch/parisc/include/asm/bug.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#endif
4747

4848
#ifdef CONFIG_DEBUG_BUGVERBOSE
49-
#define __WARN_TAINT(taint) \
49+
#define __WARN_FLAGS(flags) \
5050
do { \
5151
asm volatile("\n" \
5252
"1:\t" PARISC_BUG_BREAK_ASM "\n" \
@@ -56,11 +56,11 @@
5656
"\t.org 2b+%c3\n" \
5757
"\t.popsection" \
5858
: : "i" (__FILE__), "i" (__LINE__), \
59-
"i" (BUGFLAG_TAINT(taint)), \
59+
"i" (BUGFLAG_WARNING|(flags)), \
6060
"i" (sizeof(struct bug_entry)) ); \
6161
} while(0)
6262
#else
63-
#define __WARN_TAINT(taint) \
63+
#define __WARN_FLAGS(flags) \
6464
do { \
6565
asm volatile("\n" \
6666
"1:\t" PARISC_BUG_BREAK_ASM "\n" \
@@ -69,7 +69,7 @@
6969
"\t.short %c0\n" \
7070
"\t.org 2b+%c1\n" \
7171
"\t.popsection" \
72-
: : "i" (BUGFLAG_TAINT(taint)), \
72+
: : "i" (BUGFLAG_WARNING|(flags)), \
7373
"i" (sizeof(struct bug_entry)) ); \
7474
} while(0)
7575
#endif

0 commit comments

Comments
 (0)