From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 22 18:10:06 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F86516A420 for ; Wed, 22 Feb 2006 18:10:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C00B443D45 for ; Wed, 22 Feb 2006 18:10:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1MIA5bL035476 for ; Wed, 22 Feb 2006 18:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1MIA5VI035474; Wed, 22 Feb 2006 18:10:05 GMT (envelope-from gnats) Resent-Date: Wed, 22 Feb 2006 18:10:05 GMT Resent-Message-Id: <200602221810.k1MIA5VI035474@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nate Nielsen Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D5AE16A420 for ; Wed, 22 Feb 2006 18:04:35 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7CB043D69 for ; Wed, 22 Feb 2006 18:04:34 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1MI4Ym8072583 for ; Wed, 22 Feb 2006 18:04:34 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k1MI4YOd072582; Wed, 22 Feb 2006 18:04:34 GMT (envelope-from nobody) Message-Id: <200602221804.k1MI4YOd072582@www.freebsd.org> Date: Wed, 22 Feb 2006 18:04:34 GMT From: Nate Nielsen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/93720: Kernel Dump to USB umass device X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 18:10:06 -0000 >Number: 93720 >Category: kern >Synopsis: Kernel Dump to USB umass device >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Feb 22 18:10:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Nate Nielsen >Release: RELENG_6 >Organization: None >Environment: FreeBSD 6.1-PRERELEASE #0: Wed Feb 22 02:07:41 UTC 2006 root@mesh-stable.ws.local:/usr/src/sys/i386/compile/DCUSTOM >Description: When working on systems with limited disk space, it's handy to be able to dump kernel memory (after a panic) to a USB device. Currently when dumping to a umass device you get something like: > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x0 > fault code = supervisor write, page not present > instruction pointer = 0x20:0xc0cea412 > stack pointer = 0x28:0xc6cf5c1c > frame pointer = 0x28:0xc6cf5c24 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 473 (kldload) > trap number = 12 > panic: page fault > Uptime: 3m48s > Dumping 95 MB (2 chunks) > Aborting dump due to I/O error. > status == 0xb, scsi status == 0x0 > > ** DUMP FAILED (ERROR 5) ** > Automatic reboot in 5 seconds - press a key on the console to abort >How-To-Repeat: >Fix: I'll attach a patch (partly from Ian Dowse) which enables this functionality. >Release-Note: >Audit-Trail: >Unformatted: