Re: r359627 is panicked with 'softdep_setup_blkfree: not free'

From: Roman Bogorodskiy <novel_at_freebsd.org>
Date: Mon, 6 Apr 2020 18:10:46 +0400
  Hans Petter Selasky wrote:

> On 2020-04-06 14:50, Masachika ISHIZUKA wrote:
> > > >    I'm using r359627M. (r359627 with mount_udf2).
> > > >    It is panicked with 'softdep_setup_blkfree: not free'.
> > > > 
> > > >    Panic log was stored as follows.
> > > 
> > >    Sorry, this panic was my mistake.
> > >    I forgot to update drm-current-kmod.
> > > 
> > > old% pkg info drm-current-kmod
> > > [snip]
> > > Annotations    :
> > > 	FreeBSD_version: 1300084 <--- old
> > > [snip]
> > > 
> > > old# pkg install -f drm-current-kmod
> > > new% pkg info drm-current-kmod
> > > [snip]
> > > Annotations    :
> > > 	FreeBSD_version: 1300088
> > > [snip]
> > > 
> > >    This works fine.
> > 
> >    The panic was occured again.
> >    Crash dump was the same.
> >    To reinstall drm-current-kmod was not fixed this issue.
> > 
> 
> Issue probably will go away if you boot to single-user-mode and run fsck -y
> before booting the system. Regardless, kernel should not panic.

Recently I've started observing issues like this too. For example, today
I did:

 - run 'fsck -y' twice in single user mode (because actually I was forced to do
   that because last time I hard reset the box)
 - start building stuff with poudriere
 - after approx. 40-45 minutes I get this panic.

Backtrace snippet is the following:

(kgdb) #0  doadump (textdump=1) at src/sys/amd64/include/pcpu_aux.h:55
#1  0xffffffff80bbd4a0 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:481
#2  0xffffffff80bbd8fa in vpanic (fmt=<value optimized out>,
    ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:913
#3  0xffffffff80bbd653 in panic (fmt=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:839
#4  0xffffffff80ec9792 in softdep_setup_blkfree (mp=0xfffffe00a35a7100,
    bp=<value optimized out>, blkno=50732008, frags=1, wkhd=0xfffffe00a9b4ca98)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:10917
#5  0xffffffff80eaa8c0 in ffs_blkfree_cg (ump=<value optimized out>,
    fs=0xfffffe00a1a58000, devvp=<value optimized out>,
    bno=<value optimized out>, size=<value optimized out>,
    inum=<value optimized out>, dephd=0xfffffe00a9b4ca98)
    at /usr/src/sys/ufs/ffs/ffs_alloc.c:2335
#6  0xffffffff80ea7645 in ffs_blkfree (ump=0xfffff80003b0d200,
    fs=<value optimized out>, devvp=0xfffff80005e785b8, bno=50732008,
    size=<value optimized out>, inum=<value optimized out>, vtype=VREG,
    dephd=0xfffffe00a9b4ca98, key=2) at /usr/src/sys/ufs/ffs/ffs_alloc.c:2635
#7  0xffffffff80ec0b7e in handle_workitem_freefrag (
    freefrag=0xfffff803777b7780) at /usr/src/sys/ufs/ffs/ffs_softdep.c:5707
#8  0xffffffff80ecc4ff in process_worklist_item (mp=0xfffffe00a35a7100,
    target=10, flags=512) at /usr/src/sys/ufs/ffs/ffs_softdep.c:1853
#9  0xffffffff80eb7f57 in softdep_process_worklist (mp=0xfffffe00a35a7100,
    full=0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:1641
#10 0xffffffff80ebb96f in softdep_flush (addr=0xfffffe00a35a7100)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:1426
#11 0xffffffff80b7b450 in fork_exit (
    callout=0xffffffff80ebb890 <softdep_flush>, arg=0xfffffe00a35a7100,
    frame=0xfffffe00a9b4cc00) at /usr/src/sys/kern/kern_fork.c:1051
#12 0xffffffff810345ee in fork_trampoline ()
    at /usr/src/sys/amd64/amd64/exception.S:1080
#13 0x0000000000000000 in ?? ()
Current language:  auto; currently minimal
(kgdb)


Roman Bogorodskiy

Received on Mon Apr 06 2020 - 12:11:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC