[Bug 216723] New: BUG: spinlock wrong CPU on CPU#0, swapper/0/1 with CONFIG_NETCONSOLE=y (on a PowerMac G4 DP)

bugzilla-daemon at kernel.org bugzilla-daemon at kernel.org
Tue Nov 22 11:52:21 AEDT 2022


https://bugzilla.kernel.org/show_bug.cgi?id=216723

            Bug ID: 216723
           Summary: BUG: spinlock wrong CPU on CPU#0, swapper/0/1 with
                    CONFIG_NETCONSOLE=y (on a PowerMac G4 DP)
           Product: Platform Specific/Hardware
           Version: 2.5
    Kernel Version: 6.1-rc6
          Hardware: PPC-32
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: PPC-32
          Assignee: platform_ppc-32 at kernel-bugs.osdl.org
          Reporter: erhard_f at mailbox.org
        Regression: No

Created attachment 303258
  --> https://bugzilla.kernel.org/attachment.cgi?id=303258&action=edit
kernel dmesg (6.1-rc6, PowerMac G4 DP)

With netconsole on I get hits like this sometimes at boot:

[...]
netpoll: netconsole: local port 6666
netpoll: netconsole: local IPv4 address 192.168.2.5
netpoll: netconsole: interface 'eth0'
netpoll: netconsole: remote port 6666
netpoll: netconsole: remote IPv4 address 192.168.2.2
netpoll: netconsole: remote ethernet address 70:85:c2:30:ec:01
netpoll: netconsole: device eth0 not up yet, forcing it
sungem_phy: PHY ID: 2060e1, addr: 0
gem 0002:20:0f.0 eth0: Found BCM5421 PHY
gem 0002:20:0f.0 eth0: Link is up at 1000 Mbps, full-duplex
gem 0002:20:0f.0 eth0: Pause is enabled (rxfifo: 10240 off: 7168 on: 5632)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
printk: console [netcon0] enabled
------------[ cut here ]------------
netpoll_send_skb_on_dev(): eth0 enabled interrupts in poll
(gem_start_xmit+0x0/0x7ac)
WARNING: CPU: 1 PID: 1 at net/core/netpoll.c:353 netpoll_send_skb+0x378/0x3cc
Modules linked in:
CPU: 1 PID: 1 Comm: swapper/0 Tainted: G                T  6.1.0-rc6-PMacG4 #21
Hardware name: PowerMac3,6 7455 0x80010303 PowerMac
NIP:  c0b27a78 LR: c0b27a78 CTR: 00000000
REGS: f1033950 TRAP: 0700   Tainted: G                T   (6.1.0-rc6-PMacG4)
MSR:  00029032 <EE,ME,IR,DR,RI>  CR: 44002884  XER: 00000000

GPR00: 00000000 f1033a10 c192a5a0 00000000 00000000 00000000 00000000 00000000 
GPR08: 00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000 
GPR16: fe20677a c1579b80 00000075 c168f9c8 c168f990 00009032 c18575b0 c329c090 
GPR24: 00000000 c1857558 00001032 c348fe80 c3475404 c3480260 c329c000 c0f373e0 
NIP [c0b27a78] netpoll_send_skb+0x378/0x3cc
LR [c0b27a78] netpoll_send_skb+0x378/0x3cc
Call Trace:
[f1033a10] [c0b27a78] netpoll_send_skb+0x378/0x3cc (unreliable)
[f1033a50] [c09fe8f4] write_msg+0x198/0x1b4
[f1033a90] [c0105e8c] console_emit_next_record.constprop.0+0x284/0x488
[f1033bc0] [c0106408] console_unlock+0x378/0x420
[f1033c60] [c0108228] vprintk_emit+0x2ec/0x3d4
[f1033ca0] [c0108d84] _printk+0x9c/0xe8
[f1033d20] [c01068c4] register_console+0x39c/0x490
[f1033d50] [c1450410] init_netconsole+0x388/0x518
[f1033df0] [c0007bb8] do_one_initcall+0xb0/0x33c
[f1033ec0] [c1404a18] kernel_init_freeable+0x2bc/0x3fc
[f1033f10] [c0008128] kernel_init+0x28/0x178
[f1033f30] [c0022338] ret_from_kernel_thread+0x5c/0x64
Instruction dump:
387e0078 99490002 4b80f78d 83fe0078 387f0010 4b80f781 80bf0010 3c60c0f7 
38634880 7fc4f378 38630540 4b53bed1 <0fe00000> 92a10014 7d2000a6 71298000 
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
raw_local_irq_restore() called with IRQs enabled
WARNING: CPU: 1 PID: 1 at kernel/locking/irqflag-debug.c:10
warn_bogus_irq_restore+0x3c/0x60
Modules linked in:
CPU: 1 PID: 1 Comm: swapper/0 Tainted: G        W       T  6.1.0-rc6-PMacG4 #21
Hardware name: PowerMac3,6 7455 0x80010303 PowerMac
NIP:  c0d654f0 LR: c0d654f0 CTR: 00000000
REGS: f1033940 TRAP: 0700   Tainted: G        W       T   (6.1.0-rc6-PMacG4)
MSR:  00029032 <EE,ME,IR,DR,RI>  CR: 44002884  XER: 20000000

GPR00: 00000000 f1033a00 c192a5a0 00000000 00000000 00000000 00000000 00000000 
GPR08: 00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000 
GPR16: fe20677a c1579b80 00000075 c168f9c8 c168f990 00009032 00001032 c171b280 
GPR24: 00000038 c3475404 00001032 c348fe80 c3475404 c3480260 c329c000 00000000 
NIP [c0d654f0] warn_bogus_irq_restore+0x3c/0x60
LR [c0d654f0] warn_bogus_irq_restore+0x3c/0x60
Call Trace:
[f1033a00] [c0d654f0] warn_bogus_irq_restore+0x3c/0x60 (unreliable)
[f1033a10] [c0b278e0] netpoll_send_skb+0x1e0/0x3cc
[f1033a50] [c09fe8f4] write_msg+0x198/0x1b4
[f1033a90] [c0105e8c] console_emit_next_record.constprop.0+0x284/0x488
[f1033bc0] [c0106408] console_unlock+0x378/0x420
[f1033c60] [c0108228] vprintk_emit+0x2ec/0x3d4
[f1033ca0] [c0108d84] _printk+0x9c/0xe8
[f1033d20] [c01068c4] register_console+0x39c/0x490
[f1033d50] [c1450410] init_netconsole+0x388/0x518
[f1033df0] [c0007bb8] do_one_initcall+0xb0/0x33c
[f1033ec0] [c1404a18] kernel_init_freeable+0x2bc/0x3fc
[f1033f10] [c0008128] kernel_init+0x28/0x178
[f1033f30] [c0022338] ret_from_kernel_thread+0x5c/0x64
Instruction dump:
38000000 38600000 39400000 4ca20020 9421fff0 3c60c0da 7c0802a6 39400001 
3863aca0 9949bc5c 90010014 4b2fe459 <0fe00000> 80010014 38210010 7c0803a6 
---[ end trace 0000000000000000 ]---
BUG: spinlock wrong CPU on CPU#0, swapper/0/1
 lock: 0xc168f840, .magic: dead4ead, .owner: swapper/0/1, .owner_cpu: 1
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W       T  6.1.0-rc6-PMacG4 #21
Hardware name: PowerMac3,6 7455 0x80010303 PowerMac
Call Trace:
[f1033a20] [c0d1e7e0] dump_stack_lvl+0x60/0xa4 (unreliable)
[f1033a40] [c01003ac] do_raw_spin_unlock+0x184/0x188
[f1033a70] [c0d71e08] _raw_spin_unlock_irqrestore+0x18/0x78
[f1033a90] [c0105e8c] console_emit_next_record.constprop.0+0x284/0x488
[f1033bc0] [c0106408] console_unlock+0x378/0x420
[f1033c60] [c0108228] vprintk_emit+0x2ec/0x3d4
[f1033ca0] [c0108d84] _printk+0x9c/0xe8
[f1033d20] [c01068c4] register_console+0x39c/0x490
[f1033d50] [c1450410] init_netconsole+0x388/0x518
[f1033df0] [c0007bb8] do_one_initcall+0xb0/0x33c
[f1033ec0] [c1404a18] kernel_init_freeable+0x2bc/0x3fc
[f1033f10] [c0008128] kernel_init+0x28/0x178
[f1033f30] [c0022338] ret_from_kernel_thread+0x5c/0x64
netconsole: network logging started
[...]

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.


More information about the Linuxppc-dev mailing list