From owner-freebsd-current@FreeBSD.ORG Mon Mar 25 08:04:46 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B00DD8B8 for ; Mon, 25 Mar 2013 08:04:46 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail-oa0-f50.google.com (mail-oa0-f50.google.com [209.85.219.50]) by mx1.freebsd.org (Postfix) with ESMTP id 78D8734F for ; Mon, 25 Mar 2013 08:04:46 +0000 (UTC) Received: by mail-oa0-f50.google.com with SMTP id n1so3241585oag.23 for ; Mon, 25 Mar 2013 01:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:x-received:sender:x-originating-ip:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=RUnzdHwtKDgXrJS8pMy2Lf45H5naUDJc7VpVn698LOU=; b=CnHLTTGRutF/Dw6KsyMPcfz0iOaVwBvzqfanbijXTLQ75WtF5ecZ1SrolMSNjgalVr kQ/cya4ceuL7718Dvy6ocLKMlW+0C/VVslBo5hU/b518S5GEffmZuZK7kV2zF+MNlCcT v5PpITkIHbGiNfsCnxb0B+h5ke1hq6bqQcPqk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:x-originating-ip:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding:x-gm-message-state; bh=RUnzdHwtKDgXrJS8pMy2Lf45H5naUDJc7VpVn698LOU=; b=GvgRcB238GjSSpYHYBL3fbHo+pMPBSw5YPB7jy/Byp4UOHwPrZhK8Ebwh111AxpToo Zat8i+AOx7bxEUvzlp3WSzs72/O7ljZIVmHCNbR45iEORXVxah3MBS9SXuohCDHi9CrC h1C+i4loTWzotrQzVn0s32ZtFm/1tSK2kJELBIrjti5SMzU+BlYkuOdQw/8AL6jNdta2 lE7gpMf5mo6ySBrl2OGRtK6J8poBzjy18fPQVgTpRWAo8ZsGPjyqMuOpKBneK13oPE98 iMv5wJAzhDAu48SAIWW+TO4ON2zYtmK8EVeb795p1ufKdAt9yHCobkdOifcGi9a/Pwls cJoA== MIME-Version: 1.0 X-Received: by 10.60.62.70 with SMTP id w6mr1587229oer.38.1364198680371; Mon, 25 Mar 2013 01:04:40 -0700 (PDT) Sender: decke@bluelife.at Received: by 10.76.99.114 with HTTP; Mon, 25 Mar 2013 01:04:40 -0700 (PDT) X-Originating-IP: [80.123.233.199] In-Reply-To: <20130325020340.02c5ace0@nonamehost> References: <20130323132627.04bf7ef4@nonamehost> <20130324120507.GX3794@kib.kiev.ua> <20130325020340.02c5ace0@nonamehost> Date: Mon, 25 Mar 2013 09:04:40 +0100 X-Google-Sender-Auth: jz4VKzPaZaaMELDg8_a4h0HYo4A Message-ID: Subject: Re: Kernel panic CURRENT r248596 at virtualbox-ose-kmod module load From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Ivan Klymenko Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQn9mfxqjcy1MXuR0usP7k9EAEIeXHbvkOr7F0zPaBh4486SxIQT9hsTQg62crD3XvobdkOY Cc: Konstantin Belousov , freebsd-current@freebsd.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Mar 2013 08:04:46 -0000 On Mon, Mar 25, 2013 at 1:03 AM, Ivan Klymenko wrote: > =D0=92 Sun, 24 Mar 2013 14:05:07 +0200 > Konstantin Belousov =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >> On Sat, Mar 23, 2013 at 01:26:27PM +0200, Ivan Klymenko wrote: >> > I have >> > uname -a >> > FreeBSD nonamehost 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r248596: Fri >> > Mar 22 01:17:08 EET 2013 >> > ivan@nonamehost:/usr/obj/usr/src/sys/GENERIC amd64 >> > >> > I updated the ports tree to r314921 and recompiled >> > virtualbox-ose-kmod >> > >> > After load the module a have kernel panic. >> > >> > Panic String: Lock vm object not exclusively locked @ >> > /usr/src/sys/vm/vm_page.c:1396 >> > >> > http://pkgupdate.nevosoft.ru/backtrace.txt >> >> This looks like a vbox issue, the driver did not properly locked >> the object passed to the vm_page_alloc_contig(). >> >> If you want this fixed, you probably need to look up the code >> yourself, compiling the vbox kld with debugging, finding the >> offending call to vm_page_alloc_contig() and looking around it to see >> which object is passed and why it is not locked. > > The problem is that port commiter did not listen your advice: > http://docs.freebsd.org/cgi/mid.cgi?20130312151751.GJ3794 > > and used in the patch is not the functions that need > http://svnweb.freebsd.org/ports/head/emulators/virtualbox-ose-kmod/files/= patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd_VM_OBJECT_RENAME.= c?r1=3D314794&r2=3D314796 > > I replaced the all function "VM_OBJECT_RLOCK" on "VM_OBJECT_WLOCK" > and > "VM_OBJECT_RUNLOCK" on "VM_OBJECT_WUNLOCK" > > and the kernel panic ceased. > > Thanks. This problem is solved. Thanks a lot! I've fixed it in the port now. Would be great if you could ve= rify that it's correct now. --=20 Bernhard Froehlich http://www.bluelife.at/