Bisected: E3500 crash on boot just befoire v4.8
Quoted 3 lines
I (sort of) revived my E3500. TODC batteries are empty but I programmed new nvram contents and started it up. Last it ran probably 4.1, 4.2 had some blk-mq trouble. Updated to 4.9-rc6+git and got a boot crash.
Finished bisecting. The bug crept in right before 4.8.0. E3500 has sparse CPU numbering, maybe this was not considered in the patch?
commit 9b2f753ec23710aa32c0d837d2499db92fe9115b
Author: Atish Patra <[email protected]> Date: Thu Sep 15 14:54:40 2016 -0600
sparc64: Fix cpu_possible_mask if nr_cpus is set
If kernel boot parameter nr_cpus is set, it should define the number of CPUs that can ever be available in the system i.e. cpu_possible_mask. setup_nr_cpu_ids() overrides the nr_cpu_ids based on the cpu_possible_mask during kernel initialization. If cpu_possible_mask is not set based on the nr_cpus value, earlier part of the kernel would be initialized using nr_cpus value leading to a kernel crash.
Set cpu_possible_mask based on nr_cpus value. Thus setup_nr_cpu_ids() becomes redundant and does not corrupt nr_cpu_ids value.
:040000 040000 cd7f09841a45d3187cebeafb48b5fe22c00688a7 5c3d6e50160bd00108ee95f40cdf83264e9f5139 M arch
Quoted 53 lines
Unable to handle kernel NULL pointer dereference tsk->{mm,active_mm}->context = 0000000000000000 tsk->{mm,active_mm}->pgd = fffff80000402000 \|/ ____ \|/ "@'/ .. \`@" /_| \__/ |_\ \__U_/ swapper(0): Oops [#1] CPU: 6 PID: 0 Comm: swapper Not tainted 4.9.0-rc6-00124-gded9b5d #71task:
0000000000a1ddc0task.stack:0000000000a0c000
TSTATE:0000009980e01600TPC:00000000006c1f24TNPC:00000000006c1f28Y: 00000016 Not tainted
TPC: <__list_add+0x4/0xe0>
g0:000000000129e650g1:0000000000aa9f58g2:0000000000a574e0g3:000000000007e09f
g4:0000000000a1ddc0g5: 0000000000000000 g6:0000000000a0c000g7:000000000007e09e
o0:0000000000515f84o1:fffff800ff3de000o2:000000000001e1c0o3:0000000000a0f968
o4: 0000000000000100 o5: 0000000000000200 sp:0000000000a0f171ret_pc:00000000004a7d04
RPC: <trace_hardirqs_off+0x4/0x20>
l0:000000000129ddb8l1:00000000009ad178l2:0000000000a32400l3: 0000000000000001
l4:0000000000a18338l5: 0000000000000006 l6:000000000129e000l7:000000000129e1d8
i0:0000060001fe7ba0i1:0000000000aa9b70i2: 0000000000000000 i3:0000000000a1ddc0
i4:fffff800ff3de000i5: 0000000000000000 i6:0000000000a0f221i7:0000000000515ff0
I7: <free_hot_cold_page+0x130/0x1e0>Call Trace: [0000000000515ff0] free_hot_cold_page+0x130/0x1e0 [0000000000517f04] __free_pages+0x24/0x60 [0000000000a6ece0] __free_pages_bootmem+0xb0/0xc0 [0000000000a728f8] free_all_bootmem+0x11c/0x17c [0000000000a68794] mem_init+0x20/0xb0 [0000000000a62818] start_kernel+0x208/0x41c [0000000000a640fc] start_early_boot+0x274/0x284 [00000000008ca18c] tlb_fixup_done+0x4c/0x60 [0000000000000000] (null)Disabling lock debugging due to kernel taint Caller[0000000000515ff0]:
free_hot_cold_page+0x130/0x1e0Caller[0000000000517f04]:__free_pages+0x24/0x60Caller[0000000000a6ece0]:__free_pages_bootmem+0xb0/0xc0Caller[0000000000a728f8]:free_all_bootmem+0x11c/0x17cCaller[0000000000a68794]:mem_init+0x20/0xb0Caller[0000000000a62818]:start_kernel+0x208/0x41cCaller[0000000000a640fc]:start_early_boot+0x274/0x284Caller[00000000008ca18c]:tlb_fixup_done+0x4c/0x60
Caller[0000000000000000]: (null)
Instruction DUMP:900a20ff
010000009de3bf50
<d85ea008>80a30019
2268000bd85e4000
11002751 15002751Kernel panic - not syncing: Attempted to kill the idle task! Press Stop-A (L1-A) to return to the boot prom ---[ end Kernel panic - not syncing: Attempted to kill the idle task!
Signature · 1 line
Meelis Roos ([email protected])
The regression is still present in 4.13-rc5+git - can I do something to help solving it?
Nothing about CPUs in boot args. Just CONFIG_NR_CPUS2 in .config.
lscpu tells the CPU numbers are like this:
On-line CPU(s) list: 6,7,18,19
Quoted 87 lines
Quoted 3 lines
I (sort of) revived my E3500. TODC batteries are empty but I programmed new nvram contents and started it up. Last it ran probably 4.1, 4.2 had some blk-mq trouble. Updated to 4.9-rc6+git and got a boot crash.
Finished bisecting. The bug crept in right before 4.8.0. E3500 has sparse CPU numbering, maybe this was not considered in the patch?
commit
9b2f753ec23710aa32c0d837d2499db92fe9115bAuthor: Atish Patra <[email protected]> Date: Thu Sep 15 14:54:40 2016 -0600sparc64: Fix
cpu_possible_maskifnr_cpusis setIf kernel boot parameter
nr_cpusis set, it should define the number of CPUs that can ever be available in the system i.e.cpu_possible_mask.setup_nr_cpu_ids()overrides thenr_cpu_idsbased on thecpu_possible_maskduring kernel initialization. Ifcpu_possible_maskis not set based on thenr_cpusvalue, earlier part of the kernel would be initialized usingnr_cpusvalue leading to a kernel crash.Set
cpu_possible_maskbased onnr_cpusvalue. Thussetup_nr_cpu_ids()becomes redundant and does not corruptnr_cpu_idsvalue.Signed-off-by Atish Patra <[email protected]>Reviewed-by Bob Picco <[email protected]>Reviewed-by Vijay Kumar <[email protected]>Signed-off-by David S. Miller <[email protected]>:040000 040000
cd7f09841a45d3187cebeafb48b5fe22c00688a75c3d6e50160bd00108ee95f40cdf83264e9f5139M archQuoted 53 lines
Unable to handle kernel NULL pointer dereference tsk->{mm,active_mm}->context = 0000000000000000 tsk->{mm,active_mm}->pgd = fffff80000402000 \|/ ____ \|/ "@'/ .. \`@" /_| \__/ |_\ \__U_/ swapper(0): Oops [#1] CPU: 6 PID: 0 Comm: swapper Not tainted 4.9.0-rc6-00124-gded9b5d #71task:
0000000000a1ddc0task.stack:0000000000a0c000
TSTATE:0000009980e01600TPC:00000000006c1f24TNPC:00000000006c1f28Y: 00000016 Not tainted
TPC: <__list_add+0x4/0xe0>
g0:000000000129e650g1:0000000000aa9f58g2:0000000000a574e0g3:000000000007e09f
g4:0000000000a1ddc0g5: 0000000000000000 g6:0000000000a0c000g7:000000000007e09e
o0:0000000000515f84o1:fffff800ff3de000o2:000000000001e1c0o3:0000000000a0f968
o4: 0000000000000100 o5: 0000000000000200 sp:0000000000a0f171ret_pc:00000000004a7d04
RPC: <trace_hardirqs_off+0x4/0x20>
l0:000000000129ddb8l1:00000000009ad178l2:0000000000a32400l3: 0000000000000001
l4:0000000000a18338l5: 0000000000000006 l6:000000000129e000l7:000000000129e1d8
i0:0000060001fe7ba0i1:0000000000aa9b70i2: 0000000000000000 i3:0000000000a1ddc0
i4:fffff800ff3de000i5: 0000000000000000 i6:0000000000a0f221i7:0000000000515ff0
I7: <free_hot_cold_page+0x130/0x1e0>Call Trace: [0000000000515ff0] free_hot_cold_page+0x130/0x1e0 [0000000000517f04] __free_pages+0x24/0x60 [0000000000a6ece0] __free_pages_bootmem+0xb0/0xc0 [0000000000a728f8] free_all_bootmem+0x11c/0x17c [0000000000a68794] mem_init+0x20/0xb0 [0000000000a62818] start_kernel+0x208/0x41c [0000000000a640fc] start_early_boot+0x274/0x284 [00000000008ca18c] tlb_fixup_done+0x4c/0x60 [0000000000000000] (null)Disabling lock debugging due to kernel taint Caller[0000000000515ff0]:
free_hot_cold_page+0x130/0x1e0Caller[0000000000517f04]:__free_pages+0x24/0x60Caller[0000000000a6ece0]:__free_pages_bootmem+0xb0/0xc0Caller[0000000000a728f8]:free_all_bootmem+0x11c/0x17cCaller[0000000000a68794]:mem_init+0x20/0xb0Caller[0000000000a62818]:start_kernel+0x208/0x41cCaller[0000000000a640fc]:start_early_boot+0x274/0x284Caller[00000000008ca18c]:tlb_fixup_done+0x4c/0x60
Caller[0000000000000000]: (null)
Instruction DUMP:900a20ff
010000009de3bf50
<d85ea008>80a30019
2268000bd85e4000
11002751 15002751Kernel panic - not syncing: Attempted to kill the idle task! Press Stop-A (L1-A) to return to the boot prom ---[ end Kernel panic - not syncing: Attempted to kill the idle task!
Signature · 1 line
Meelis Roos ([email protected])
From: Meelis Roos <[email protected]>
Date: Wed, 23 Aug 2017 09:18:44 +0300 (EEST)
Quoted 7 lines
The regression is still present in 4.13-rc5+git - can I do something to help solving it?
Nothing about CPUs in boot args. Just
CONFIG_NR_CPUS2in .config.lscpu tells the CPU numbers are like this:
On-line CPU(s) list: 6,7,18,19
Atish please look into this.
Quoted 95 lines
Quoted 88 lines
Quoted 4 lines
I (sort of) revived my E3500. TODC batteries are empty but I programmed new nvram contents and started it up. Last it ran probably 4.1, 4.2 had some blk-mq trouble. Updated to 4.9-rc6+git and got a boot crash.
Finished bisecting. The bug crept in right before 4.8.0. E3500 has sparse CPU numbering, maybe this was not considered in the patch?
commit
9b2f753ec23710aa32c0d837d2499db92fe9115bAuthor: Atish Patra <[email protected]> Date: Thu Sep 15 14:54:40 2016 -0600sparc64: Fix
cpu_possible_maskifnr_cpusis setIf kernel boot parameter
nr_cpusis set, it should define the number of CPUs that can ever be available in the system i.e.cpu_possible_mask.setup_nr_cpu_ids()overrides thenr_cpu_idsbased on thecpu_possible_maskduring kernel initialization. Ifcpu_possible_maskis not set based on thenr_cpusvalue, earlier part of the kernel would be initialized usingnr_cpusvalue leading to a kernel crash.Set
cpu_possible_maskbased onnr_cpusvalue. Thussetup_nr_cpu_ids()becomes redundant and does not corruptnr_cpu_idsvalue.Signed-off-by Atish Patra <[email protected]>Reviewed-by Bob Picco <[email protected]>Reviewed-by Vijay Kumar <[email protected]>Signed-off-by David S. Miller <[email protected]>:040000 040000
cd7f09841a45d3187cebeafb48b5fe22c00688a75c3d6e50160bd00108ee95f40cdf83264e9f5139M archQuoted 53 lines
Unable to handle kernel NULL pointer dereference tsk->{mm,active_mm}->context = 0000000000000000 tsk->{mm,active_mm}->pgd = fffff80000402000 \|/ ____ \|/ "@'/ .. \`@" /_| \__/ |_\ \__U_/ swapper(0): Oops [#1] CPU: 6 PID: 0 Comm: swapper Not tainted 4.9.0-rc6-00124-gded9b5d #71task:
0000000000a1ddc0task.stack:0000000000a0c000
TSTATE:0000009980e01600TPC:00000000006c1f24TNPC:00000000006c1f28Y: 00000016 Not tainted
TPC: <__list_add+0x4/0xe0>
g0:000000000129e650g1:0000000000aa9f58g2:0000000000a574e0g3:000000000007e09f
g4:0000000000a1ddc0g5: 0000000000000000 g6:0000000000a0c000g7:000000000007e09e
o0:0000000000515f84o1:fffff800ff3de000o2:000000000001e1c0o3:0000000000a0f968
o4: 0000000000000100 o5: 0000000000000200 sp:0000000000a0f171ret_pc:00000000004a7d04
RPC: <trace_hardirqs_off+0x4/0x20>
l0:000000000129ddb8l1:00000000009ad178l2:0000000000a32400l3: 0000000000000001
l4:0000000000a18338l5: 0000000000000006 l6:000000000129e000l7:000000000129e1d8
i0:0000060001fe7ba0i1:0000000000aa9b70i2: 0000000000000000 i3:0000000000a1ddc0
i4:fffff800ff3de000i5: 0000000000000000 i6:0000000000a0f221i7:0000000000515ff0
I7: <free_hot_cold_page+0x130/0x1e0>Call Trace: [0000000000515ff0] free_hot_cold_page+0x130/0x1e0 [0000000000517f04] __free_pages+0x24/0x60 [0000000000a6ece0] __free_pages_bootmem+0xb0/0xc0 [0000000000a728f8] free_all_bootmem+0x11c/0x17c [0000000000a68794] mem_init+0x20/0xb0 [0000000000a62818] start_kernel+0x208/0x41c [0000000000a640fc] start_early_boot+0x274/0x284 [00000000008ca18c] tlb_fixup_done+0x4c/0x60 [0000000000000000] (null)Disabling lock debugging due to kernel taint Caller[0000000000515ff0]:
free_hot_cold_page+0x130/0x1e0Caller[0000000000517f04]:__free_pages+0x24/0x60Caller[0000000000a6ece0]:__free_pages_bootmem+0xb0/0xc0Caller[0000000000a728f8]:free_all_bootmem+0x11c/0x17cCaller[0000000000a68794]:mem_init+0x20/0xb0Caller[0000000000a62818]:start_kernel+0x208/0x41cCaller[0000000000a640fc]:start_early_boot+0x274/0x284Caller[00000000008ca18c]:tlb_fixup_done+0x4c/0x60
Caller[0000000000000000]: (null)
Instruction DUMP:900a20ff
010000009de3bf50
<d85ea008>80a30019
2268000bd85e4000
11002751 15002751Kernel panic - not syncing: Attempted to kill the idle task! Press Stop-A (L1-A) to return to the boot prom ---[ end Kernel panic - not syncing: Attempted to kill the idle task!Signature · 5 lines
Meelis Roos ([email protected]) -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · David Miller
From: Meelis Roos <[email protected]>
Date: Wed, 23 Aug 2017 09:18:44 +0300 (EEST)Quoted 7 lines
The regression is still present in 4.13-rc5+git - can I do something to help solving it?
Nothing about CPUs in boot args. Just
CONFIG_NR_CPUS2in .config.lscpu tells the CPU numbers are like this:
On-line CPU(s) list: 6,7,18,19Atish please look into this.
I apologize for the delay in providing a fix. Lack of sparse numbered machines at our end is the reason behind this issue.
I am working on a potential fix and will verify the fix with Meelis before sending it for review.
Regards,
Atish
Quoted 90 lines
Quoted 90 lines
Quoted 84 lines
Quoted 3 lines
I (sort of) revived my E3500. TODC batteries are empty but I programmed new nvram contents and started it up. Last it ran probably 4.1, 4.2 had some blk-mq trouble. Updated to 4.9-rc6+git and got a boot crash.
Finished bisecting. The bug crept in right before 4.8.0. E3500 has sparse CPU numbering, maybe this was not considered in the patch?
commit
9b2f753ec23710aa32c0d837d2499db92fe9115bAuthor: Atish Patra <[email protected]> Date: Thu Sep 15 14:54:40 2016 -0600sparc64: Fix
cpu_possible_maskifnr_cpusis setIf kernel boot parameter
nr_cpusis set, it should define the number of CPUs that can ever be available in the system i.e.cpu_possible_mask.setup_nr_cpu_ids()overrides thenr_cpu_idsbased on thecpu_possible_maskduring kernel initialization. Ifcpu_possible_maskis not set based on thenr_cpusvalue, earlier part of the kernel would be initialized usingnr_cpusvalue leading to a kernel crash.Set
cpu_possible_maskbased onnr_cpusvalue. Thussetup_nr_cpu_ids()becomes redundant and does not corruptnr_cpu_idsvalue.Signed-off-by Atish Patra <[email protected]>Reviewed-by Bob Picco <[email protected]>Reviewed-by Vijay Kumar <[email protected]>Signed-off-by David S. Miller <[email protected]>:040000 040000
cd7f09841a45d3187cebeafb48b5fe22c00688a75c3d6e50160bd00108ee95f40cdf83264e9f5139M archQuoted 53 lines
Unable to handle kernel NULL pointer dereference tsk->{mm,active_mm}->context = 0000000000000000 tsk->{mm,active_mm}->pgd = fffff80000402000 \|/ ____ \|/ "@'/ .. \`@" /_| \__/ |_\ \__U_/ swapper(0): Oops [#1] CPU: 6 PID: 0 Comm: swapper Not tainted 4.9.0-rc6-00124-gded9b5d #71task:
0000000000a1ddc0task.stack:0000000000a0c000
TSTATE:0000009980e01600TPC:00000000006c1f24TNPC:00000000006c1f28Y: 00000016 Not tainted
TPC: <__list_add+0x4/0xe0>
g0:000000000129e650g1:0000000000aa9f58g2:0000000000a574e0g3:000000000007e09f
g4:0000000000a1ddc0g5: 0000000000000000 g6:0000000000a0c000g7:000000000007e09e
o0:0000000000515f84o1:fffff800ff3de000o2:000000000001e1c0o3:0000000000a0f968
o4: 0000000000000100 o5: 0000000000000200 sp:0000000000a0f171ret_pc:00000000004a7d04
RPC: <trace_hardirqs_off+0x4/0x20>
l0:000000000129ddb8l1:00000000009ad178l2:0000000000a32400l3: 0000000000000001
l4:0000000000a18338l5: 0000000000000006 l6:000000000129e000l7:000000000129e1d8
i0:0000060001fe7ba0i1:0000000000aa9b70i2: 0000000000000000 i3:0000000000a1ddc0
i4:fffff800ff3de000i5: 0000000000000000 i6:0000000000a0f221i7:0000000000515ff0
I7: <free_hot_cold_page+0x130/0x1e0>Call Trace: [0000000000515ff0] free_hot_cold_page+0x130/0x1e0 [0000000000517f04] __free_pages+0x24/0x60 [0000000000a6ece0] __free_pages_bootmem+0xb0/0xc0 [0000000000a728f8] free_all_bootmem+0x11c/0x17c [0000000000a68794] mem_init+0x20/0xb0 [0000000000a62818] start_kernel+0x208/0x41c [0000000000a640fc] start_early_boot+0x274/0x284 [00000000008ca18c] tlb_fixup_done+0x4c/0x60 [0000000000000000] (null)Disabling lock debugging due to kernel taint Caller[0000000000515ff0]:
free_hot_cold_page+0x130/0x1e0Caller[0000000000517f04]:__free_pages+0x24/0x60Caller[0000000000a6ece0]:__free_pages_bootmem+0xb0/0xc0Caller[0000000000a728f8]:free_all_bootmem+0x11c/0x17cCaller[0000000000a68794]:mem_init+0x20/0xb0Caller[0000000000a62818]:start_kernel+0x208/0x41cCaller[0000000000a640fc]:start_early_boot+0x274/0x284Caller[00000000008ca18c]:tlb_fixup_done+0x4c/0x60
Caller[0000000000000000]: (null)
Instruction DUMP:900a20ff
010000009de3bf50
<d85ea008>80a30019
2268000bd85e4000
11002751 15002751Kernel panic - not syncing: Attempted to kill the idle task! Press Stop-A (L1-A) to return to the boot prom ---[ end Kernel panic - not syncing: Attempted to kill the idle task!Signature · 5 lines
Meelis Roos ([email protected]) -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html