Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: panic: kernel diagnostic assertion VOP_ISLOCKET(vp) == LK_EXCLUSIVE



> On 22. Apr 2022, at 16:25, Takahiro Kambe <taca%back-street.net@localhost> wrote:
> 
> Hi,
> 
> In message <A957E69D-228B-4124-8553-3B8D51A3041C%mailbox.org@localhost>
> 	on Fri, 22 Apr 2022 09:44:48 +0200,
> 	"J. Hannken-Illjes" <hannken%mailbox.org@localhost> wrote:
>>>> Thanks - I can confirm that a kernel from yesterday doesn't have the
>>>> issue any longer.
>>> 
>>> I still have panic() on ThinkPad E495.
>>> 
>>> panic: kernel diagnostic assertion "VOP_ISLOCKED(vp) == LK_EXCLUSIVE" failed: file "/usr/src/sys/miscfs/specfs/spec_vnops.c", line 1252
>>> cpu3: Begin traceback...
>>> vpanic() at netbsd:vpanic+0x183
>>> kern_assert() at netbsd:kern_assert+0x4b
>>> spec_fdiscard() at netbsd:spec_fdiscard+0xaa
>>> VOP_FDISCARD() at netbsd:VOP_FDISCARD+0x3d
>>> ffs_discardcb() at netbsd:ffs_discardcb+0x2e
>>> workqueue_worker() at netbsd:workqueue_worker+0xd7
>> <snip>
>> 
>> Is the attached diff sufficient to fix your problem?
> Sadly, no luck.
> 
> (gdb) where
> #0  0xffffffff802261f5 in cpu_reboot (howto=howto@entry=260,
>    bootstr=bootstr@entry=0x0) at /usr/src/sys/arch/amd64/amd64/machdep.c:720
> #1  0xffffffff80da5414 in kern_reboot (howto=howto@entry=260,
>    bootstr=bootstr@entry=0x0) at /usr/src/sys/kern/kern_reboot.c:73
> #2  0xffffffff80deb32d in vpanic (
>    fmt=0xffffffff813938f8 "kernel %sassertion \"%s\" failed: file \"%s\", line %d ", ap=ap@entry=0xffffb80249389e48) at /usr/src/sys/kern/subr_prf.c:293
> #3  0xffffffff80fad18f in kern_assert (
>    fmt=fmt@entry=0xffffffff813938f8 "kernel %sassertion \"%s\" failed: file \"%s\", line %d ") at /usr/src/sys/lib/libkern/kern_assert.c:51
> #4  0xffffffff80e76595 in spec_fdiscard (v=0xffffb80249389ee0)
>    at /usr/src/sys/miscfs/specfs/spec_vnops.c:1252
> #5  0xffffffff80e69314 in VOP_FDISCARD (vp=0xffff879fb253da40,
>    pos=<optimized out>, len=<optimized out>)
>    at /usr/src/sys/kern/vnode_if.c:845
> #6  0xffffffff80e69314 in VOP_FDISCARD (vp=0xffff879fb2e99cc0,
>    pos=pos@entry=5843857408, len=len@entry=2048)
>    at /usr/src/sys/kern/vnode_if.c:845

This one is different from the previous stack trace, two VOP_FDISCARD().

Could you print the vnodes and mounts from frame #6 and #5,
( print *vp and print *vp->v_mount ) please?

What is mounted ( /etc/fstab and mount )?

> #7  0xffffffff80cdf921 in ffs_discardcb (wk=0xffff879fb4199840,
>    arg=0xffff879fb3053f40) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1656
> #8  0xffffffff80df4fd6 in workqueue_runlist (list=0xffff879fb2c34ee8,
>    list=0xffff879fb2c34ee8, wq=0xffff879fb2c34e80)
>    at /usr/src/sys/kern/subr_workqueue.c:105
> #9  workqueue_worker (cookie=0xffff879fb2c34e80)
>    at /usr/src/sys/kern/subr_workqueue.c:135
> #10 0xffffffff8020b327 in lwp_trampoline ()
> #11 0x0000000000000000 in ?? ()

--
J. Hannken-Illjes - hannken%mailbox.org@localhost

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index