[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1055021: linux: mips64el loongson3 kernel crashes when running cmake



Source: linux
Version: 5.10.197-1
Severity: grave
Tags: upstream patch
X-Debbugs-Cc: dsa@debian.org, debian-mips@lists.debian.org

The loongson3 flavour of the mips64el kernel crash when running cmake:

| [ 4390.501529] do_cpu invoked from kernel context![#1]:
| [ 4390.506483] CPU: 3 PID: 24061 Comm: iou-sqp-22284 Not tainted 5.10.0-26-loongson-3 #1 Debian 5.10.197-1
| [ 4390.515820] Hardware name: Loongson Lemote-3A4000-7A-1w-V1.00-A1901/Lemote-3A4000-7A-1w-V1.00-A1901, BIOS Loongson-PMON-V3.3-20201222 12/22/2020
| [ 4390.528699] $ 0 : 0000000000000000 ffffffff80bf9030 0000000000000001 980000020f844000
| [ 4390.536669] $ 4 : 98000001017bb2c0 ffffffff80dbc0b8 0000000000000008 0000020080000200
| [ 4390.544634] $ 8 : 0000000000000001 0000000000000001 0000000000000000 0000000002e27c19
| [ 4390.552600] $12 : 000000005400cce0 ffffffff80199c00 00000000000001ea 00000000000001ea
| [ 4390.560565] $16 : 9800000100253700 ffffffff80ecc740 0000000000000000 98000000023cb8c0
| [ 4390.568530] $20 : ffffffff80ecdce0 98000001017bb2c0 98000001017bb8e0 0000000000000000
| [ 4390.576495] $24 : 0000000000000028 980000020f847e58
| [ 4390.584461] $28 : 980000020f844000 980000020f847d40 98000000023cb8c0 ffffffff80bf925c
| [ 4390.592426] Hi : 00000000000000de
| [ 4390.595974] Lo : ffffffffd70a40ec
| [ 4390.599532] epc : ffffffff802177c0 _save_fp+0x10/0xa0
| [ 4390.604727] ra : ffffffff80bf925c __schedule+0x804/0xe08
| [ 4390.610263] Status: 5400cce2 KX SX UX KERNEL EXL
| [ 4390.614949] Cause : 1000002c (ExcCode 0b)
| [ 4390.618930] PrId : 0014c004 (ICT Loongson-3)
| [ 4390.623257] Modules linked in: asix usbnet mii sg ip6t_REJECT nf_reject_ipv6 ip6table_filter ip6_tables nfnetlink_log nfnetlink xt_hashlimit ipt_REJECT nf_reject_ipv4 xt_NFLOG xt_multiport xt_tcpudp xt_state xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter sch_fq tcp_bbr fuse drm drm_panel_orientation_quirks configfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic ohci_pci dm_mod r8169 realtek mdio_devres ohci_hcd ehci_pci of_mdio xhci_pci xhci_hcd ehci_hcd fixed_phy libphy usbcore usb_common
| [ 4390.671116] Process iou-sqp-22284 (pid: 24061, threadinfo=00000000743a6e5b, task=0000000063cca72a, tls=000000fff0de98e0)
| [ 4390.681930] Stack : ffffffff80ed0000 0000000000000000 ffffffff80ed0000 980000020f6e8c40
| [ 4390.689897] 9800000200000004 d37c8307c148dccb 98000001017bb2c0 0000000000000000
| [ 4390.697863] 0000000000000000 0000000000000001 90
| [ 4390.721759] 9800000104957480 980000020f6e8c00 0000000000000000 ffffffff80ed0000
| [ 4390.729724] 980000020f6e8c40 980000020f6e8c08 0000000000000000 0000000000000000
| [ 4390.737689] 0000000000000000 98000001017bb2c0 ffffffff802c61f8 980000020f6e8c48
| [ 4390.745655] 980000020f6e8c48 2d7071732d756f69 ffff003438323232 d37c8307c148dccb
| [ 4390.753621] ffffffff807106e0 980000020f6e8c00 98000001097e90c8 000000007400cce0
| [ 4390.761588] ...
| [ 4390.764017] Call Trace:
| [ 4390.766453] [<ffffffff802177c0>] _save_fp+0x10/0xa0
| [ 4390.771306] [<ffffffff80bf925c>] __schedule+0x804/0xe08
| [ 4390.776497] [<ffffffff80bf98b8>] schedule+0x58/0x150
| [ 4390.781432] [<ffffffff80710c30>] io_sq_thread+0x550/0x578
| [ 4390.786798] [<ffffffff8020518c>] ret_from_kernel_thread+0x14/0x1c
| [ 4390.792856]
| [ 4390.794330] Code: 000c6940 05a10011 00000000 <f4810af0> f4830b10 f4850b30 f4870b50 f4890b70 f48b0b90
| [ 4390.804038]
| [ 4411.502993] rcu: INFO: rcu_preempt self-detected stall on CPU
| [ 4411.508728] rcu: 1-...!: (5250 ticks this GP) idle=2c6/1/0x4000000000000002 softirq=1149627/1149627 fqs=4
| [ 4411.518413] (t=5254 jiffies g=735145 q=4914963)
| [ 4411.522999] rcu: rcu_preempt kthread starved for 5248 jiffies! g735145 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x200 ->cpu=2
| [ 4411.533458] rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
| [ 4411.542535] rcu: RCU grace-period kthread stack dump:
| [ 4411.547552] task:rcu_preempt state:R stack: 0 pid: 13 ppid: 2 flags:0x00100000
| [ 4411.555860] Stack : ffffffff80ed0000 ffffffff80bff978 ffffffff80ed0000 ffffffff8031bbd4
| [ 4411.563826] 0000000000000004 d37c8307c148dccb 9800000100250000 0000000000208040
| [ 4411.571791] ffffffff80ed0000 98000001002c7c98 ffffffff80ed0000 ffffffff80f62ce0
| [ 4411.579756] 0000000000000000 0000000000000006 0000000000000001 ffffffff80bf98b8
| [ 4411.587721] 0000000000000000 00000001000f9aa0 0000000000000000 ffffffff80bfdb98
| [ 4411.595686] ffffffff8030bbc8 000000005400cce1 ffffffff80ed0000 0000000000000000
| [ 4411.603651] 980000000236cc78 00000001000f9aa0 ffffffff80319968 0000000008400002
| [ 4411.611617] 9800000100250000 d37c8307c148dccb ffffffff80f62a80 0000000000000000
| [ 4411.619582] ffffffff80ed0000 ffffffff80ed0000 ffffffff80ecdce0 ffffffff8030b40c
| [ 4411.627548] ffffffff80ef11f0 ffffffff80ed0000 ffffffff811f0000 ffffffff80f60000
| [ 4411.635515] ...
| [ 4411.637947] Call Trace:
| [ 4411.640384] [<ffffffff80bf8f64>] __schedule+0x50c/0xe08
| [ 4411.645586] [<ffffffff80bf98b8>] schedule+0x58/0x150
| [ 4411.650527] [<ffffffff80bfdb98>] schedule_timeout+0x98/0x1e8
| [ 4411.656156] [<ffffffff8030b40c>] rcu_gp_kthread+0x89c/0x1058
| [ 4411.661787] [<ffffffff80296404>] kthread+0x174/0x1a0
| [ 4411.666725] [<ffffffff8020518c>] ret_from_kernel_thread+0x14/0x1c
| [ 4411.672784]
| [ 4411.674263] NMI backtrace for cpu 1
| [ 4411.677729] CPU: 1 PID: 22284 Comm: cmake Tainted: G D 5.10.0-26-loongson-3 #1 Debian 5.10.197-1
| [ 4411.687757] Hardware name: Loongson Lemote-3A4000-7A-1w-V1.00-A1901/Lemote-3A4000-7A-1w-V1.00-A1901, BIOS Loongson-PMON-V3.3-20201222 12/22/2020
| [ 4411.700637] Stack : 0000000000000084 ffffffffffffffff ffffffff80bf0d58 98000001001a39b8
| [ 4411.708606] d37c8307c148dccb 0000000000000000 0000000000000000 ffffffff80dbc0b8
| [ 4411.716572] 98000001001a3828 0000000000000000 0000000000000001 c0000000ffffefff
| [ 4411.724537] 0000000000000003 98000001001a3b08 ffffffff807c6fe0 ffffffffeba00020
| [ 4411.732502] 332e33562d4e4f4d ffffffff80ed0000 ffff000000000000 0000000000000000
| [ 4411.740466] ffffffff80dc0000 0000000000000000 0000000000000001 ffffffff80ed0000
| [ 4411.748430] ffffffff80ecddb8 0000000000000038 ffffffff8088ff00 0000000000000008
| [ 4411.756395] ffffffff811d0008 980000020f4f8000 98000001001a39b0 ffffffff80f62a80
| [ 4411.764359] ffffffff80bf0d58 0000000000000000 0000000000000000 0000000000000000
| [ 4411.772323] 0000000000000000 d37c8307c148dccb ffffffff8020dc58 d37c8307c148dccb
| [ 4411.780288] ...
| [ 4411.782716] Call Trace:
| [ 4411.785142] [<ffffffff8020dc58>] show_stack+0x50/0x138
| [ 4411.790248] [<ffffffff80bf0d58>] dump_stack+0xb8/0xe8
| [ 4411.795268] [<ffffffff807b1ff0>] nmi_cpu_backtrace+0xe0/0x148
| [ 4411.800978] [<ffffffff807b2204>] nmi_trigger_cpumask_backtrace+0x1ac/0x208
| [ 4411.807811] [<ffffffff80bee584>] rcu_dump_cpu_stacks+0x138/0x188
| [ 4411.813780] [<ffffffff8030eab0>] rcu_sched_clock_irq+0xc68/0x1278
| [ 4411.819837] [<ffffffff8031c408>] update_process_times+0x88/0xd8
| [ 4411.825721] [<ffffffff80330fc4>] tick_sched_handle+0x44/0xb8
| [ 4411.831343] [<ffffffff8033197c>] tick_sched_timer+0x4c/0xc0
| [ 4411.836879] [<ffffffff8031d960>] __hrtimer_run_queues+0x190/0x3e8
| [ 4411.842934] [<ffffffff8031e5a4>] hrtimer_interrupt+0x134/0x390
| [ 4411.848731] [<ffffffff802156dc>] c0_compare_interrupt+0x9c/0xb0
| [ 4411.854614] [<ffffffff802efc18>] __handle_irq_event_percpu+0x98/0x320
| [ 4411.861014] [<ffffffff802efedc>] handle_irq_event_percpu+0x3c/0xa0
| [ 4411.867156] [<ffffffff802f7ad0>] handle_percpu_irq+0xb0/0xf0
| [ 4411.872778] [<ffffffff802eec80>] generic_handle_irq+0x50/0x70
| [ 4411.878487] [<ffffffff80c00cac>] do_IRQ+0x24/0x30
| [ 4411.883161] [<ffffffff807c8fc4>] plat_irq_dispatch+0x74/0x100
| [ 4411.888869] [<ffffffff80205560>] handle_int+0x140/0x14c
| [ 4411.894061] [<ffffffff80339304>] smp_call_function_many_cond+0x414/0x488
| [ 4411.900719] [<ffffffff803393e0>] smp_call_function+0x50/0xa0
| [ 4411.906342] [<ffffffff80219db4>] flush_tlb_range+0x9c/0x200
| [ 4411.911881] [<ffffffff8049434c>] tlb_flush+0xac/0xe8
| [ 4411.916812] [<ffffffff804970f4>] unmap_page_range+0xad4/0xb60
| [ 4411.922521] [<ffffffff80497694>] unmap_vmas+0x8c/0x120
| [ 4411.927626] [<ffffffff804a1688>] unmap_region+0xc8/0x180
| [ 4411.932903] [<ffffffff804a41b0>] __do_munmap+0x290/0x548
| [ 4411.938180] [<ffffffff804a44e8>] __vm_munmap+0x80/0xf8
| [ 4411.943284] [<ffffffff804a45c4>] sys_munmap+0x34/0x48
| [ 4411.948301] [<ffffffff8021a850>] syscall_common+0x34/0x58
| [ 4411.953664]
| [ 4411.955143] Sending NMI from CPU 1 to CPUs 3:
| [ 4440.102751] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [samhain:1055]
| [ 4440.109771] Modules linked in: asix usbnet mii sg ip6t_REJECT nf_reject_ipv6 ip6table_filter ip6_tables nfnetlink_log nfnetlink xt_hashlimit ipt_REJECT nf_reject_ipv4 xt_NFLOG xt_multiport xt_tcpudp xt_state xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter sch_fq tcp_bbr fuse drm drm_panel_orientation_quirks configfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic ohci_pci dm_mod r8169 realtek mdio_devres ohci_hcd ehci_pci of_mdio xhci_pci xhci_hcd ehci_hcd fixed_phy libphy usbcore usb_common
| [ 4440.157613] CPU: 0 PID: 1055 Comm: samhain Tainted: G D 5.10.0-26-loongson-3 #1 Debian 5.10.197-1
| [ 4440.167727] Hardware name: Loongson Lemote-3A4000-7A-1w-V1.00-A1901/Lemote-3A4000-7A-1w-V1.00-A1901, BIOS Loongson-PMON-V3.3-20201222 12/22/2020
| [ 4440.180607] $ 0 : 0000000000000000 ffffffff80202c84 0000000000000001 98000000023600a0
| [ 4440.188572] $ 4 : 0000000000000001 0000000000000000 ffffffffffffffc0 0000000000000001
| [ 4440.196537] $ 8 : 0000000000000000 000000000000000e 0000000000000000 0000000000400000
| [ 4440.204501] $12 : 0000000000000000 ffffffff807c6fe4 ffffffff804a4590 0a687361622f6e69
| [ 4440.212465] $16 : ffffffff811080a0 0000000000000000 9800000101873a30 ffffffff80ed0000
| [ 4440.220429] $20 : 9800000002324740 ffffffff80ecdce0 0000000000000010 9800000002324748
| [ 4440.228393] $24 : 0000000000000000 000000fff2b013cc
| [ 4440.236357] $28 : 9800000101870000 9800000101873990 0000000000000018 ffffffff803392c0
| [ 4440.244322] Hi : 0000000000000000
| [ 4440.247869] Lo : 0000000000000000
| [ 4440.251425] epc : ffffffff803392fc smp_call_function_many_cond+0x40c/0x488
| [ 4440.258429] ra : ffffffff803392c0 smp_call_function_many_cond+0x3d0/0x488
| [ 4440.265432] Status: 5400cce3 KX SX UX KERNEL EXL IE
| [ 4440.270377] Cause : 50008000 (ExcCode 00)
| [ 4440.274357] PrId : 0014c004 (ICT Loongson-3)
| [ 4440.278682] CPU: 0 PID: 1055 Comm: samhain Tainted: G D 5.10.0-26-loongson-3 #1 Debian 5.10.197-1
| [ 4440.288796] Hardware name: Loongson Lemote-3A4000-7A-1w-V1.00-A1901/Lemote-3A4000-7A-1w-V1.00-A1901, BIOS Loongson-PMON-V3.3-20201222 12/22/2020
| [ 4440.301676] Stack : 0000000 4440.365387] ffffffff80bf0d58 0000000000000000 0000000000000000 0000000000000000
| [ 4440.373351] 0000000000000000 d37c8307c148dccb ffffffff8020dc58 d37c8307c148dccb
| [ 4440.381315] ...
| [ 4440.383744] Call Trace:
| [ 4440.386172] [<ffffffff8020dc58>] show_stack+0x50/0x138
| [ 4440.391282] [<ffffffff80bf0d58>] dump_stack+0xb8/0xe8
| [ 4440.396302] [<ffffffff8037179c>] watchdog_timer_fn+0x38c/0x428
| [ 4440.402099] [<ffffffff8031d960>] __hrtimer_run_queues+0x190/0x3e8
| [ 4440.408153] [<ffffffff8031e5a4>] hrtimer_interrupt+0x134/0x390
| [ 4440.413949] [<ffffffff802156dc>] c0_compare_interrupt+0x9c/0xb0
| [ 4440.419833] [<ffffffff802efc18>] __handle_irq_event_percpu+0x98/0x320
| [ 4440.426233] [<ffffffff802efedc>] handle_irq_event_percpu+0x3c/0xa0
| [ 4440.432375] [<ffffffff802f7ad0>] handle_percpu_irq+0xb0/0xf0
| [ 4440.437996] [<ffffffff802eec80>] generic_handle_irq+0x50/0x70
| [ 4440.443705] [<ffffffff80c00cac>] do_IRQ+0x24/0x30
| [ 4440.448380] [<ffffffff807c8fc4>] plat_irq_dispatch+0x74/0x100
| [ 4440.454090] [<ffffffff80205560>] handle_int+0x140/0x14c
| [ 4440.459281] [<ffffffff803392fc>] smp_call_function_many_cond+0x40c/0x488
| [ 4440.465939] [<ffffffff803393e0>] smp_call_function+0x50/0xa0
| [ 4440.471562] [<ffffffff80219db4>] flush_tlb_range+0x9c/0x200
| [ 4440.477103] [<ffffffff8049434c>] tlb_flush+0xac/0xe8
| [ 4440.482034] [<ffffffff804970f4>] unmap_page_range+0xad4/0xb60
| [ 4440.487743] [<ffffffff80497694>] unmap_vmas+0x8c/0x120
| [ 4440.492848] [<ffffffff804a1688>] unmap_region+0xc8/0x180
| [ 4440.498126] [<ffffffff804a41b0>] __do_munmap+0x290/0x548
| [ 4440.503401] [<ffffffff804a44e8>] __vm_munmap+0x80/0xf8
| [ 4440.508505] [<ffffffff804a45c4>] sys_munmap+0x34/0x48
| [ 4440.513524] [<ffffffff8021a850>] syscall_common+0x34/0x58
| [ 4440.518889]

The bug has already been reported upstream and a patch has been proposed
[1]. Until it get fixes, this prevent the usage of the mipsel-osuosl-03
and mipsel-osuosl-05 buildds, hence the grave severity.

[1] https://lore.kernel.org/linux-mips/20231026111715.1281728-1-jiaxun.yang@flygoat.com/


Reply to: