Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2021 22:02:03 +0100
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        Juraj Lutter <otis@freebsd.org>
Cc:        Rick Macklem <rmacklem@uoguelph.ca>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: -CURRENT panics in NFS
Message-ID:  <CAGudoHHDaYTiQZBHQA2sRNRPobAxFq8auKNeS1hOBNZ851EQdg@mail.gmail.com>
In-Reply-To: <6CD719B1-71B1-4EAB-A0D0-949ABA1751BB@FreeBSD.org>
References:  <E173E60B-D0AF-4315-A99F-ABA1F3D5BBEF@FreeBSD.org> <FBDA3107-00AF-4CF3-B6FA-F09EA8163D7B@FreeBSD.org> <560DD7DF-B1C0-432B-BFCA-9D00819E0C28@FreeBSD.org> <YQXPR0101MB0968CF8BCCD34DB340879F44DD9C9@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> <D339EFAA-56F2-4F26-BB12-FBD1C854BBC1@FreeBSD.org> <CAGudoHHqd2o-zcaJEF0=XbqV7etRKCPCtqj58QP56gQtK%2BEUAQ@mail.gmail.com> <6CD719B1-71B1-4EAB-A0D0-949ABA1751BB@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
You should be able to just use kgdb on the old kernel and the
crashdump you already collected, provided both are still around.
Alternatively boot with this without the fix:

diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index fef1e31d197b..c4d2990b155d 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -2266,6 +2266,9 @@ cache_enter_time(struct vnode *dvp, struct vnode
*vp, struct componentname *cnp,
        KASSERT(cnp->cn_namelen <=3D NAME_MAX,
            ("%s: passed len %ld exceeds NAME_MAX (%d)", __func__,
cnp->cn_namelen,
            NAME_MAX));
+       if (dvp =3D=3D vp) {
+               panic("%s: same vnodes; cnp [%s] len %ld\n", __func__,
cnp->cn_nameptr, cnp->cn_namelen);
+       }
        VNPASS(dvp !=3D vp, dvp);
        VNPASS(!VN_IS_DOOMED(dvp), dvp);
        VNPASS(dvp->v_type !=3D VNON, dvp);


On 2/27/21, Juraj Lutter <otis@freebsd.org> wrote:
> I am now running a patched kernel, without problems.
>
> I can boot to unpatched one and see the output of these ddb commands.
>
> otis
>
> =E2=80=94
> Juraj Lutter
> XMPP: juraj (at) lutter.sk
> GSM: +421907986576
>
>> On 27 Feb 2021, at 21:49, Mateusz Guzik <mjguzik@gmail.com> wrote:
>>
>> Can you dump 'struct componentname *cnp'? This should do the trick:
>> f 12
>> p cnp
>>
>
>
>


--=20
Mateusz Guzik <mjguzik gmail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGudoHHDaYTiQZBHQA2sRNRPobAxFq8auKNeS1hOBNZ851EQdg>