From owner-svn-src-head@FreeBSD.ORG Wed Jun 10 20:29:17 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2D8D6E23; Wed, 10 Jun 2015 20:29:17 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5BB81722; Wed, 10 Jun 2015 20:29:16 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by wigg3 with SMTP id g3so59363672wig.1; Wed, 10 Jun 2015 13:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Qjc+PR2h+61EBR8/O0VSvS1/K888U6JTp0/SyXE4OOk=; b=SNFCh7Ks2B8BsyHKs7+aWqx1o5ZpggKQJbXZ5U88DUFPPIjOHYSDyTO/dgo1A50J+8 9mw5gbpT9sRw+wVQFRHDY1Yn8r2SF4s7EbUn4Qvcf03DgdCZJeR+CxiflNAeu4M2PpsD KoemiyVwgQG1/FTVM7wz34N6FmDk3S6csJuKm4ZfxfLrgocfxZzxuyb+ZJOdwK6pFv2J EV5MIcbHGEg90KVRRvZdzwIOIVRTAJO7rBGqQnuJ6cMfIb6v7ZqcgyV6pBl4qqCRO2KK XA2D38HN99Q0dcauDHoItbZ458aAi205WzdnKd+ZZGioBri0/3dWWjcDC31TyOqWOzaL V02A== X-Received: by 10.180.74.132 with SMTP id t4mr23132179wiv.55.1433968155079; Wed, 10 Jun 2015 13:29:15 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPSA id ha4sm9578326wib.0.2015.06.10.13.29.13 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 10 Jun 2015 13:29:13 -0700 (PDT) Date: Wed, 10 Jun 2015 22:29:11 +0200 From: Mateusz Guzik To: Ivan Klymenko Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Mateusz Guzik 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: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150610230814.3852116f@nonamehost.local> User-Agent: Mutt/1.5.21 (2010-09-15) 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:29:17 -0000 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 -- Mateusz Guzik