mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
![Jeff Dike](/assets/img/avatar_default.png)
Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Prevent the kernel from oopsing during the extable sorting, as it can do now, because the extable is in the readonly section of the binary. Jeff says: The exception table turned RO in 2.6.11-rc3-mm1 for some reason. Moving it causes it to land in the writable data section of the binary. Paolo says: This patch fixes a oops on startup, which can be easily triggered by compiling with CONFIG_MODE_TT disabled, and STATIC_LINK either disabled or enabled. The resulting kernel will always Oops on startup, after printing this simple output: I've verified, by binary search on the BitKeeper repository (synced up as of 2.6.12-rc2), starting from the range 2.6.11-2.6.12-rc1, that this bug shows up on BitKeeper revisions in the range [@1.1994.11.168,+inf), i.e. starting from this: [PATCH] lib/sort: Replace insertion sort in exception tables Since UML does not use the exception table, it's likely that insertion sort didn't happen to write anything on the table. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
103 lines
2.2 KiB
ArmAsm
103 lines
2.2 KiB
ArmAsm
#include <asm-generic/vmlinux.lds.h>
|
|
|
|
.fini : { *(.fini) } =0x9090
|
|
_etext = .;
|
|
PROVIDE (etext = .);
|
|
|
|
. = ALIGN(4096);
|
|
_sdata = .;
|
|
PROVIDE (sdata = .);
|
|
|
|
RODATA
|
|
|
|
.unprotected : { *(.unprotected) }
|
|
. = ALIGN(4096);
|
|
PROVIDE (_unprotected_end = .);
|
|
|
|
. = ALIGN(4096);
|
|
__start___ex_table = .;
|
|
__ex_table : { *(__ex_table) }
|
|
__stop___ex_table = .;
|
|
|
|
__uml_setup_start = .;
|
|
.uml.setup.init : { *(.uml.setup.init) }
|
|
__uml_setup_end = .;
|
|
|
|
__uml_help_start = .;
|
|
.uml.help.init : { *(.uml.help.init) }
|
|
__uml_help_end = .;
|
|
|
|
__uml_postsetup_start = .;
|
|
.uml.postsetup.init : { *(.uml.postsetup.init) }
|
|
__uml_postsetup_end = .;
|
|
|
|
__setup_start = .;
|
|
.init.setup : { *(.init.setup) }
|
|
__setup_end = .;
|
|
|
|
. = ALIGN(32);
|
|
__per_cpu_start = . ;
|
|
.data.percpu : { *(.data.percpu) }
|
|
__per_cpu_end = . ;
|
|
|
|
__initcall_start = .;
|
|
.initcall.init : {
|
|
*(.initcall1.init)
|
|
*(.initcall2.init)
|
|
*(.initcall3.init)
|
|
*(.initcall4.init)
|
|
*(.initcall5.init)
|
|
*(.initcall6.init)
|
|
*(.initcall7.init)
|
|
}
|
|
__initcall_end = .;
|
|
|
|
__con_initcall_start = .;
|
|
.con_initcall.init : { *(.con_initcall.init) }
|
|
__con_initcall_end = .;
|
|
|
|
__uml_initcall_start = .;
|
|
.uml.initcall.init : { *(.uml.initcall.init) }
|
|
__uml_initcall_end = .;
|
|
__init_end = .;
|
|
|
|
SECURITY_INIT
|
|
|
|
__exitcall_begin = .;
|
|
.exitcall : { *(.exitcall.exit) }
|
|
__exitcall_end = .;
|
|
|
|
__uml_exitcall_begin = .;
|
|
.uml.exitcall : { *(.uml.exitcall.exit) }
|
|
__uml_exitcall_end = .;
|
|
|
|
. = ALIGN(4);
|
|
__alt_instructions = .;
|
|
.altinstructions : { *(.altinstructions) }
|
|
__alt_instructions_end = .;
|
|
.altinstr_replacement : { *(.altinstr_replacement) }
|
|
/* .exit.text is discard at runtime, not link time, to deal with references
|
|
from .altinstructions and .eh_frame */
|
|
.exit.text : { *(.exit.text) }
|
|
.exit.data : { *(.exit.data) }
|
|
|
|
__preinit_array_start = .;
|
|
.preinit_array : { *(.preinit_array) }
|
|
__preinit_array_end = .;
|
|
__init_array_start = .;
|
|
.init_array : { *(.init_array) }
|
|
__init_array_end = .;
|
|
__fini_array_start = .;
|
|
.fini_array : { *(.fini_array) }
|
|
__fini_array_end = .;
|
|
|
|
. = ALIGN(4096);
|
|
__initramfs_start = .;
|
|
.init.ramfs : { *(.init.ramfs) }
|
|
__initramfs_end = .;
|
|
|
|
/* Sections to be discarded */
|
|
/DISCARD/ : {
|
|
*(.exitcall.exit)
|
|
}
|
|
|