1 um: remove PAGE_SIZE alignment in linker script causing kernel segfault.
3 The linker script cleanup that I did in commit
4 5d150a97f9391f5bcd7ba0d59d7a11c3de3cea80 accidentally introduced an
5 ALIGN(PAGE_SIZE) when converting to use INIT_TEXT_SECTION; Richard
6 Weinberger reported that this causes the kernel to segfault with
9 I'm not certain why this extra alignment is a problem, but it seems likely
10 it is because previously
12 __init_begin = _stext = _text = _sinittext
14 and with the extra ALIGN(PAGE_SIZE), _sinittext becomes different from the
15 rest. So there is likely a bug here where something is assuming that
16 _sinittext is the same as one of those other symbols. But reverting the
17 accidental change fixes the regression, so it seems worth committing that
20 Signed-off-by: Tim Abbott <tabbott@ksplice.com>
21 Reported-by: richard -rw- weinberger <richard.weinberger@gmail.com>
22 Cc: Jeff Dike <jdike@addtoit.com>
23 Cc: user-mode-linux-devel@lists.sourceforge.net
25 arch/um/kernel/uml.lds.S | 2 +-
26 1 files changed, 1 insertions(+), 1 deletions(-)
28 diff --git a/arch/um/kernel/uml.lds.S b/arch/um/kernel/uml.lds.S
29 index e7a6cca..664f942 100644
30 --- a/arch/um/kernel/uml.lds.S
31 +++ b/arch/um/kernel/uml.lds.S
32 @@ -22,7 +22,7 @@ SECTIONS
36 - INIT_TEXT_SECTION(PAGE_SIZE)
37 + INIT_TEXT_SECTION(0)