From owner-freebsd-current Tue Jun 5 9:39: 8 2001 Delivered-To: freebsd-current@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id A5CED37B403 for ; Tue, 5 Jun 2001 09:39:03 -0700 (PDT) (envelope-from david@catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.10.0/8.10.0) id f55Gbnh54245; Tue, 5 Jun 2001 09:37:49 -0700 (PDT) Date: Tue, 5 Jun 2001 09:37:49 -0700 (PDT) From: David Wolfskill Message-Id: <200106051637.f55Gbnh54245@bunrab.catwhisker.org> To: D.Rock@t-online.de, tanimura@r.dl.itc.u-tokyo.ac.jp Subject: Re: panic in procfs code Cc: bright@rush.net, current@FreeBSD.ORG In-Reply-To: <200106051240.f55CdxD05625@rina.r.dl.itc.u-tokyo.ac.jp> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Date: Tue, 05 Jun 2001 21:39:59 +0900 >From: Seigo Tanimura >Daniel> Hi, >Daniel> I just noticed: Doing a simple "cat /proc/$$/map" panics the system: >(snip) >Daniel> _mtx_unlock_sleep(c049c9c0,0,c03b01a0,f2) at _mtx_unlock_sleep+0xa3 >Daniel> lockmgr(c55fadb0,10001,c049c9c0,c55f4100) at lockmgr+0x9d >Daniel> procfs_domap(c55f4100,c55f4320,c0c90da0,c6eefefc,c0cc3180) at >Daniel> procfs_domap+0x88 >Lock and unlock of vm_mtx around vm_map_(un)lock_read() in >procfs_domap() are missing. The attached patch should fix the bug. I looked at the patch, and it seemed reasonable, so I applied it just before my daily build of -CURRENT, and: m133[1] cat /proc/$$/map 0x8048000 0x80f2000 165 0 0xce84bc60 r-x 6 3 0x0 COW NC vnode 0x80f2000 0x80f7000 5 0 0xce8c7f00 rw- 1 0 0x2180 COW NNC vnode 0x80f7000 0x814a000 28 0 0xce8e1ea0 rw- 1 0 0x2180 COW NNC default 0x814a000 0x815b000 17 0 0xce8c7c60 rwx 1 0 0x2180 COW NNC default 0x815b000 0x815d000 2 0 0xce8e1900 rwx 1 0 0x2180 COW NNC default 0x815d000 0x8191000 52 0 0xce8e1840 rwx 1 0 0x2180 NCOW NNC default 0x280f2000 0x280f3000 1 0 0xce8e1360 rwx 1 0 0x2180 COW NNC default 0xbfbe0000 0xbfc00000 14 0 0xce8c7c00 rwx 1 0 0x2180 COW NNC default m133[2] uname -a FreeBSD m133.whistle.com 5.0-CURRENT FreeBSD 5.0-CURRENT #23: Tue Jun 5 08:57:03 PDT 2001 root@dhcp-135.catwhisker.org:/common/C/obj/usr/src/sys/LAPTOP_30W i386 m133[3] so it looks good to me, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message