From owner-freebsd-stable@FreeBSD.ORG Fri Feb 26 12:25:37 2010 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 B6BE01065674 for ; Fri, 26 Feb 2010 12:25:37 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by mx1.freebsd.org (Postfix) with ESMTP id 415AC8FC6D for ; Fri, 26 Feb 2010 12:25:36 +0000 (UTC) Received: by fxm23 with SMTP id 23so10603fxm.3 for ; Fri, 26 Feb 2010 04:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type; bh=c+sJCymD2zyFSBbaHYcP/ioiGtRedmQNZrB+FI6HgQQ=; b=q4ti0pKoduBxO8k+6CVHKq3lXl4DJFTP9XUgiuNf8o2K1H6JV/+l8BZO9dYguJ38uh cl67fh4N+31ar4ONTeoQrSAWpZF18mrEkHVFEbVByxFEUjA3bV2An5LNCq+u5V6lF2Iq 9QurNsRGEyRDVWD3icsbCAslJ5GdpvzsyoisQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=RYtXzVYjgIUxV+vaXzQ5kApN6tKb115qir4TQW5OhMmOslxDFgVKOq9DadF4MlgY2x vSmu0CFI+3MuyrBzc343cRSVsWkk33KaNnIv1dr02NaaB5PibjfvMsSa7829Mwgw77Dv T+50+tuyICSLGbsX/Zkk9aJkBSY2PlSyYA4b0= Received: by 10.223.6.68 with SMTP id 4mr353057fay.92.1267187129424; Fri, 26 Feb 2010 04:25:29 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 16sm26334fxm.15.2010.02.26.04.25.28 (version=SSLv3 cipher=RC4-MD5); Fri, 26 Feb 2010 04:25:29 -0800 (PST) Sender: Alexander Motin Message-ID: <4B87BDB6.7020109@FreeBSD.org> Date: Fri, 26 Feb 2010 14:25:26 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: "John J. Rushford" References: <1267172583.00223701.1267161002@10.7.7.3> In-Reply-To: <1267172583.00223701.1267161002@10.7.7.3> Content-Type: multipart/mixed; boundary="------------020205060703050103010301" Cc: lopez.on.the.lists@yellowspace.net, freebsd-stable@freebsd.org Subject: Re: Panic on 8-STABLE in mpt(4) on a DELL PowerEdge R300 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: Fri, 26 Feb 2010 12:25:37 -0000 This is a multi-part message in MIME format. --------------020205060703050103010301 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit John J. Rushford wrote: > I'm running into the same problem, mpt(4) panic on FreeBSD 8-STABLE. > > I'm running FreeBSD 8.0-STABLE, the current kernel was cvsup'd and built > @ January 14th, 2010. I cvsup'd tonight, 2/25/2010, and built a new > kernel. Attached is the panic when I tried to boot into single user > mode, I was able to boot up on the old kernel built on January 14th. > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x10 > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xffffffff8019c4bd > stack pointer = 0x28:0xffffff80e81d5ba0 > frame pointer = 0x28:0xffffff80e81d5bd0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 6 (mpt_raid0) > trap number = 12 > panic: page fault Attached patch should fix the problem. -- Alexander Motin --------------020205060703050103010301 Content-Type: text/plain; name="mpt_raid.scan.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mpt_raid.scan.patch" --- mpt_raid.c.prev 2010-02-05 21:52:04.000000000 +0200 +++ mpt_raid.c 2010-02-26 14:14:30.000000000 +0200 @@ -690,7 +690,6 @@ mpt_raid_thread(void *arg) if (mpt->raid_rescan != 0) { union ccb *ccb; - struct cam_path *path; int error; mpt->raid_rescan = 0; @@ -699,7 +698,7 @@ mpt_raid_thread(void *arg) ccb = xpt_alloc_ccb(); MPT_LOCK(mpt); - error = xpt_create_path(&path, xpt_periph, + error = xpt_create_path(&ccb->ccb_h.path, xpt_periph, cam_sim_path(mpt->phydisk_sim), CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD); if (error != CAM_REQ_CMP) { --------------020205060703050103010301--