From owner-freebsd-bugs@FreeBSD.ORG Thu May 22 17:40:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10B981065670 for ; Thu, 22 May 2008 17:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DD0348FC1C for ; Thu, 22 May 2008 17:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m4MHe1PC012979 for ; Thu, 22 May 2008 17:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4MHe1Z3012978; Thu, 22 May 2008 17:40:01 GMT (envelope-from gnats) Resent-Date: Thu, 22 May 2008 17:40:01 GMT Resent-Message-Id: <200805221740.m4MHe1Z3012978@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, Nejc Skoberne Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA13D1065675 for ; Thu, 22 May 2008 17:31:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id C417B8FC0A for ; Thu, 22 May 2008 17:31:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4MHU30Q055553 for ; Thu, 22 May 2008 17:30:03 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m4MHU3TQ055552; Thu, 22 May 2008 17:30:03 GMT (envelope-from nobody) Message-Id: <200805221730.m4MHU3TQ055552@www.freebsd.org> Date: Thu, 22 May 2008 17:30:03 GMT From: Nejc Skoberne To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/123908: panic: vinvalbuf: dirty bufs 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: Thu, 22 May 2008 17:40:02 -0000 >Number: 123908 >Category: kern >Synopsis: panic: vinvalbuf: dirty bufs >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 22 17:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Nejc Skoberne >Release: RELENG_7 >Organization: >Environment: FreeBSD Kizej.domain.com 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed May 21 09:56:39 CEST 2008 root@iFreeBSD.domain.local:/usr/src/sys/i386/compile/MYKERNEL i386 >Description: I was trying to make devd automount my USB stick and I stumbled upon a page fault, when I tried to also automatically unmount the usb drive. panic: vinvalbuf: dirty bufs cpuid = 1 Uptime: 5m7s Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor write, page not present instruction pointer = 0x20:0xc046e8db stack pointer = 0x28:0xe79df3c0 frame pointer = 0x28:0xe79df3dc 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 = 1102 (ps) trap number = 12 >How-To-Repeat: Add this to /etc/devd.conf: attach 20 { device-name "umass0"; action "sleep 2; \ sh /etc/rc.d/devfs restart; \ /sbin/kldload msdosfs; \ /sbin/mount /dev/da0s1; \ /usr/local/sbin/usbsync"; }; detach 20 { device-name "umass0"; action "/sbin/umount /dev/da0s1; \ /sbin/kldunload msdosfs"; }; restart devd and then plug in the USB stick device. It is nicely mounted into /mnt. Then unplug it - it is normal that this gives an error since it tries to unmount not-any-more-existing device. If you now plug it back in, the kernel page fault happens. >Fix: >Release-Note: >Audit-Trail: >Unformatted: