[FS#153] KERNEL_DYNAMIC_FTRACE=y on mips => panic

LEDE Bugs lede-bugs at lists.infradead.org
Sun Sep 4 10:28:42 PDT 2016


A new Flyspray task has been opened.  Details are below. 

User who did this - Github Issues (github-import) 

Attached to Project - LEDE Project
Summary - KERNEL_DYNAMIC_FTRACE=y on mips => panic 
Task Type - Bug Report
Category - Kernel
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - Github issue #129 reported by: https://github.com/stsydow

If KERNEL_DYNAMIC_FTRACE is enabled on a MIPS system it will panic in late boot. (tested on ar71xx and malta)
The error message is not very helpful, maybe some one has an idea how to track it down:

[    5.579744] procd: - init -
Please press Enter to activate this console.
[    5.854903] CPU 0 Unable to handle kernel paging request at virtual address 00c03849, epc == 8026a400, ra == 8026a3e4
[    5.855392] Oops[#1]:
[    5.855602] CPU: 0 PID: 1611 Comm: kmodloader Not tainted 4.4.13 #20
[    5.855862] task: 8d86a0a0 ti: 8fa22000 task.ti: 8fa22000
[    5.856060] $ 0   : 00000000 8026a3e4 80130620 00000000
[    5.856380] $ 4   : 8dc48ab0 00000001 0000000e 81b97540
[    5.856607] $ 8   : 0024f000 00003edc 00000000 00000001
[    5.856795] $12   : 8d8410c0 00000025 00000000 6261745f
[    5.856984] $16   : 8dc48a80 81980000 00c03821 801305f4
[    5.857174] $20   : 8dc48ad9 80130620 0000001d 024000c0
[    5.857362] $24   : 00000000 8015655c                  
[    5.857569] $28   : 8fa22000 8fa23bd0 80194d48 8026a3e4
[    5.857766] Hi    : 00000018
[    5.857863] Lo    : 00000007
[    5.858008] epc   : 8026a400 proc_register+0x74/0x130
[    5.858167] ra    : 8026a3e4 proc_register+0x58/0x130
[    5.858317] Status: 1000b703 KERNEL EXL IE 
[    5.858529] Cause : 00800008 (ExcCode 02)
[    5.858655] BadVA : 00c03849
[    5.858764] PrId  : 00019300 (MIPS 24Kc)
[    5.858895] Modules linked in: ip6_tables(+) x_tables mii
[    5.859219] Process kmodloader (pid: 1611, threadinfo=8fa22000, task=8d86a0a0, tls=77528e48)
[    5.859477] Stack : 8da50000 8026a1a4 8f898000 81b94a40 81945a40 8014d8c4 00000001 8dc48a80
      8da4e540 00000000 8f9d6370 8da50000 8da50000 8026a724 00000000 80650000
      8da4e400 00000000 8f9d6370 80650000 8da4e400 8da4d134 00000000 8d86a0e8
      801305f4 00000000 00000000 5ce6d83d 81b94a40 61745f78 73656c62 6d616e5f
      8d007365 0000af3b 81b94a40 81b94a40 8dad46b0 00000000 8fa23d30 80650000
      ...
[    5.861631] Call Trace:
[    5.861728] [] proc_register+0x74/0x130
[    5.861954] [] proc_create_data+0xac/0xd8
[    5.862188] [] xt_proto_init+0xa4/0x1d0 [x_tables]
[    5.862414] [] ops_init.constprop.9+0x10c/0x150
[    5.862593] [] register_pernet_operations.isra.4+0x98/0xec
[    5.862796] [] register_pernet_subsys+0x34/0x58
[    5.862986] [] init_module+0x28/0xcc [ip6_tables]
[    5.863174] [] do_one_initcall+0x1f8/0x224
[    5.863341] [] do_init_module+0x84/0x1f8
[    5.863504] [] load_module+0x1888/0x1d58
[    5.863680] [] SyS_init_module+0x120/0x164
[    5.863846] [] syscall_common+0x30/0x54
[    5.864046] 
[    5.864130] 
Code: 12400014  26040030  92060058  00c2182b  14600008  00000000  0046102b  14400009 
[    5.864794] ---[ end trace 6cd948b6ebb870af ]---

To test, try this config: [[https://github.com/lede-project/source/files/320658/config.zip|config.zip]]

(default config for malta-mips + KERNEL_DYNAMIC_FTRACE)
and run

>qemu-system-mipsel -kernel bin/targets/malta/le/lede-malta-le-vmlinux-initramfs.elf -nographic -m 256

Full boot log: [[https://github.com/lede-project/source/files/320655/crash-dyn-trace.log.txt|crash-dyn-trace.log.txt]]

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=153



More information about the lede-bugs mailing list