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

2023-12-13 Thread Salvatore Bonaccorso
Contol: tags -1 + fixed-upstream
Control: found -1 6.1.66-1
Control: found -1 6.5.13-1

On Sun, Oct 29, 2023 at 02:16:57PM +0100, Aurelien Jarno wrote:
> Source: linux
> Version: 5.10.197-1
> Severity: grave
> Tags: upstream patch
> X-Debbugs-Cc: d...@debian.org, debian-m...@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 :  80bf9030 0001 
> 98020f844000
> | [ 4390.536669] $ 4 : 9801017bb2c0 80dbc0b8 0008 
> 02008200
> | [ 4390.544634] $ 8 : 0001 0001  
> 02e27c19
> | [ 4390.552600] $12 : 5400cce0 80199c00 01ea 
> 01ea
> | [ 4390.560565] $16 : 980100253700 80ecc740  
> 9800023cb8c0
> | [ 4390.568530] $20 : 80ecdce0 9801017bb2c0 9801017bb8e0 
> 
> | [ 4390.576495] $24 : 0028 98020f847e58
> | [ 4390.584461] $28 : 98020f844000 98020f847d40 9800023cb8c0 
> 80bf925c
> | [ 4390.592426] Hi : 00de
> | [ 4390.595974] Lo : d70a40ec
> | [ 4390.599532] epc : 802177c0 _save_fp+0x10/0xa0
> | [ 4390.604727] ra : 80bf925c __schedule+0x804/0xe08
> | [ 4390.610263] Status: 5400cce2 KX SX UX KERNEL EXL
> | [ 4390.614949] Cause : 102c (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=743a6e5b, task=63cca72a, tls=00fff0de98e0)
> | [ 4390.681930] Stack : 80ed  80ed 
> 98020f6e8c40
> | [ 4390.689897] 98020004 d37c8307c148dccb 9801017bb2c0 
> 
> | [ 4390.697863]  0001 90
> | [ 4390.721759] 980104957480 98020f6e8c00  
> 80ed
> | [ 4390.729724] 98020f6e8c40 98020f6e8c08  
> 
> | [ 4390.737689]  9801017bb2c0 802c61f8 
> 98020f6e8c48
> | [ 4390.745655] 98020f6e8c48 2d7071732d756f69 003438323232 
> d37c8307c148dccb
> | [ 4390.753621] 807106e0 98020f6e8c00 9801097e90c8 
> 7400cce0
> | [ 4390.761588] ...
> | [ 4390.764017] Call Trace:
> | [ 4390.766453] [] _save_fp+0x10/0xa0
> | [ 4390.771306] [] __schedule+0x804/0xe08
> | [ 4390.776497] [] schedule+0x58/0x150
> | [ 4390.781432] [] io_sq_thread+0x550/0x578
> | [ 4390.786798] [] ret_from_kernel_thread+0x14/0x1c
> | [ 4390.792856]
> | [ 4390.794330] Code: 000c6940 05a10011   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/0x4002 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:0x0010
> | [ 4411.555860] Stack : 80ed 80bff978 80ed 
> 8031bbd4
> | [ 4411.563826] 0004 d37c8307c148dccb 98010025 
> 00208040
> | [ 4411.571791] 80ed 9801002c7c98 80ed 
> 80f62ce0
> | [ 4411.579756]  0006 0001 
> 80bf98b8
> | [ 4411.587721]  0001000f9aa0  
> 80bfdb98
> | [ 4411.595686] 8030bbc8 5400cce1 80ed 
> 
> | [ 4411.603651] 98000236cc78 0001000f9aa0 80319968 
> 0842
> | [ 4411.611617] 98010025 d37c8307c148dccb 80f62a80 
> 
> | [ 4411.619582] 

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

2023-12-13 Thread Debian Bug Tracking System
Processing control commands:

> found -1 6.1.66-1
Bug #1055021 [src:linux] linux: mips64el loongson3 kernel crashes when running 
cmake
Marked as found in versions linux/6.1.66-1.
> found -1 6.5.13-1
Bug #1055021 [src:linux] linux: mips64el loongson3 kernel crashes when running 
cmake
Marked as found in versions linux/6.5.13-1.

-- 
1055021: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1055021
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



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

2023-10-29 Thread Aurelien Jarno
Source: linux
Version: 5.10.197-1
Severity: grave
Tags: upstream patch
X-Debbugs-Cc: d...@debian.org, debian-m...@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 :  80bf9030 0001 
98020f844000
| [ 4390.536669] $ 4 : 9801017bb2c0 80dbc0b8 0008 
02008200
| [ 4390.544634] $ 8 : 0001 0001  
02e27c19
| [ 4390.552600] $12 : 5400cce0 80199c00 01ea 
01ea
| [ 4390.560565] $16 : 980100253700 80ecc740  
9800023cb8c0
| [ 4390.568530] $20 : 80ecdce0 9801017bb2c0 9801017bb8e0 

| [ 4390.576495] $24 : 0028 98020f847e58
| [ 4390.584461] $28 : 98020f844000 98020f847d40 9800023cb8c0 
80bf925c
| [ 4390.592426] Hi : 00de
| [ 4390.595974] Lo : d70a40ec
| [ 4390.599532] epc : 802177c0 _save_fp+0x10/0xa0
| [ 4390.604727] ra : 80bf925c __schedule+0x804/0xe08
| [ 4390.610263] Status: 5400cce2 KX SX UX KERNEL EXL
| [ 4390.614949] Cause : 102c (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=743a6e5b, task=63cca72a, tls=00fff0de98e0)
| [ 4390.681930] Stack : 80ed  80ed 
98020f6e8c40
| [ 4390.689897] 98020004 d37c8307c148dccb 9801017bb2c0 

| [ 4390.697863]  0001 90
| [ 4390.721759] 980104957480 98020f6e8c00  
80ed
| [ 4390.729724] 98020f6e8c40 98020f6e8c08  

| [ 4390.737689]  9801017bb2c0 802c61f8 
98020f6e8c48
| [ 4390.745655] 98020f6e8c48 2d7071732d756f69 003438323232 
d37c8307c148dccb
| [ 4390.753621] 807106e0 98020f6e8c00 9801097e90c8 
7400cce0
| [ 4390.761588] ...
| [ 4390.764017] Call Trace:
| [ 4390.766453] [] _save_fp+0x10/0xa0
| [ 4390.771306] [] __schedule+0x804/0xe08
| [ 4390.776497] [] schedule+0x58/0x150
| [ 4390.781432] [] io_sq_thread+0x550/0x578
| [ 4390.786798] [] ret_from_kernel_thread+0x14/0x1c
| [ 4390.792856]
| [ 4390.794330] Code: 000c6940 05a10011   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/0x4002 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:0x0010
| [ 4411.555860] Stack : 80ed 80bff978 80ed 
8031bbd4
| [ 4411.563826] 0004 d37c8307c148dccb 98010025 
00208040
| [ 4411.571791] 80ed 9801002c7c98 80ed 
80f62ce0
| [ 4411.579756]  0006 0001 
80bf98b8
| [ 4411.587721]  0001000f9aa0  
80bfdb98
| [ 4411.595686] 8030bbc8 5400cce1 80ed 

| [ 4411.603651] 98000236cc78 0001000f9aa0 80319968 
0842
| [ 4411.611617] 98010025 d37c8307c148dccb 80f62a80 

| [ 4411.619582] 80ed 80ed 80ecdce0 
8030b40c
| [ 4411.627548] 80ef11f0 80ed 811f 
80f6
| [ 4411.635515] ...
| [ 4411.637947] Call Trace:
| [ 4411.640384] [] __schedule+0x50c/0xe08
| [ 4411.645586] [] schedule+0x58/0x150
| [ 4411.650527] [] schedule_timeout+0x98/0x1e8
| [ 4411.656156]