Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2018 02:11:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 230220] UFS: the freezing ioctl (i.e.UFSSUSPEND) causes panic or EBUSY
Message-ID:  <bug-230220-227-DGmFoXY3xH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-230220-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-230220-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230220

--- Comment #2 from Dexuan Cui <decui@microsoft.com> ---
(In reply to Dexuan Cui from comment #0)

If there is only one mount point (i.e. /), I can't reproduce the panic.
The panic only happens after I mount /dev/da2p1 on /mnt.

The panic is caused by the failure of the KASSERT ffs_susp_ioctl():

case UFSSUSPEND:
        fsidp =3D (fsid_t *)addr;
        mp =3D vfs_getvfs(fsidp);
        if (mp =3D=3D NULL) {
                error =3D ENOENT;
                break;
        }
        error =3D vfs_busy(mp, 0);
        vfs_rel(mp);
        if (error !=3D 0)
                break;
        error =3D ffs_susp_suspend(mp);
        if (error !=3D 0) {
                vfs_unbusy(mp);
                break;
        }
        error =3D devfs_set_cdevpriv(mp, ffs_susp_dtor);
        KASSERT(error =3D=3D 0, ("devfs_set_cdevpriv failed"));
        break;

When the UFSSUSPEND ioctl is called for the second time, devfs_set_cdevpriv=
()
returns EBUSY.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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