panic: kernel diagnostic assertion "p->p_wchan == NULL" failed

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

panic: kernel diagnostic assertion "p->p_wchan == NULL" failed

joshua stein
>Synopsis: panic: kernel diagnostic assertion "p->p_wchan == NULL" failed
>Category: kernel
>Environment:
        System      : OpenBSD 6.7
        Details     : OpenBSD 6.7-current (GENERIC.MP) #359: Sun Jul 19 01:36:17 MDT 2020
                         [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
splassert: assertwaitok: want 0 have 4
panic: kernel diagnostic assertion "p->p_wchan == NULL" failed: file "/usr/src/sys/kern/kern_sched.c", line 353
Stopped at db_enter+0x10: popq %rbp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND                      
db_enter() at db_enter+0x10
panic(ffffffff81e00828) at panic+0x128
__assert(ffffffff81e662e1,ffffffff81df182a,161,ffffffff81dead80) at __assert+0x2b
sched_chooseproc() at sched_chooseproc+0x23c
mi_switch() at mi_switch+0x16a
sleep_finish(ffff800022520218,1) at sleep_finish+0x84
sleep_finish_all(ffff800022520218,1) at sleep_finish_all+0x21
tsleep(ffff800000ac7200,119,ffffffff81e5f7e9,1) at tsleep+0xd6
ttyretype(ffff800000ac7200) at ttyretype+0x2c1
ttyrub(61,ffff800000ac7200) at ttyrub+0x296
ttyinput(7f,ffff800000ac7200) at ttyinput+0x894
wsdisplay_kbdinput(ffff800000aa4800,80000200,ffffffff8214fee0,1) at wsdisplay_kbdinput+0xaa
wskbd_repeat(ffff80000059f400) at wskbd_repeat+0x54
softclock(0) at softclock+0x143
end trace frame: 0xffff800022520510, count: 0
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.
ddb{0}>    PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND        
 95235  417386  13622   1000  3    0x100083  nanosleep     sleep          
 92726     714      1      0  3    0x100083  ttyin         getty          
 54535  367099      1      0  3    0x100083  ttyin         getty          
 61298  377358      1      0  3    0x100083  ttyin         getty          
 50914   25032      1      0  3    0x100083  ttyin         getty          
 13622  256267      1   1000  3        0x8b  pause         zsh            
 27970   89345      1      0  3    0x100098  poll          cron          
 27086  124705      1      0  3        0x80  kqread        apmd          
   635  283574      1     99  3    0x100090  poll          sndiod        
 94106  299997      1    110  3    0x100090  poll          sndiod        
 15101  427156  50294     95  3    0x100092  kqread        smtpd          
  2622  447026  50294    103  3    0x100092  kqread        smtpd          
  8133  120267  50294     95  3    0x100092  kqread        smtpd          
 58744  371200  50294     95  3    0x100092  kqread        smtpd          
  6766  246437  50294     95  3    0x100092  kqread        smtpd          
 73248  319291  50294     95  3    0x100092  kqread        smtpd          
 50294  359602      1      0  3    0x100080  kqread        smtpd          
 69630  152270      1      0  3        0x80  select        sshd          
 42837  498062      1      0  3    0x100080  poll          ntpd          
 93719  309023  88599     83  3    0x100092  poll          ntpd          
 88599  505189      1     83  3    0x100092  poll          ntpd          
 46954  486069  88747     74  3    0x100092  bpf           pflogd        
 88747  191508      1      0  3        0x80  netio         pflogd        
 27991  489183  76346     73  3    0x100090  kqread        syslogd        
 76346   22579      1      0  3    0x100082  netio         syslogd        
  3500  500706      1     77  3    0x100090  poll          dhclient      
 34202   74190      1      0  3        0x80  poll          dhclient      
 25647  229537  39826    115  3    0x100092  kqread        slaacd        
 93406  409450  39826    115  3    0x100092  kqread        slaacd        
 39826  140627      1      0  3    0x100080  kqread        slaacd        
 83062  368808      0      0  3     0x14200  bored         i915-userptr-acq
 36069  209829      0      0  3     0x14200  bored         i915_flip      
 93437  164764      0      0  3     0x14200  bored         i915_modeset  
 15782  454241      0      0  3     0x14200  bored         i915-dp        
 47677   30967      0      0  3     0x14200  bored         i915          
 12555  298661      0      0  3     0x14200  bored         smr            
 99642  122374      0      0  3     0x14200  pgzero        zerothread    
 38899  508278      0      0  3     0x14200  aiodoned      aiodoned      
 83433  375664      0      0  3     0x14200  syncer        update        
 57438  226169      0      0  3     0x14200  cleaner       cleaner        
 50849  208387      0      0  3     0x14200  reaper        reaper        
 76534  345574      0      0  3     0x14200  pgdaemon      pagedaemon    
 25908   84585      0      0  3     0x14200  bored         srdis          
   983  490844      0      0  3     0x14200  bored         crynlk        
  4504  472641      0      0  3     0x14200  bored         crypto        
 92241  425144      0      0  3     0x14200  mmctsk        sdmmc0        
 69940  342159      0      0  3     0x14200  usbtsk        usbtask        
 34468  123103      0      0  3     0x14200  usbatsk       usbatsk        
 50494  464454      0      0  3     0x14200  bored         drmtskl        
  3161  454623      0      0  3     0x14200  bored         drmlwq        
 64185  261342      0      0  3     0x14200  bored         drmlwq        
 97888  207279      0      0  3     0x14200  bored         drmlwq        
 59978  193168      0      0  3     0x14200  bored         drmlwq        
  1196   38755      0      0  3     0x14200  bored         drmubwq        
 83541  483035      0      0  3     0x14200  bored         drmubwq        
 32003  465911      0      0  3     0x14200  bored         drmubwq        
 45328  247556      0      0  3     0x14200  bored         drmubwq        
 46542  209031      0      0  3     0x14200  bored         drmhpwq        
 22379   10504      0      0  3     0x14200  bored         drmhpwq        
 48272  107880      0      0  3     0x14200  bored         drmhpwq        
 25550  233653      0      0  3     0x14200  bored         drmhpwq        
 96755  189015      0      0  3     0x14200  bored         drmwq          
 82759  181136      0      0  3     0x14200  bored         drmwq          
 87264  193635      0      0  3     0x14200  bored         drmwq          
 91415   27992      0      0  3     0x14200  bored         drmwq          
 59967  261028      0      0  3  0x40014200  acpi0         acpi0          
 76587  106076      0      0  7  0x40014200                idle1          
 76937   39077      0      0  3     0x14200  bored         sensors        
 75042  231973      0      0  3     0x14200  bored         softnet        
 58611  188797      0      0  3     0x14200  bored         systqmp        
 37159  434079      0      0  3     0x14200  bored         systq          
 15506  416308      0      0  3  0x40014200  bored         softclock      
*84254   73595      0      0  2  0x40014280  ttyretype     idle0          
     1  282039      0      0  3        0x82  wait          init          
     0       0     -1      0  3     0x10200  scheduler     swapper        

>How-To-Repeat:
        At console:

        $ while true; do clear; sysctl hw.sensors.acpibat0; sleep 1; done

        While this is running, type a few letters, then hold down backspace
        until it panics.
>Fix:


dmesg:
OpenBSD 6.7-current (GENERIC.MP) #359: Sun Jul 19 01:36:17 MDT 2020
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8496283648 (8102MB)
avail mem = 8223744000 (7842MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (63 entries)
bios0: vendor LENOVO version "7NETC2WW (2.22 )" date 03/22/2011
bios0: LENOVO 7673AS1
acpi0 at bios0: ACPI 3.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC SLAC BOOT ASF! SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) EHC0(S3) EHC1(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz, 2194.87 MHz, 06-0f-0a
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz, 1995.00 MHz, 06-0f-0a
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: disabling user TSC (skew=-326990)
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins, remapped
acpimcfg0 at acpi0
acpimcfg0: addr 0xf0000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus -1 (EXP4)
acpiprt7 at acpi0: bus 5 (PCI1)
acpicpu0 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB4, EHC0, EHC1
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
extent `acpipci0 pcibus' (0x0 - 0xff), flags=0
extent `pciio' (0x0 - 0xffffffff), flags=0
     0x10000 - 0xffffffff
extent `pcimem' (0x0 - 0xffffffffffffffff), flags=0
     0x0 - 0xbfffffff
     0xf0000000 - 0xf3ffffff
     0xfec00000 - 0xfec0ffff
     0xfed00000 - 0xfed003ff
     0xfed14000 - 0xfed19fff
     0xfed1c000 - 0xfed8ffff
     0xfee00000 - 0xfee00fff
     0xff000000 - 0xffffffff
     0x40000000000 - 0xffffffffffffffff
acpicmos0 at acpi0
tpm0 at acpi0 TPM_ addr 0xfed40000/0x5000, device 0x32031114 rev 0x9
acpibat0 at acpi0: BAT0 model "92P116" serial  1758 type LION oem "SANYO"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0: version 1.0
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivout0 at acpivideo0: LCD0
acpivideo1 at acpi0: VID_
cpu0: Enhanced SpeedStep 2194 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
inteldrm0 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xe0000000, size 0x10000000
inteldrm0: apic 1 int 16, I965GM, gen 4
"Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 "Intel ICH8 IGP M AMT" rev 0x03: msi, address 00:16:d3:ca:e1:ee
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 21
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: msi
azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices AD1984
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel Wireless WiFi Link 4965" rev 0x61: msi, MIMO 2T3R, MoW1, address 00:13:e8:88:b3:d9
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 16
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 17
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 19
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3
pci3 at ppb2 bus 5
cbb0 at pci3 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xba: apic 1 int 16
"Ricoh 5C832 Firewire" rev 0x04 at pci3 dev 0 function 1 not configured
sdhc0 at pci3 dev 0 function 2 "Ricoh 5C822 SD/MMC" rev 0x21: apic 1 int 18
sdhc0: SDHC 1.0, 33 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 6 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
pcib0 at pci0 dev 31 function 0 "Intel 82801HEM LPC" rev 0x03
pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x03: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 "Intel 82801HBM AHCI" rev 0x03: msi, AHCI 1.1
ahci0: port 0: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, Samsung SSD 850, EMT4> naa.5002538d41a6aa21
sd0: 476940MB, 512 bytes/sector, 976773168 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x03: apic 1 int 23
iic0 at ichiic0
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
vmm0 at mainbus0: VMX (using slow L1TF mitigation)
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
softraid0: sd1 was not shutdown properly
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
sd1: 466696MB, 512 bytes/sector, 955795008 sectors
root on sd1a (3f1e72c2267bb993.a) swap on sd1b dump on sd1b
WARNING: / was not properly unmounted
inteldrm0: 1024x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

usbdevs:
Controller /dev/usb0:
addr 01: 8086:0000 Intel, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub0
Controller /dev/usb1:
addr 01: 8086:0000 Intel, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub1
Controller /dev/usb2:
addr 01: 8086:0000 Intel, UHCI root hub
         full speed, self powered, config 1, rev 1.00
         driver: uhub2
Controller /dev/usb3:
addr 01: 8086:0000 Intel, UHCI root hub
         full speed, self powered, config 1, rev 1.00
         driver: uhub3
Controller /dev/usb4:
addr 01: 8086:0000 Intel, UHCI root hub
         full speed, self powered, config 1, rev 1.00
         driver: uhub4
Controller /dev/usb5:
addr 01: 8086:0000 Intel, UHCI root hub
         full speed, self powered, config 1, rev 1.00
         driver: uhub5