From owner-svn-src-head@FreeBSD.ORG Wed Jun 10 20:42:43 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7DA244DA; Wed, 10 Jun 2015 20:42:43 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from frv158.fwdcdn.com (frv158.fwdcdn.com [212.42.77.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39BDB1BC8; Wed, 10 Jun 2015 20:42:42 +0000 (UTC) (envelope-from fidaj@ukr.net) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=fsm; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=x/Vm9Ax62aAA8ihM/vsCRun4v5WZKvgJqhiq4NfMNCE=; b=RjRqZ6Qwa7rZE/yQOnt6uH7ulz7NyMY1F5Hr6X/YIlFSVqWnwxa+qJA30a97CCTwEejgIzRkUkPW4TryPsG5VZlpZHNZBSwn1PaMNlWD7R284+g2EmrxDo8HeBzUTOAGQG9tlXS3cZSR10j0LbB9E9WapQ/hmdHRoMUT5N8tf7U=; Received: from [134.249.91.180] (helo=nonamehost.local) by frv158.fwdcdn.com with esmtpsa ID 1Z2mpb-000K5g-8N ; Wed, 10 Jun 2015 23:42:39 +0300 Date: Wed, 10 Jun 2015 23:42:37 +0300 From: Ivan Klymenko To: Mateusz Guzik Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Mateusz Guzik , ports@FreeBSD.org Subject: Re: svn commit: r284215 - in head/sys: amd64/linux32 compat/linux compat/svr4 dev/drm2/i915 fs/fdescfs i386/ibcs2 i386/linux kern ofed/drivers/infiniband/core ofed/drivers/infiniband/hw/mthca sys vm Message-ID: <20150610234237.383e4fc1@nonamehost.local> In-Reply-To: <20150610202911.GG23380@dft-labs.eu> References: <201506101048.t5AAmD1O029382@svn.freebsd.org> <20150610214757.59a4b2d0@nonamehost.local> <20150610190925.GD23380@dft-labs.eu> <20150610221317.4b104fbc@nonamehost.local> <20150610192937.GE23380@dft-labs.eu> <20150610230814.3852116f@nonamehost.local> <20150610202911.GG23380@dft-labs.eu> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Authentication-Result: IP=134.249.91.180; mail.from=fidaj@ukr.net; dkim=pass; header.d=ukr.net X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2015 20:42:43 -0000 Wed, 10 Jun 2015 22:29:11 +0200 Mateusz Guzik =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0= =B2: > On Wed, Jun 10, 2015 at 11:08:14PM +0300, Ivan Klymenko wrote: > > Wed, 10 Jun 2015 21:29:38 +0200 > > Mateusz Guzik =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0= =D0=B2: > >=20 > > > On Wed, Jun 10, 2015 at 10:13:17PM +0300, Ivan Klymenko wrote: > > > > Wed, 10 Jun 2015 21:09:25 +0200 > > > > Mateusz Guzik =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0= =B0=D0=B2: > > > >=20 > > > > > On Wed, Jun 10, 2015 at 09:47:57PM +0300, Ivan Klymenko wrote: > > > > > > Wed, 10 Jun 2015 10:48:13 +0000 (UTC) > > > > > > Mateusz Guzik =D0=BD=D0=B0=D0=BF=D0=B8=D1=81= =D0=B0=D0=B2: > > > > > >=20 > > > > > > > kern_resource.c > > > > > >=20 > > > > > > I get another panic - this time with VirtualBox: > > > > > >=20 > > > >=20 > > > > >=20 > > > > > Have you recompiled the module after you updated the kernel? > > > > >=20 > > > >=20 > > > > Of course. > > > >=20 > > >=20 > > > So how have you patched the source? If you have updated headers in > > > place, the compilation should fail due to parameter type mismatch. > > >=20 > >=20 > > Unfortunately no patches I have, except that r284222 + patch from > > r284226 > >=20 > > > Can you go to the frame with the thread and dump it's content? > >=20 > >=20 > > if I understood correctly > > http://pastebin.com/wim7jM7i >=20 > Well this does not look like a valid thread and that's expected. >=20 > Apparently virtualbox is compiled with '-w', which disables warnings > and then they enable only a small subset. Information about pointer > mismatch is amongst suppressed warnings. >=20 > As noted earlier the issue can be trivially fixed: > --- ./src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c.orig > 2015-06-10 19:30:28.355276494 +0000 > +++ ./src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c > 2015-06-10 19:30:41.280304985 +0000 @@ -747,7 +747,7 @@ { > /** @todo: is this needed?. */ > PROC_LOCK(pProc); > - AddrR3 =3D round_page((vm_offset_t)pProc->p_vmspace->vm_daddr > + lim_max(pProc, RLIMIT_DATA)); > + AddrR3 =3D round_page((vm_offset_t)pProc->p_vmspace->vm_daddr > + lim_max_proc(pProc, RLIMIT_DATA)); PROC_UNLOCK(pProc); > } > else >=20 Cool! It works. Thank you very much.