Kernel panic: softdep_deallocate_dependencies: dangling deps

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Kernel panic: softdep_deallocate_dependencies: dangling deps

Demi M. Obenour
On my OpenBSD VM, if I enable softdeps in /etc/fstab, the kernel panics

panic: softdep_deallocate_dependencies: dangling deps

I use QubesOS, which means that the hypervisor is Xen + QEMU.
The VM has been force-rebooted in the past, but fsck seemed to do
its job afterwards.

The panic is reproducible, but getting a backtrace is difficult as I
cannot copy and paste from the VM console.  I can, however, provide
screenshots of the console as image files.  I have not done so here
in case this is a known problem.

The problem has not happened in the past, so this is a regression
from older snapshots.

Sincerely,

Demi


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Kernel panic: softdep_deallocate_dependencies: dangling deps

Darren Tucker-3
On Wed, Dec 04, 2019 at 09:17:59AM -0500, Demi M. Obenour wrote:
> On my OpenBSD VM, if I enable softdeps in /etc/fstab, the kernel panics
>
> panic: softdep_deallocate_dependencies: dangling deps

I get the same thing with a just-updated armv7 snapshot a minute or so
after booting.

booting sd0a:/bsd: 4600928+674708+249056+565592 [251532+120+318208+282368]=0x0
EHCI failed to shut down host controller.

OpenBSD/armv7 booting ...
arg0 0xc09a01a0 arg1 0x0 arg2 0x47ef8000
Allocating page tables
IRQ stack: p0x409cf000 v0xc09cf000
ABT stack: p0x409d0000 v0xc09d0000
UND stack: p0x409d1000 v0xc09d1000
SVC stack: p0x409d2000 v0xc09d2000
Creating L1 page table at 0x409a4000
Mapping kernel
Constructing L2 page tables
undefined page type 0x2 pa 0x40000000 va 0x40000000 pages 0x2000 attr 0x8
type 0x7 pa 0x42000000 va 0x42000000 pages 0x5ef8 attr 0x8
type 0x4 pa 0x47ef8000 va 0x47ef8000 pages 0x10 attr 0x8
type 0x7 pa 0x47f08000 va 0x47f08000 pages 0x8d5 attr 0x8
type 0x2 pa 0x487dd000 va 0x487dd000 pages 0x65b attr 0x8
type 0x4 pa 0x48e38000 va 0x48e38000 pages 0x1 attr 0x8
type 0x7 pa 0x48e39000 va 0x48e39000 pages 0x1 attr 0x8
type 0x2 pa 0x48e3a000 va 0x48e3a000 pages 0x100 attr 0x8
type 0x1 pa 0x48f3a000 va 0x48f3a000 pages 0x17 attr 0x8
type 0x0 pa 0x48f51000 va 0x48f51000 pages 0x5 attr 0x8
type 0x4 pa 0x48f56000 va 0x48f56000 pages 0x1 attr 0x8
type 0x6 pa 0x48f57000 va 0x48f57000 pages 0x1 attr 0x8000000000000008
type 0x4 pa 0x48f58000 va 0x48f58000 pages 0x2 attr 0x8
type 0x0 pa 0x48f5a000 va 0x48f5a000 pages 0x4 attr 0x8
type 0x4 pa 0x48f5e000 va 0x48f5e000 pages 0x2 attr 0x8
type 0x0 pa 0x48f60000 va 0x48f60000 pages 0x2 attr 0x8
type 0x6 pa 0x48f62000 va 0x48f62000 pages 0x1 attr 0x8000000000000008
type 0x0 pa 0x48f63000 va 0x48f63000 pages 0x1 attr 0x8
type 0x2 pa 0x48f64000 va 0x48f64000 pages 0x5027 attr 0x8
type 0x5 pa 0x4df8b000 va 0x4df8b000 pages 0x1 attr 0x8000000000000008
type 0x2 pa 0x4df8c000 va 0x4df8c000 pages 0x2074 attr 0x8
pmap [ using 852840 bytes of bsd ELF symbol table ]
board type: 0
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2019 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.6-current (GENERIC) #241: Thu Dec  5 12:54:22 MST 2019
    [hidden email]:/usr/src/sys/arch/armv7/compile/GENERIC
real mem  = 142397440 (135MB)
avail mem = 129286144 (123MB)
mainbus0 at root: Xunlong Orange Pi Zero
cpu0 at mainbus0 mpidr 0: ARM Cortex-A7 r0p5
cpu0: 32KB 32b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 512KB 64b/line 8-way L2 cache
cortex0 at mainbus0
psci0 at mainbus0: PSCI 0.0
simplebus0 at mainbus0: "soc"
syscon0 at simplebus0: "syscon"
sxiccmu0 at simplebus0
sxipio0 at simplebus0: 94 pins
ampintc0 at simplebus0 nirq 160, ncpu 4: "interrupt-controller"
sxirtc0 at simplebus0
sxiccmu1 at simplebus0
sxipio1 at simplebus0: 12 pins
sxisyscon0 at simplebus0
"clock" at simplebus0 not configured
"mixer" at simplebus0 not configured
"dma-controller" at simplebus0 not configured
"lcd-controller" at simplebus0 not configured
sximmc0 at simplebus0
sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma
sximmc1 at simplebus0
sdmmc1 at sximmc1: 4-bit, sd high-speed, mmc high-speed, dma
"usb" at simplebus0 not configured
"phy" at simplebus0 not configured
ehci0 at simplebus0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1
ohci0 at simplebus0: version 1.0
ehci1 at simplebus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at simplebus0: version 1.0
"timer" at simplebus0 not configured
dwxe0 at simplebus0: address 02:42:59:0f:93:c6
ukphy0 at dwxe0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI 0x001105, model 0x0000
sxidog0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
"hdmi-phy" at simplebus0 not configured
"codec-analog" at simplebus0 not configured
"video-codec" at simplebus0 not configured
"gpu" at simplebus0 not configured
gpio0 at sxipio0: 32 pins
gpio1 at sxipio0: 32 pins
gpio2 at sxipio0: 32 pins
gpio3 at sxipio0: 32 pins
gpio4 at sxipio0: 32 pins
gpio5 at sxipio0: 32 pins
gpio6 at sxipio0: 32 pins
gpio7 at sxipio1: 32 pins
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1
agtimer0 at mainbus0: tick rate 24000 KHz
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, SL32G, 0080> removable
sd0: 30436MB, 512 bytes/sector, 62333952 sectors
manufacturer 0x0020, product 0x2281 at sdmmc1 function 1 not configured
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on sd0a (c2a9e74a63a85ef5.a) swap on sd0b dump on sd0b
cpu0: DVFS failed
Automatic boot in progress: starting file system checks.
/dev/sd0a (c2a9e74a63a85ef5.a): file system is clean; not checking
/dev/sd0l (c2a9e74a63a85ef5.l): file system is clean; not checking
/dev/sd0d (c2a9e74a63a85ef5.d): file system is clean; not checking
/dev/sd0f (c2a9e74a63a85ef5.f): file system is clean; not checking
/dev/sd0g (c2a9e74a63a85ef5.g): file system is clean; not checking
/dev/sd0h (c2a9e74a63a85ef5.h): file system is clean; not checking
/dev/sd0k (c2a9e74a63a85ef5.k): file system is clean; not checking
/dev/sd0j (c2a9e74a63a85ef5.j): file system is clean; not checking
/dev/sd0e (c2a9e74a63a85ef5.e): file system is clean; not checking
pf enabled
starting network
dwxe0: 192.168.32.104 lease accepted from 192.168.32.248 (00:0d:b9:49:be:51)
reordering libraries: done.
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd smtpd sndiod.
starting local daemons: cron.
Fri Dec  6 10:25:25 AEDT 2019

OpenBSD/armv7 (obsd-opi0.dtucker.net) (console)

login: panic: softdep_deallocate_dependencies: dangling deps
Stopped at      db_enter:       ldrb    r15, [r15, r15, ror r15]!
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*414974  32233      0     0x14000      0x200    0  pagedaemon
db_enter
        rlv=0xc03e4994 rfp=0xc8607cf0
softdep_deallocate_dependencies+0x20
        rlv=0xc0711c20 rfp=0xc8607d08
brelse+0x104
        rlv=0xc041b594 rfp=0xc8607d88
ffs_write+0x490
        rlv=0xc0501e70 rfp=0xc8607db0
VOP_WRITE+0x54
        rlv=0xc0418720 rfp=0xc8607e20
uvn_io+0x1f8
        rlv=0xc04180e4 rfp=0xc8607e30
uvn_put+0x18
        rlv=0xc03a5d0c rfp=0xc8607e78
uvm_pager_put+0x104
        rlv=0xc04f6f34 rfp=0xc8607f60
uvmpd_scan_inactive+0x53c
        rlv=0xc04f66b4 rfp=0xc8607f88
uvmpd_scan+0xb4
        rlv=0xc04f6534 rfp=0xc8607fa8
uvm_pageout+0x3b4
        rlv=0xc048d190 rfp=0xc09d3f60
Bad frame pointer: 0xc09d3f60
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> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 61122  181367  10478      0  3        0x82  fsleep        ld
 61122  220193  10478      0  2   0x4000002                ld
 10478  499639  31244      0  3    0x10008a  pause         sh
 31244  496770  10642      0  3    0x10008a  pause         make
 61143   83993      1      0  3    0x100083  ttyin         getty
 10642  480623      1      0  3    0x10008b  pause         ksh
 21093  141978      1      0  3    0x100098  poll          cron
 48195  298356      1     99  3    0x100090  poll          sndiod
 25582  332024      1    110  3    0x100090  poll          sndiod
 36301  350098   5972     95  3    0x100092  kqread        smtpd
 80850  217534   5972    103  3    0x100092  kqread        smtpd
 75560  395403   5972     95  3    0x100092  kqread        smtpd
 60819   33720   5972     95  3    0x100092  kqread        smtpd
 59390   20112   5972     95  3    0x100092  kqread        smtpd
 47413  341147   5972     95  3    0x100092  kqread        smtpd
  5972  446105      1      0  3    0x100080  kqread        smtpd
 51958  503291      1      0  3        0x80  select        sshd
 39608    5863      1      0  3    0x100080  poll          ntpd
 23969  186418   8128     83  3    0x100092  poll          ntpd
  8128    4801      1     83  3    0x100092  poll          ntpd
 23365  227656  62181     74  3    0x100092  bpf           pflogd
 62181  358773      1      0  3        0x80  netio         pflogd
 66778  179062  27538     73  3    0x100090  kqread        syslogd
 27538   23014      1      0  3    0x100082  netio         syslogd
 77456   62600      1     77  3    0x100090  poll          dhclient
 70638  518051      1      0  3        0x80  poll          dhclient
 14618  365709  17954    115  3    0x100092  kqread        slaacd
 57428  102466  17954    115  3    0x100092  kqread        slaacd
 17954    6425      1      0  3    0x100080  kqread        slaacd
 24516  448371      0      0  3     0x14200  pgzero        zerothread
 99413  494780      0      0  3     0x14200  aiodoned      aiodoned
  3398  168626      0      0  3     0x14200  syncer        update
 90021  501798      0      0  3     0x14200  cleaner       cleaner
 17066   72609      0      0  3     0x14200  reaper        reaper
*32233  414974      0      0  7     0x14200                pagedaemon
  4013  105541      0      0  3     0x14200  bored         crynlk
 62080  188637      0      0  3     0x14200  bored         crypto
 10155  241675      0      0  3     0x14200  usbtsk        usbtask
 92568   51607      0      0  3     0x14200  usbatsk       usbatsk
 50282  506847      0      0  3     0x14200  mmctsk        sdmmc1
  1393  296017      0      0  3     0x14200  idma          sdmmc0
 60724  114288      0      0  3     0x14200  bored         softnet
 63931  121359      0      0  3     0x14200  bored         systqmp
 87931  376309      0      0  3     0x14200  bored         systq
 17373   10809      0      0  3  0x40014200  bored         softclock
 50781   44100      0      0  3  0x40014200                idle0
 81837   17135      0      0  3     0x14200  bored         smr
 27350  394002      0      0  3     0x14200  kmalloc       kmthread
     1  439550      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb>

--
Darren Tucker (dtucker at dtucker.net)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.