NetBSD Problem Report #51453

From www@NetBSD.org  Wed Aug 31 07:21:14 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C83267A281
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 31 Aug 2016 07:21:14 +0000 (UTC)
Message-Id: <20160831072113.4C9117A2AD@mollari.NetBSD.org>
Date: Wed, 31 Aug 2016 07:21:13 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: mutex_vector_enter: locking against myself on RPi
X-Send-Pr-Version: www-1.0

>Number:         51453
>Category:       port-arm
>Synopsis:       mutex_vector_enter: locking against myself on RPi
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    skrll
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 31 07:25:01 +0000 2016
>Closed-Date:    Sat Feb 20 14:50:47 +0000 2021
>Last-Modified:  Sat Feb 20 14:50:47 +0000 2021
>Originator:     coypu
>Release:        7.99.36
>Organization:
>Environment:
NetBSD rpi 7.99.36 NetBSD 7.99.36 (RPI.201608290300Z) evbarm
>Description:
Inserting USB, etc. got the following:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 7.99.36 (RPI.201608290300Z)
total memory = 192 MB
avail memory = 180 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
cpu0 at mainbus0 core 0: 700 MHz ARM1176JZ-S r0p7 (ARM11J V6ZK core)
cpu0: DC enabled IC enabled WB enabled LABT
cpu0: 16KB/32B 4-way L1 VIPT Instruction cache
cpu0: 16KB/32B 4-way write-back-locking-C L1 VIPT Data cache
vfp0 at cpu0: VFP11, rounding, exceptions
obio0 at mainbus0
bcmicu0 at obio0
bcmmbox0 at obio0 intr 65: VC mailbox
vcmbox0 at bcmmbox0
bcmtmr0 at obio0 intr 3: VC System Timer
vchiq0 at obio0 intr 66: BCM2835 VCHIQ
bcmpm0 at obio0: Power management, Reset and Watchdog controller
bcmdmac0 at obio0: DMA0 DMA2 DMA4 DMA5 DMA8 DMA9 DMA10
bcmrng0 at obio0: RNG
plcom0 at obio0 intr 57
plcom0: txfifo disabled
plcom0: console
genfb0 at obio0: switching to framebuffer console
genfb0: framebuffer at 0x4e876000, size 1280x720, depth 32, stride 5120
wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (default, vt100 emulation)
sdhc0 at obio0 intr 62: SDHC controller
sdhc0: interrupting on intr 62
dwctwo0 at obio0 intr 9: USB controller
bcmspi0 at obio0 intr 54: SPI
spi0 at bcmspi0: SPI bus
bsciic0 at obio0 intr 53: BSC0
iic0 at bsciic0: I2C bus
bsciic1 at obio0 intr 53: BSC1
iic1 at bsciic1: I2C bus
bcmgpio0 at obio0: GPIO [0...31]
gpio0 at bcmgpio0: 32 pins
bcmgpio1 at obio0: GPIO [32...53]
gpio1 at bcmgpio1: 22 pins
bcmcm at obio0 not configured
bcmpwm at obio0 not configured
usb0 at dwctwo0: USB revision 2.0
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "bcmtmr0" frequency 1000000 Hz quality 100
sdhc0: SDHC 3.0, rev 153, platform DMA, 250000 kHz, HS SDR50 3.3V, re-tuning mode 1, 1024 byte blocks
sdmmc0 at sdhc0 slot 0
uhub0 at usb0: vendor 0000 DWC2 root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
IPsec: Initialized Security Association Processing.
ld0 at sdmmc0: <0x03:0x5344:SE16G:0x80:0xec8c1be3:0x0fc>
ld0: 15193 MB, 7717 cyl, 64 head, 63 sec, 512 bytes/sect x 31116288 sectors
ld0: 4-bit width, SDR50, 100.000 MHz
uhub1 at uhub0 port 1: vendor 0424 product 9512, class 9/0, rev 2.00/2.00, addr 2
uhub1: multiple transaction translators
uhub1: 3 ports with 2 removable, self powered
usmsc0 at uhub1 port 1
usmsc0: vendor 0424 product ec00, rev 2.00/2.00, addr 3
usmsc0: Ethernet address b8:27:eb:a8:9d:ee
ukphy0 at usmsc0 phy 1: OUI 0x00800f, model 0x000c, rev. 3
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
urtwn0 at uhub1 port 2
urtwn0: Realtek 802.11n WLAN Adapter, rev 2.00/2.00, addr 4
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R, address 74:da:38:5b:6c:6c
urtwn0: 1 rx pipe, 2 tx pipes
urtwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
urtwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
uhub0: illegal enable change, port 1
WARNING: 1 error while detecting hardware; check system log.
boot device: ld0
root on ld0a dumps on ld0b
root file system type: ffs
kern.module.path=/stand/evbarm/7.99.36/modules
vchiq: local ver 6 (min 3), remote ver 6.
vcaudio0 at vchiq0: auds
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
audio0 at vcaudio0: half duplex, playback, capture, independent
wsdisplay0: screen 4 added (default, vt100 emulation)
urtwn0: detached
urtwn0: at uhub1 port 2 (addr 4) disconnected
uhidev0 at uhub1 port 2 configuration 1 interface 0
uhidev0: LITEON Technology USB Keyboard, rev 2.00/1.14, addr 4, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
panic: lock error: Mutex: mutex_vector_enter: locking against myself: lock 0x8bdae02c cpu 0 lwp 0x8b926600
cpu0: Begin traceback...
0x8a1f57d4: netbsd:db_panic+0xc
0x8a1f57ec: netbsd:vpanic+0x144
0x8a1f5804: netbsd:snprintf
0x8a1f583c: netbsd:lockdebug_abort+0x60
0x8a1f5884: netbsd:mutex_enter+0x1b8
0x8a1f58dc: netbsd:pmap_fault_fixup+0x4c
0x8a1f5964: netbsd:data_abort_handler+0x144
0x8a1f59fc: netbsd:address_exception_entry+0x58
0x8a1f5a34: netbsd:dwc2_hcd_select_transactions+0xb0
0x8a1f5a84: netbsd:dwc2_handle_hcd_intr+0x464
0x8a1f5a9c: netbsd:dwc2_interrupt+0x28
0x8a1f5abc: netbsd:dwc2_intr+0xd0
0x8a1f5adc: netbsd:pic_dispatch+0x28
0x8a1f5b5c: netbsd:pic_do_pending_ints+0x29c
0x8a1f5be4: netbsd:irq_entry+0x60
0x8a1f5c54: netbsd:pmap_remove+0x194
0x8a1f5c9c: netbsd:uvm_unmap_remove+0x208
0x8a1f5ccc: netbsd:uvm_unmap1+0x3c
0x8a1f5cfc: netbsd:uvmspace_exec+0xdc
0x8a1f5d94: netbsd:execve_runproc+0x23c
0x8a1f5f1c: netbsd:execve1+0x44
0x8a1f5f34: netbsd:sys_execve+0x20
0x8a1f5fac: Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

...
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-arm/51453: mutex_vector_enter: locking against myself on RPi
Date: Wed, 31 Aug 2016 08:00:57 +0000

 If it's interesting, I have a second similar panic.

 ...
 uhidev0: LITEON Technology USB Keyboard, rev 2.00/1.14, addr 5, iclass
 3/1
 ukbd0 at uhidev0: 8 modifier keys, 6 key codes

 Non-emulated page fault with intr_depth > 0
 Fatal kernel mode data abort: 'Translation Fault (S)'
 trapframe: 0x8a22dbb0
 FSR=00000005, FAR=0000003a, spsr=200d0113
 r0 =8be3e348, r1 =8bfa8ac4, r2 =00000000, r3 =00000001
 r4 =8bfa89a4, r5 =8bd8a460, r6 =00000000, r7 =8be3e008
 r8 =8bd89f60, r9 =8bfa8968, r10=8be3e348, r11=8a22dc44
 r12=8a22dc48, ssp=8a22dc00, slr=8020c19c, pc =8020b2c0

 panic: lock error: Mutex: mutex_vector_enter: locking against myself:
 lock 0x8be3e040 cpu 0 lwp 0x8b924600
 cpu0: Begin traceback...
 0x8a22d99c: netbsd:db_panic+0xc
 0x8a22d9b4: netbsd:vpanic+0x144
 0x8a22d9cc: netbsd:snprintf
 0x8a22da04: netbsd:lockdebug_abort+0x60
 0x8a22da34: netbsd:dwc2_softintr+0x30
 0x8a22da4c: netbsd:usbd_set_polling+0x44
 0x8a22da6c: netbsd:ukbd_cnpollc+0x54
 0x8a22da84: netbsd:cnpollc+0x44
 0x8a22dafc: netbsd:kdb_trap+0x7c
 0x8a22db24: netbsd:dab_fatal+0x11c
 0x8a22dbac: netbsd:data_abort_handler+0x1d4
 0x8a22dc44: netbsd:address_exception_entry+0x58
 0x8a22dc7c: netbsd:dwc2_hcd_select_transactions+0xb0
 0x8a22dccc: netbsd:dwc2_handle_hcd_intr+0x464
 0x8a22dce4: netbsd:dwc2_interrupt+0x28
 0x8a22dd04: netbsd:dwc2_intr+0xd0
 0x8a22dd24: netbsd:pic_dispatch+0x28
 0x8a22dda4: netbsd:pic_do_pending_ints+0x29c
 0x8a22df24: netbsd:irq_entry+0x60
 0x8a22dfac: netbsd:data_abort_handler+0x188
 cpu0: End traceback...

Responsible-Changed-From-To: port-arm-maintainer->skrll
Responsible-Changed-By: skrll@NetBSD.org
Responsible-Changed-When: Thu, 01 Sep 2016 06:59:21 +0000
Responsible-Changed-Why:
dwc2 bug


State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 26 Feb 2017 16:06:14 +0000
State-Changed-Why:


State-Changed-From-To: closed->open
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Sun, 26 Feb 2017 19:08:42 +0000
State-Changed-Why:
not known fixed (yet)


State-Changed-From-To: open->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Sat, 20 Feb 2021 09:07:24 +0000
State-Changed-Why:
Should we consider this closed and create new PR if it happens again?


State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 20 Feb 2021 14:50:47 +0000
State-Changed-Why:
Sounds good to me


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.