From owner-svn-src-all@FreeBSD.ORG Wed Jun 10 21:05:27 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [8.8.178.116]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 900C6D87; Wed, 10 Jun 2015 21:05:27 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx2.freebsd.org (Postfix) with ESMTP id EA14818E5; Wed, 10 Jun 2015 21:05:26 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Message-ID: <5578A696.7050307@FreeBSD.org> Date: Wed, 10 Jun 2015 17:05:26 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Ivan Klymenko , 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 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> <20150610234237.383e4fc1@nonamehost.local> In-Reply-To: <20150610234237.383e4fc1@nonamehost.local> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2015 21:05:27 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 06/10/2015 16:42, Ivan Klymenko wrote: > Wed, 10 Jun 2015 22:29:11 +0200 Mateusz Guzik > написав: > >> On Wed, Jun 10, 2015 at 11:08:14PM +0300, Ivan Klymenko wrote: >>> Wed, 10 Jun 2015 21:29:38 +0200 Mateusz Guzik >>> написав: >>> >>>> On Wed, Jun 10, 2015 at 10:13:17PM +0300, Ivan Klymenko >>>> wrote: >>>>> Wed, 10 Jun 2015 21:09:25 +0200 Mateusz Guzik >>>>> написав: >>>>> >>>>>> On Wed, Jun 10, 2015 at 09:47:57PM +0300, Ivan Klymenko >>>>>> wrote: >>>>>>> Wed, 10 Jun 2015 10:48:13 +0000 (UTC) Mateusz Guzik >>>>>>> написав: >>>>>>> >>>>>>>> kern_resource.c >>>>>>> >>>>>>> I get another panic - this time with VirtualBox: >>>>>>> >>>>> >>>>>> >>>>>> Have you recompiled the module after you updated the >>>>>> kernel? >>>>>> >>>>> >>>>> Of course. >>>>> >>>> >>>> So how have you patched the source? If you have updated >>>> headers in place, the compilation should fail due to >>>> parameter type mismatch. >>>> >>> >>> Unfortunately no patches I have, except that r284222 + patch >>> from r284226 >>> >>>> Can you go to the frame with the thread and dump it's >>>> content? >>> >>> >>> if I understood correctly http://pastebin.com/wim7jM7i >> >> Well this does not look like a valid thread and that's expected. >> >> 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. >> >> 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 = >> round_page((vm_offset_t)pProc->p_vmspace->vm_daddr + >> lim_max(pProc, RLIMIT_DATA)); + AddrR3 = >> round_page((vm_offset_t)pProc->p_vmspace->vm_daddr + >> lim_max_proc(pProc, RLIMIT_DATA)); PROC_UNLOCK(pProc); } else >> > > Cool! It works. Thank you very much. Committed. https://svnweb.freebsd.org/changeset/ports/389147 Thanks! Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVeKaWAAoJEHyflib82/FGHs4H/1ltpV+nAC7LDGZUXWps6+Gm ERuHCkgdA4E9AiZoOKxCOFy514bkqdQAm+upTiVAFaegiCHJrLxWMR2kfqQsUoO2 C/hJ8600S0XTo879zppghJ6wk4EB2YJDc3GD8ftzM9i5ihGu1iDzxb543i7CJD70 F0f5A54SyZ1TNtuU1dF9yC6XrOHhEpNdCqLvT95mdHee/yncohrPtOVj7U/02jnc JomlvwRUoJmFcaVK7oDZyZ3jV9QvWtg2s4tktjwgVB2E59DfaiQI72bYVUFPRPwh /q5zy7asZOYKa0e0O9TYCm+3ob45wBv/cP5824R1fjFTZoQmGWyZQKur1gFdO/0= =QJte -----END PGP SIGNATURE-----