From: Chris.Brandt@renesas.com (Chris Brandt)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/3] kallsyms: remove special handling for CONFIG_ARM
Date: Tue, 2 Feb 2016 18:59:22 +0000 [thread overview]
Message-ID: <HKXPR06MB0565A2CFF95AD7C000F43E6A8ADF0@HKXPR06MB0565.apcprd06.prod.outlook.com> (raw)
In-Reply-To: <1454419174-21290-1-git-send-email-ard.biesheuvel@linaro.org>
On Tue, 2 Feb 2016, Ard Biesheuvel wrote:
> This series applies on top of today's -next, and addresses an issue
> with the new kallsyms code that is queued there, that enables base
> relative kallsyms tables for all architectures (except IA-64)
>
> Two issues have surfaced on ARM with the new kallsyms code:
> a) CONFIG_HAVE_TCM creates a virtual region that is too far away for the
> relative kallsyms code to reach it;
> b) CONFIG_XIP_KERNEL=y kernel symbols are not filtered against PAGE_OFFSET,
> as is the case for kernels that execute from RAM, resulting in symbols
> that are out of range.
For whatever it's worth:
I applied my XIP_KERNEL fixes (for ARMv7) on top of -next and attempted to boot which resulted in a flood of these:
"Unable to handle kernel NULL pointer dereference at virtual address 00000000"
and of course it dies.
I then applied the 3 patches and tried again and this time it booted up....almost.
It looks like it makes it all the way up to when it is going to mount my rootfs, but then dies.
My kernel (.text) starts at 0xbf000000 (MODULES_VADDR), so the "LR is at 0xb6f87e88" is obviously bad.
Chris
================ boot log ======================
VFS: Mounted root (squashfs filesystem) readonly on device 31:0.
devtmpfs: mounted
Freeing unused kernel memory: 36K (c000a000 - c0013000)
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c05f0000
[00000000] *pgd=205f5831, *pte=00000000, *ppte=00000000
Internal error: Oops: 80000007 [#1] ARM
Modules linked in:
CPU: 0 PID: 1 Comm: init Not tainted 4.5.0-rc2-next-20160202-dirty #3
Hardware name: Generic R7S72100 (Flattened Device Tree)
task: c0613000 ti: c0614000 task.ti: c0614000
PC is at 0x0
LR is at 0xb6f87e88
pc : [<00000000>] lr : [<b6f87e88>] psr: 80000093
sp : c0615ff8 ip : 00000054 fp : beca8ba4
r10: b6f8b9ab r9 : 00000000 r8 : 00000014
r7 : 000000c0 r6 : b6f93f74 r5 : 00000000 r4 : ffffffff
r3 : 04000022 r2 : 00000003 r1 : 00001000 r0 : 00000000
Flags: Nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
Control: 18c5347d Table: 205f0059 DAC: 00000055
Process init (pid: 1, stack limit = 0xc0614208)
Stack: (0xc0615ff8 to 0xc0616000)
5fe0: fde4be6f 89031a8e
Backtrace: invalid frame pointer 0xbeca8ba4
Code: bad PC value
---[ end trace ed7071b866b0f003 ]---
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
next prev parent reply other threads:[~2016-02-02 18:59 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-02 13:19 [PATCH 0/3] kallsyms: remove special handling for CONFIG_ARM Ard Biesheuvel
2016-02-02 13:19 ` [PATCH 1/3] ARM: move .vectors and .stubs sections back into the kernel VMA Ard Biesheuvel
2016-02-03 0:03 ` Russell King - ARM Linux
2016-02-03 0:20 ` Nicolas Pitre
2016-02-03 7:56 ` Ard Biesheuvel
2016-02-03 9:13 ` Russell King - ARM Linux
2016-02-03 9:16 ` Ard Biesheuvel
2016-02-08 16:39 ` Russell King - ARM Linux
2016-02-08 17:00 ` Russell King - ARM Linux
2016-02-08 17:01 ` Ard Biesheuvel
2016-02-02 13:19 ` [PATCH 2/3] kallsyms: remove special lower address limit for CONFIG_ARM Ard Biesheuvel
2016-02-02 13:19 ` [PATCH 3/3] kallsyms: remove --page-offset command line option Ard Biesheuvel
2016-02-03 0:05 ` Russell King - ARM Linux
2016-02-03 8:16 ` Ard Biesheuvel
2016-02-03 9:53 ` Maxime Coquelin
2016-02-02 17:51 ` [PATCH 0/3] kallsyms: remove special handling for CONFIG_ARM Nicolas Pitre
2016-02-02 18:59 ` Chris Brandt [this message]
2016-02-02 19:00 ` Ard Biesheuvel
2016-02-02 19:13 ` Chris Brandt
2016-02-03 13:33 ` Chris Brandt
2016-02-03 13:41 ` Ard Biesheuvel
2016-02-03 14:15 ` Chris Brandt
2016-02-03 14:17 ` Ard Biesheuvel
2016-02-03 20:01 ` Russell King - ARM Linux
2016-02-03 20:02 ` Ard Biesheuvel
2016-02-03 20:23 ` Nicolas Pitre
2016-02-03 20:30 ` Ard Biesheuvel
2016-02-03 20:41 ` Ard Biesheuvel
2016-02-03 20:14 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=HKXPR06MB0565A2CFF95AD7C000F43E6A8ADF0@HKXPR06MB0565.apcprd06.prod.outlook.com \
--to=chris.brandt@renesas.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.