From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 2 09:26:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C8F516A4CE for ; Mon, 2 Feb 2004 09:26:21 -0800 (PST) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9052043D5A for ; Mon, 2 Feb 2004 09:26:19 -0800 (PST) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (hk3okof9@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.12.10/8.12.10) with ESMTP id i12HQHo25184280; Mon, 2 Feb 2004 20:26:18 +0300 (MSK) Date: Mon, 2 Feb 2004 20:26:17 +0300 (MSK) From: Maxim Konovalov To: Joel Ray Holveck In-Reply-To: <87n084cyp1.fsf@thor.piquan.org> Message-ID: <20040202202524.I61487@news1.macomnet.ru> References: <87n084cyp1.fsf@thor.piquan.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: Panic in /proc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 17:26:21 -0000 On Sat, 31 Jan 2004, 00:24-0800, Joel Ray Holveck wrote: > Here's a way to panic FreeBSD 5.2, as any user: > > dd if=/proc/curproc/map iseek=0x8000 bs=4096 of=/dev/null count=1 > > I briefly examined the core. It appears that pseudofs is trying to > malloc an sbuf big enough to hold everything up to the 128 MB mark > that we requested, which it intends to get procfs to fill. Of course, > the malloc fails, and the kernel panics. Please fill a PR. -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org