From owner-freebsd-stable@FreeBSD.ORG Tue Nov 24 21:53:28 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6509D1065670 for ; Tue, 24 Nov 2009 21:53:28 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id DF6C88FC0A for ; Tue, 24 Nov 2009 21:53:27 +0000 (UTC) Received: by bwz5 with SMTP id 5so6869471bwz.3 for ; Tue, 24 Nov 2009 13:53:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=av+cEImrfvDtKTHY+IMUINxQgrFSEyvX65uvM0jhBQQ=; b=ksl4LPaZe8u64QLfPknm0DaTZX2bnTiSpTlTH7IAzQuvo2JiSTkDpf/dvoZ59zx1rt L+wEnQ5XlKtG4adNR5motX3AXRPEKtwKuscxo9Qk9T8Mbov3WXZANXL1BuvWPkLyWDyv Ghdw751/o7idpUadzaaZr8NMmiiBT9WCvBddk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=iYHHaXVx3bXltj/2k7dmX7S9X2mGb4SsqYumEqEp8pftZcUlf9h2YgNfy2JfGuy5po aRUi5nrbWLVLnMMFgLtVUzLxOPBO0Z2oTxKYg5niNxT9f+0uppvT/+LyR9DHZbqdpbaH aYZyXWqALJgFwptY3rdksWa4L6yIy8ov6qLTs= MIME-Version: 1.0 Received: by 10.204.26.147 with SMTP id e19mr6667754bkc.149.1259099606392; Tue, 24 Nov 2009 13:53:26 -0800 (PST) In-Reply-To: References: Date: Wed, 25 Nov 2009 00:53:26 +0300 Message-ID: From: pluknet To: freebsd-stable Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [geom] page fault in g_mbr_config() X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2009 21:53:28 -0000 2009/7/24 pluknet : > 2009/7/24 pluknet : >> Hi. >> >> I got a panic while performing a repetitive =A0'fdisk -BI aacd0', >> where aacd0 is a disk on aac0: . >> This means that the command was issued after filesystems >> were already created on aacd (after the first fdisk -BI aacd0 >> iteration), and are in umount'ed state. >> >> This is on 7.2-R, amd64. Config is a GENERIC plus ddb, carp, ipfw, quota= . >> >> Fatal trap 12: page fault while in kernel mode >> cpuid =3D 5; apic id =3D 05 >> fault virtual address =A0 =3D 0x20 >> fault code =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D supervisor read data, page not= present >> instruction pointer =A0 =A0 =3D 0x8:0xffffffff804cc554 >> stack pointer =A0 =A0 =A0 =A0 =A0 =3D 0x10:0xfffffffe80079b80 >> frame pointer =A0 =A0 =A0 =A0 =A0 =3D 0x10:0xfffffffe80079bd0 >> code segment =A0 =A0 =A0 =A0 =A0 =A0=3D base 0x0, limit 0xfffff, type 0x= 1b >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D DPL 0, pres 1, long 1= , def32 0, gran 1 >> processor eflags =A0 =A0 =A0 =A0=3D interrupt enabled, resume, IOPL =3D = 0 >> current process =A0 =A0 =A0 =A0 =3D 2 (g_event) >> [thread pid 2 tid 100013 ] >> Stopped at =A0 =A0 =A0g_mbr_config+0x64: =A0 =A0 =A0movq =A0 =A00x20(%ra= x),%r15 >> db> bt >> Tracing pid 2 tid 100013 td 0xffffff000144da50 >> g_mbr_config() at g_mbr_config+0x64 >> g_run_events() at g_run_events+0x1b8 >> g_event_procbody() at g_event_procbody+0x57 >> fork_exit() at fork_exit+0x11f >> fork_trampoline() at fork_trampoline+0xe >> --- trap 0, rip =3D 0, rsp =3D 0xfffffffe80079d30, rbp =3D 0 --- > > And, of course... > > db> show proc 818 > Process 818 (fdisk) at 0xffffff0004ed1000: > =A0state: NORMAL > =A0uid: 0 =A0gids: 0, 0, 5 > =A0parent: pid 814 at 0xffffff00045c0478 > =A0ABI: FreeBSD ELF64 > =A0arguments: fdisk > =A0threads: 1 > 100169 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 D =A0 =A0 =A0 g_waitfo 0xfffff= f0004ec9100 fdisk > db> bt 818 > Tracing pid 818 tid 100169 td 0xffffff0004fbf6e0 > sched_switch() at sched_switch+0x1fe > mi_switch() at mi_switch+0x18e > sleepq_timedwait() at sleepq_timedwait+0x31 > _sleep() at _sleep+0x354 > g_waitfor_event() at g_waitfor_event+0x9a > g_ctl_ioctl() at g_ctl_ioctl+0x2df > giant_ioctl() at giant_ioctl+0x7d > devfs_ioctl_f() at devfs_ioctl_f+0x77 > kern_ioctl() at kern_ioctl+0xa2 > ioctl() at ioctl+0xf9 > syscall() at syscall+0x256 > Xfast_syscall() at Xfast_syscall+0xab > --- syscall (54, FreeBSD ELF64, ioctl), rip =3D 0x8008200ec, rsp =3D > 0x7fffffffe1d8, rbp =3D 0x4 --- > This makes me tied to GEOM_* -> GEOM_PART_* scheme (which is in 8+ in DEFAULTS now). After this replacement in DEFAULTS I see no more panics in 'fdisk -BI aacd0= '. --=20 wbr, pluknet