panic: rw_enter: vmmaplk locking against myself

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

panic: rw_enter: vmmaplk locking against myself

Sebastien Marie-3
Hi,

I would like to report a panic encountered on one of my host (i386)
running -current (Feb 7, 2018).

The host is a desktop running with ddb.panic=0, so I don't have lot of
information (just the backtrace).

I report it in order to let people know about a possible problem. I am
not able to reproduce it.


panic: rw_enter: vmmaplk locking against myself
Starting stack trace...
panic() at panic+0xc1
panic() at panic+0xc1
_rw_enter(d0c1a118,41) at _rw_enter+0x21d
vm_map_lock_try_ln(d0c1a114,d0c1a114,101323) at vm_map_lock_try_ln+0x43
uvm_map(d0c1a114,f54296f4,2000,0,ffffffff,ffffffff,0) at uvm_map+0x171
km_alloc(2000,d0a0d630,d0a0d6e4,d0a0d71c) at km_alloc+0x171
_bus_dmamem_map(d0bd9a38,d2f7cbcc,1,2000,d2f7cbc8,5) at _bus_dmamem_map+0x3b
usb_block_allocmem(d0bd9a38,2000,10,f54297e0) at usb_block_allocmem+0xfb
usb_allocmem(d2faf000,1800,10,f54297e0) at usb_allocmem+0x77
ohci_alloc_std(d2faf000) at ohci_alloc_std+0xbf
ohci_device_intr_done(d2f4cd48) at ohci_device_intr_done+0x29
usb_transfer_complete(d2f4cd48) at usb_transfer_complete+0x18b
ohci_softintr(d2faf000) at ohci_softintr+0xd7
softintr_dispatch(1) at softintr_dispatch+0x92
Xsoftnet() at Xsoftnet+0x12
--- interrupt ---
_rb_insert(d0b78fb4,d2f57fac,d2e59008) at _rb_insert+0xad
uaddr_bestfit_insert(d0c1a114,d2f57fa0,d2e59008) at uaddr_bestfit_insert+0x1a
uvm_mapent_free_insert(d0c1a114,d2f57fa0,d2e59008) at uvm_mapent_free_insert+0x52
uvm_map_fix_space(d0c1a114,d2e59008,f53ea000,f53eb000,0) at uvm_map_fix_space+0x1ec
uvm_mapent_mkfree(d0c1a114,d2e59648,f54299bc,f5429a00,1) at uvm_mapent_mkfree+0xd8
uvm_unmap_remove(d0c1a114,f53ea000,f53eb000,f5429a00,0,1) at uvm_unmap_remove+0x285
sys_kbind(d2f2416c,f5429a78,f5429a70) at sys_kbind+0x28d
syscall() at syscall+0x1a0
--- syscall (number -813857448) ---
end of kernel
0x6:
End of stack trace.
syncing disks... 25 14 done


On this host, only the mouse is connected using usb.

$ doas usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), SiS(0x1039), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x1039), rev 1.00
 port 1 powered
 port 2 addr 2: low speed, power 100 mA, config 1, Microsoft 3-Button Mouse with IntelliEye(TM)(0x0040), Microsoft(0x045e), rev 3.00
 port 3 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x1039), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered

--
Sebastien Marie


OpenBSD 6.2-current (GENERIC) #397: Wed Feb  7 18:59:22 MST 2018
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Sempron(tm) 2400+ ("AuthenticAMD" 686-class, 256KB L2 cache) 1.69 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,MPC,MMXX,3DNOW2,3DNOW
real mem  = 1006059520 (959MB)
avail mem = 973824000 (928MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 03/10/06, BIOS32 rev. 0 @ 0xfdb10, SMBIOS rev. 2.3 @ 0xf0630 (21 entries)
bios0: vendor American Megatrends Inc. version "P2.10" date 03/10/2006
bios0: American Megatrends Inc. K7S41
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices PS2K(S4) USB1(S4) USB2(S4) EHCI(S4) LAN_(S4) MDM_(S4) AUD_(S4) PCI0(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 335MHz
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(@1 halt!)
acpipwrres0 at acpi0: URP1, resource for UAR1
acpipwrres1 at acpi0: URP2
acpipwrres2 at acpi0: FDDP
acpipwrres3 at acpi0: LPTP
acpibtn0 at acpi0: PWRB
"PNPB02F" at acpi0 not configured
"PNPB006" at acpi0 not configured
bios0: ROM list: 0xc0000/0x8000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "SiS 741 PCI" rev 0x03
sisagp0 at pchb0
agp0 at sisagp0: aperture at 0xd0000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "SiS 648FX AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "SiS 6330 VGA" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 "SiS 85C503 System" rev 0x25
pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x00: 741: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <Maxtor 6E040L0>
wd0: 16-sector PIO, LBA48, 39205MB, 80293248 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
pciide0: channel 1 disabled (no drives)
auich0 at pci0 dev 2 function 7 "SiS 7012 AC97" rev 0xa0: apic 2 int 18, SiS7012
ac97: codec id 0x434d4983 (C-Media Electronics CMI9761A+)
audio0 at auich0
ohci0 at pci0 dev 3 function 0 "SiS 5597/5598 USB" rev 0x0f: apic 2 int 20, version 1.0, legacy support
ohci1 at pci0 dev 3 function 1 "SiS 5597/5598 USB" rev 0x0f: apic 2 int 21, version 1.0, legacy support
ehci0 at pci0 dev 3 function 2 "SiS 7002 USB" rev 0x00: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "SiS EHCI root hub" rev 2.00/1.00 addr 1
sis0 at pci0 dev 4 function 0 "SiS 900 10/100BaseTX" rev 0x90: apic 2 int 19, address 00:13:8f:95:b6:28
rlphy0 at sis0 phy 1: RTL8201L 10/100 PHY, rev. 1
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83697HF rev 0x12
lm1 at wbsio0 port 0x290/8: W83697HF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "SiS OHCI root hub" rev 1.00/1.00 addr 1
uhidev0 at uhub1 port 2 configuration 1 interface 0 "Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)" rev 1.10/3.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (a3eef676ec76deed.a) swap on wd0b dump on wd0b
panic: rw_enter: vmmaplk locking against myself
Starting stack trace...
panic() at panic+0xc1
panic() at panic+0xc1
_rw_enter(d0c1a118,41) at _rw_enter+0x21d
vm_map_lock_try_ln(d0c1a114,d0c1a114,101323) at vm_map_lock_try_ln+0x43
uvm_map(d0c1a114,f54296f4,2000,0,ffffffff,ffffffff,0) at uvm_map+0x171
km_alloc(2000,d0a0d630,d0a0d6e4,d0a0d71c) at km_alloc+0x171
_bus_dmamem_map(d0bd9a38,d2f7cbcc,1,2000,d2f7cbc8,5) at _bus_dmamem_map+0x3b
usb_block_allocmem(d0bd9a38,2000,10,f54297e0) at usb_block_allocmem+0xfb
usb_allocmem(d2faf000,1800,10,f54297e0) at usb_allocmem+0x77
ohci_alloc_std(d2faf000) at ohci_alloc_std+0xbf
ohci_device_intr_done(d2f4cd48) at ohci_device_intr_done+0x29
usb_transfer_complete(d2f4cd48) at usb_transfer_complete+0x18b
ohci_softintr(d2faf000) at ohci_softintr+0xd7
softintr_dispatch(1) at softintr_dispatch+0x92
Xsoftnet() at Xsoftnet+0x12
--- interrupt ---
_rb_insert(d0b78fb4,d2f57fac,d2e59008) at _rb_insert+0xad
uaddr_bestfit_insert(d0c1a114,d2f57fa0,d2e59008) at uaddr_bestfit_insert+0x1a
uvm_mapent_free_insert(d0c1a114,d2f57fa0,d2e59008) at uvm_mapent_free_insert+0x52
uvm_map_fix_space(d0c1a114,d2e59008,f53ea000,f53eb000,0) at uvm_map_fix_space+0x1ec
uvm_mapent_mkfree(d0c1a114,d2e59648,f54299bc,f5429a00,1) at uvm_mapent_mkfree+0xd8
uvm_unmap_remove(d0c1a114,f53ea000,f53eb000,f5429a00,0,1) at uvm_unmap_remove+0x285
sys_kbind(d2f2416c,f5429a78,f5429a70) at sys_kbind+0x28d
syscall() at syscall+0x1a0
--- syscall (number -813857448) ---
end of kernel
0x6:
End of stack trace.
syncing disks... 25 14 done