Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2003 19:04:07 -0600
From:      Sean Kelly <smkelly@zombie.org>
To:        current@freebsd.org
Subject:   Lock order reversal
Message-ID:  <20030129010407.GA31592@edgemaster.zombie.org>

next in thread | raw e-mail | index | archive | help

--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I just noticed this during bootup. It is repeatable.

FreeBSD 5.0-CURRENT #1: Mon Jan 27 14:00:00 CST 2003
    root@edgemaster.zombie.org:/usr/obj/usr/src/sys/EDGEMASTER
=2E..
Mounting root from ufs:/dev/ad1s1a
cd0 at ata0 bus 0 target 1 lun 0
cd0: <PLEXTOR CD-R   PX-W4012A 1.01> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present - t=
ray open
lock order reversal
 1st 0xc6998a54 process lock (process lock) @ /usr/src/sys/kern/kern_descri=
p.c:2104
 2nd 0xc6944234 filedesc structure (filedesc structure) @ /usr/src/sys/kern=
/kern_descrip.c:2111

sysctl_kern_file(SYSCTL_HANDLER_ARGS)
{
=2E..
        LIST_FOREACH(p, &allproc, p_list) {
2104--->        PROC_LOCK(p);
                xf.xf_pid =3D p->p_pid;
                xf.xf_uid =3D p->p_ucred->cr_uid;
                if ((fdp =3D p->p_fd) =3D=3D NULL) {
                        PROC_UNLOCK(p);
                        continue;
                }
2111--->        FILEDESC_LOCK(fdp);
                for (n =3D 0; n < fdp->fd_nfiles; ++n) {
                        if ((fp =3D fdp->fd_ofiles[n]) =3D=3D NULL)
                                continue;
=2E...

--=20
Sean Kelly         | PGP KeyID: D2E5E296
smkelly@zombie.org | http://www.zombie.org

--FCuugMFkClbJLl1L
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+NyiHPm7A9NLl4pYRAsd5AJ9MkaI/szmzgOlszWlcjaJTGanyvQCgwV9P
+54uijWoqjr9TW6kIaLMBj4=
=IUFy
-----END PGP SIGNATURE-----

--FCuugMFkClbJLl1L--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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