skiffos / SkiffOS

Any Linux distribution, anywhere.
https://skiffos.com
MIT License
687 stars 51 forks source link

nezha: sometimes kernel panic when booting #207

Closed paralin closed 2 years ago

paralin commented 2 years ago
[    3.858942] Hardware name: Allwinner D1 Nezha (DT)
[    3.863728] epc : strscpy+0x2a/0xfa
[    3.867236]  ra : strscpy_pad+0x12/0x3a
[    3.871075] epc : ffffffff80311bb4 ra : ffffffff802e74a4 sp : ffffffc80400bbb0
[    3.878293]  gp : ffffffff81391a30 tp : ffffffd8017a0000 t0 : 00000000000001f8
[    3.885510]  t1 : ffffffc80400bbd0 t2 : 0000000000000000 s0 : ffffffd8030a2070
[    3.892727]  s1 : 0000000000000040 a0 : 0000000000000000 a1 : ffffffffffffffff
[    3.899944]  a2 : 0000000000000040 a3 : ffffffff80de30ca a4 : 0000000000000000
[    3.907161]  a5 : ffffffffffffffff a6 : ffffffffffffffff a7 : ffffffd8019152d0
[    3.914379]  s2 : ffffffc80400bbd0 s3 : 0000000000000000 s4 : 0000000000000000
[    3.921595]  s5 : 0000000000000059 s6 : 0000000000000001 s7 : 0000000000000000
[    3.928811]  s8 : 0000000000000000 s9 : 0000000000000002 s10: 0000000000000000
[    3.936027]  s11: 0000000000000001 t3 : 0000003f812ddfb8 t4 : 0000000000000016
[    3.943244]  t5 : 0000000000000061 t6 : ffffffd8017cb004
[    3.948552] status: 0000000200000120 badaddr: ffffffffffffffff cause: 000000000000000d
[    3.956463] [<ffffffff80311bb4>] strscpy+0x2a/0xfa
[    3.961262] [<ffffffff80185d80>] proc_task_name+0x2a/0x90
[    3.966667] [<ffffffff80141b42>] seq_put_decimal_ull_width+0x8e/0xdc
[    3.973033] [<ffffffff800335ac>] thread_group_cputime_adjusted+0x24/0x34
[    3.979744] [<ffffffff801860a6>] do_task_stat+0x2c0/0x8c8
[    3.985150] [<ffffffff800e0ff2>] kvmalloc_node+0x12/0xa8
[    3.990477] [<ffffffff80181c80>] proc_single_show+0x3e/0x88
[    3.996059] [<ffffffff801415d0>] seq_read_iter+0x130/0x2fa
[    4.001553] [<ffffffff8014181a>] seq_read+0x80/0x9e
[    4.006438] [<ffffffff801209ce>] vfs_read+0x5a/0x106
[    4.011413] [<ffffffff80120ccc>] ksys_read+0x38/0x98
[    4.016382] [<ffffffff80120d28>] ksys_read+0x94/0x98
[    4.021350] [<ffffffff8000232c>] check_syscall_nr+0x1e/0x22
[    4.027061] ---[ end trace 0000000000000000 ]---
[    4.031771] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    4.039434] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---

Things to try:

Commit d6986ce24fc00b0638bd29efe8fb7ba7619ed2aa causes the fail.

paralin commented 2 years ago

Reverting that commit fixed it.

971d13bbb7e0e302afd533446141409068e30af9