From owner-freebsd-emulation@FreeBSD.ORG Sun Feb 21 06:51:39 2010 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C13C1065676 for ; Sun, 21 Feb 2010 06:51:39 +0000 (UTC) (envelope-from z_axis@163.com) Received: from m13-8.163.com (m13-8.163.com [220.181.13.8]) by mx1.freebsd.org (Postfix) with ESMTP id DC36C8FC0C for ; Sun, 21 Feb 2010 06:51:29 +0000 (UTC) Received: from z_axis ( [125.71.136.118] ) by ajax-webmail-wmsvr8 (Coremail) ; Sun, 21 Feb 2010 14:36:19 +0800 (CST) Date: Sun, 21 Feb 2010 14:36:19 +0800 (CST) From: z_axis To: freebsd-emulation@FreeBSD.org Message-ID: <5094423d.3513.126ef3da4b7.Coremail.z_axis@163.com> MIME-Version: 1.0 X-Originating-IP: [125.71.136.118] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 100128(9785.2895.2888) Copyright (c) 2002-2010 www.mailtech.cn 163com X-CM-CTRLDATA: GtKW1mZvb3Rlcl9odG09NDcxOTo0NA== X-CM-TRANSID: CMGowKDrGFpj1IBLQF3GAA--.29574W X-CM-SenderInfo: x2bd5xrv6rljoofrz/1tbiGBl+Zj-6U8vMCgABsD X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: After customizing 8.0 kernel, the VirtualBox doesnot appear ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 06:51:39 -0000 >uname -a FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #6: Fri Feb 19 15:49:41 CST 2010 root@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL i386 >pkg_info | grep virtualbox virtualbox-ose-3.1.2_1 A general-purpose full virtualizer for x86 hardware virtualbox-ose-kmod-3.1.2_1 VirtualBox kernel module for FreeBSD >cat /boot/loader.conf nvidia_load="YES" vboxdrv_load="YES" >kldstat Id Refs Address Size Name 1 15 0xc0400000 9a0ab8 kernel 2 1 0xc0da1000 1b724 snd_hda.ko 3 2 0xc0dbd000 567b0 sound.ko 5 1 0xc61e1000 27000 vboxdrv.ko 6 1 0xc6208000 951000 nvidia.ko 7 1 0xc61c6000 10000 ext2fs.ko >VirtualBox Stop here forever nomatter XLIB_SKIP_ARGB_VISUALS is set or not ! >From another terminal: >ps -A | grep -i virtua 13900 ?? I 0:00.14 /usr/local/lib/virtualbox/VBoxSVC --pipe 8 --auto-shutdown 13896 0 I+ 0:00.79 VirtualBox 13897 0 I+ 0:00.05 /usr/local/lib/virtualbox/VBoxXPCOMIPCD However, GENERIC kernel works fine before: >diff GENERIC MYKERNEL 21,22c21,22 < cpu I486_CPU #cpu I486_CPU > #cpu I586_CPU 40c40 #options INET6 # IPv6 communications protocols 48,52c48,52 < options NFSCLIENT # Network Filesystem Client < options NFSSERVER # Network Filesystem Server < options NFSLOCKD # Network Lock Manager < options NFS_ROOT # NFS usable as /, requires NFSCLIENT #options NFSCLIENT # Network Filesystem Client > #options NFSSERVER # Network Filesystem Server > #options NFSLOCKD # Network Lock Manager > #options NFS_ROOT # NFS usable as /, requires NFSCLIENT > #options MSDOSFS # MSDOS Filesystem 92c92 #device fdc 140,150c140,150 < device amr # AMI MegaRAID < device arcmsr # Areca SATA II RAID < device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID < device ciss # Compaq Smart RAID 5* < device dpt # DPT Smartcache III, IV - See NOTES for options < device hptmv # Highpoint RocketRAID 182x < device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx < device iir # Intel Integrated RAID < device ips # IBM (Adaptec) ServeRAID < device mly # Mylex AcceleRAID/eXtremeRAID #device amr # AMI MegaRAID > #device arcmsr # Areca SATA II RAID > #device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID > #device ciss # Compaq Smart RAID 5* > #device dpt # DPT Smartcache III, IV - See NOTES for options > #device hptmv # Highpoint RocketRAID 182x > #device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx > #device iir # Intel Integrated RAID > #device ips # IBM (Adaptec) ServeRAID > #device mly # Mylex AcceleRAID/eXtremeRAID > #device twa # 3ware 9000 series PATA/SATA RAID 153,159c153,159 < device aac # Adaptec FSA RAID < device aacp # SCSI passthrough for aac (requires CAM) < device ida # Compaq Smart RAID < device mfi # LSI MegaRAID SAS < device mlx # Mylex DAC960 family < device pst # Promise Supertrak SX6000 #device aac # Adaptec FSA RAID > #device aacp # SCSI passthrough for aac (requires CAM) > #device ida # Compaq Smart RAID > #device mfi # LSI MegaRAID SAS > #device mlx # Mylex DAC960 family > #device pst # Promise Supertrak SX6000 > #device twe # 3ware ATA RAID 268c268 #device an # Aironet 4500/4800 802.11 wireless NICs. 273,274c273,274 < device ral # Ralink Technology RT2500 wireless NICs. #device ral # Ralink Technology RT2500 wireless NICs. > #device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs. 302c302 #device umass # Disks/Mass storage - Requires scbus and da 329c329 #device firewire # FireWire bus code 331,334c331,334 < device fwe # Ethernet over FireWire (non-standard!) < device fwip # IP over FireWire (RFC 2734,3146) < device dcons # Dumb console driver #device fwe # Ethernet over FireWire (non-standard!) > #device fwip # IP over FireWire (RFC 2734,3146) > #device dcons # Dumb console driver > #device dcons_crom # Configuration ROM for dcons Any suggestion is appreciated! From owner-freebsd-emulation@FreeBSD.ORG Sun Feb 21 08:20:15 2010 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2949D1065672; Sun, 21 Feb 2010 08:20:15 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F359F8FC0C; Sun, 21 Feb 2010 08:20:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1L8KEIN095580; Sun, 21 Feb 2010 08:20:14 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1L8KE56095575; Sun, 21 Feb 2010 08:20:14 GMT (envelope-from edwin) Date: Sun, 21 Feb 2010 08:20:14 GMT Message-Id: <201002210820.o1L8KE56095575@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, emulation@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/144155: [patch] sysutils/linux-nero fix typo in Makefile X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 08:20:15 -0000 Synopsis: [patch] sysutils/linux-nero fix typo in Makefile Responsible-Changed-From-To: freebsd-ports-bugs->emulation Responsible-Changed-By: edwin Responsible-Changed-When: Sun Feb 21 08:20:14 UTC 2010 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=144155 From owner-freebsd-emulation@FreeBSD.ORG Sun Feb 21 08:36:12 2010 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1ED0106568F; Sun, 21 Feb 2010 08:36:12 +0000 (UTC) (envelope-from bsam@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 788B08FC38; Sun, 21 Feb 2010 08:36:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1L8aCrN015642; Sun, 21 Feb 2010 08:36:12 GMT (envelope-from bsam@freefall.freebsd.org) Received: (from bsam@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1L8aCUp015638; Sun, 21 Feb 2010 08:36:12 GMT (envelope-from bsam) Date: Sun, 21 Feb 2010 08:36:12 GMT Message-Id: <201002210836.o1L8aCUp015638@freefall.freebsd.org> To: hinokind@gmail.com, bsam@FreeBSD.org, emulation@FreeBSD.org From: bsam@FreeBSD.org Cc: Subject: Re: ports/144155: [patch] sysutils/linux-nero fix typo in Makefile X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 08:36:12 -0000 Synopsis: [patch] sysutils/linux-nero fix typo in Makefile State-Changed-From-To: open->closed State-Changed-By: bsam State-Changed-When: Sun Feb 21 08:36:03 UTC 2010 State-Changed-Why: Committed, thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=144155 From owner-freebsd-emulation@FreeBSD.ORG Sun Feb 21 08:40:03 2010 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A8E6106566B for ; Sun, 21 Feb 2010 08:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 396008FC14 for ; Sun, 21 Feb 2010 08:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1L8e3R3015747 for ; Sun, 21 Feb 2010 08:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1L8e3rB015746; Sun, 21 Feb 2010 08:40:03 GMT (envelope-from gnats) Date: Sun, 21 Feb 2010 08:40:03 GMT Message-Id: <201002210840.o1L8e3rB015746@freefall.freebsd.org> To: emulation@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: ports/144155: commit references a PR X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 08:40:03 -0000 The following reply was made to PR ports/144155; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/144155: commit references a PR Date: Sun, 21 Feb 2010 08:35:58 +0000 (UTC) bsam 2010-02-21 08:35:45 UTC FreeBSD ports repository Modified files: sysutils/linux-nero Makefile Log: ONLY_FOR_ARCH -> ONLY_FOR_ARCHS. PR: ports/144155 Submitted by: Andrius Morkunas Feature safe: yes Revision Changes Path 1.7 +1 -1 ports/sysutils/linux-nero/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Sun Feb 21 16:54:26 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 412921065672 for ; Sun, 21 Feb 2010 16:54:26 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 203CA8FC16 for ; Sun, 21 Feb 2010 16:54:25 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NjF4b-0008Jx-D6 for freebsd-emulation@freebsd.org; Sun, 21 Feb 2010 08:54:25 -0800 Message-ID: <27676860.post@talk.nabble.com> Date: Sun, 21 Feb 2010 08:54:25 -0800 (PST) From: Hubert Tournier To: freebsd-emulation@freebsd.org In-Reply-To: <252B63EC396745F7A6AE9E622C215437@artemis> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: hubert@frbsd.org References: <18D68DBE18AC435984C5F66597A869D3@artemis> <252B63EC396745F7A6AE9E622C215437@artemis> Subject: Re: [PATCH] VirtualBox headless VNC support by LibVNCServer (20100211) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 16:54:26 -0000 Hello, Daisuke Aoyama wrote: >=20 > If you want another keyboard, you can spcify the path of kbdmap(5). > In standard installation of FreeBSD, it's located in > /usr/share/syscons/keymaps/. >=20 Here's a smaller=20 http://old.nabble.com/file/p27676860/patch-patch-src-VBox-Frontends-VBoxHea= dless-keymap.c patch to your keymap.c file than my previous one - correcting two trivial typos - adding the possibility to use keymaps such as fr.iso.acc.kbd which have lines not handled by the existing code - adding the handling of numerical fields in keymaps files allowing some special or accented characters to be recognized (for example in fr.iso.kbd) And here's also your=20 http://old.nabble.com/file/p27676860/vboxvnc-20100221.tar.gz full patch=20 with this inside. Best regards, Hubert PS: It's still missing numlock and AltGr keys support, such as ~#{[|`\^@]}= =E2=82=AC for a french keyboard --=20 View this message in context: http://old.nabble.com/-PATCH--VirtualBox-head= less-VNC-support-by-LibVNCServer-tp27288796p27676860.html Sent from the freebsd-emulation mailing list archive at Nabble.com. From owner-freebsd-emulation@FreeBSD.ORG Sun Feb 21 17:10:13 2010 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74185106566B; Sun, 21 Feb 2010 17:10:13 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4BE038FC15; Sun, 21 Feb 2010 17:10:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1LHADAx073181; Sun, 21 Feb 2010 17:10:13 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1LHADSP073177; Sun, 21 Feb 2010 17:10:13 GMT (envelope-from edwin) Date: Sun, 21 Feb 2010 17:10:13 GMT Message-Id: <201002211710.o1LHADSP073177@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-emulation@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/144183: [patch] sysutils/linux-procps allow install on amd64 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 17:10:13 -0000 Synopsis: [patch] sysutils/linux-procps allow install on amd64 Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-emulation Responsible-Changed-By: edwin Responsible-Changed-When: Sun Feb 21 17:10:12 UTC 2010 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=144183 From owner-freebsd-emulation@FreeBSD.ORG Sun Feb 21 17:11:07 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8479F106568D for ; Sun, 21 Feb 2010 17:11:07 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 63ED08FC08 for ; Sun, 21 Feb 2010 17:11:07 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NjFKk-000114-Sw for freebsd-emulation@freebsd.org; Sun, 21 Feb 2010 09:11:06 -0800 Message-ID: <27676863.post@talk.nabble.com> Date: Sun, 21 Feb 2010 09:11:06 -0800 (PST) From: Hubert Tournier To: freebsd-emulation@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: hubert@frbsd.org References: <18D68DBE18AC435984C5F66597A869D3@artemis> <27587832.post@talk.nabble.com> Subject: Re: [PATCH] VirtualBox headless VNC support by LibVNCServer X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 17:11:07 -0000 Hello again, Daisuke Aoyama wrote: >=20 >> Do you know where this limitation comes from? Any idea? > I am testing only US 101 keys though 106 keys are main currents in our=20 > country. > I am using only US 101 :-) > I will check other keyboards a little more. >=20 It seems to be a very common problem with both VNC clients and servers, due to the way key events are handled in=20 http://www.realvnc.com/docs/rfbproto.pdf the RFB protocol (=C2=A76.4.4). As I've made my test with "the only client that handles all servers and all capabilities" (according to this article:=20 http://jorgenmodin.net/index_html/archive/2009/05/12/comparison-vnc-clients= -capabilities-including-alt-gr-characters-on-ubuntu-linux Comparison: VNC Clients capabilities including Alt Gr characters on Ubuntu Linux ) and still have this special keys problem, I think the way key event= s are handled should be modified. Searching a little bit, I found some examples with other "emulators" embedding a VNC server: - for Qemu: http://www.mail-archive.com/qemu-devel@nongnu.org/msg11941.htm= l [Qemu-devel] [Patch] AltGr on vnc and adding extra keys with no compiling= =20 - for XEN:=20 http://old.nabble.com/-PATCH-0-of-2--Fix-keymap-handling-for-vnc-console-td= 20505033.html [PATCH 0 of 2] Fix keymap handling for vnc console ,=20 http://old.nabble.com/-PATCH-1-of-2--Fix-keymap-handling-for-vnc-console-td= 20505054.html#a20505054 [PATCH 1 of 2] , http://markmail.org/message/hgdtvtaaj7l66pwx [PATCH 2 of 2]=20 I'll try to have a look at these in the next weeks... Best regards, Hubert --=20 View this message in context: http://old.nabble.com/-PATCH--VirtualBox-head= less-VNC-support-by-LibVNCServer-tp27288796p27676863.html Sent from the freebsd-emulation mailing list archive at Nabble.com. From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 22 02:10:05 2010 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6425E1065676 for ; Mon, 22 Feb 2010 02:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 432D08FC12 for ; Mon, 22 Feb 2010 02:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1M2A4Bl036513 for ; Mon, 22 Feb 2010 02:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1M2A46Y036512; Mon, 22 Feb 2010 02:10:04 GMT (envelope-from gnats) Date: Mon, 22 Feb 2010 02:10:04 GMT Message-Id: <201002220210.o1M2A46Y036512@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Gleb Kurtsou Cc: Subject: Re: kern/141439: linux_exit_group kills group leader X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gleb Kurtsou List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2010 02:10:05 -0000 The following reply was made to PR kern/141439; it has been noted by GNATS. From: Gleb Kurtsou To: Stefan Schmidt Cc: bug-followup@FreeBSD.org Subject: Re: kern/141439: linux_exit_group kills group leader Date: Mon, 22 Feb 2010 04:06:59 +0200 On (13/12/2009 23:18), Stefan Schmidt wrote: [...] > Using the 32-bit Linux version of Sun's Java Development Kit 1.6 > (Update 17) on FreeBSD 8.0 (amd64), invocations of "javac" (or "java") > eventually end with the output of "Killed" and exit code 137. > > This is particularly annoying when running e.g. JUnit-tests in a > separate process. The calling process always receives exit code 137 > from its sub-process and assumes that tests failed. Hi Stefan, I've experienced the same problem with sun jdk. I think approach of not killing group leader is incorrect, it should also be killed. Your patch works because linux_exit_group is called for the second time when only group leader is available. Such behavior is not expected, control should not return to userspace from linux_exit_group. I've submitted another PR, it contains fixes for 2 linux exec bugs. I've followed NetBSD and patched exit1() to allow process exit status to be changed by event handlers. Would appreciate if you could test the patch: http://www.freebsd.org/cgi/query-pr.cgi?pr=144194 Thanks, Gleb From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 22 10:58:47 2010 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F132610656CD; Mon, 22 Feb 2010 10:58:47 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CA0978FC1F; Mon, 22 Feb 2010 10:58:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1MAwl7h030743; Mon, 22 Feb 2010 10:58:47 GMT (envelope-from miwi@freefall.freebsd.org) Received: (from miwi@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1MAwlVT030739; Mon, 22 Feb 2010 10:58:47 GMT (envelope-from miwi) Date: Mon, 22 Feb 2010 10:58:47 GMT Message-Id: <201002221058.o1MAwlVT030739@freefall.freebsd.org> To: miwi@FreeBSD.org, freebsd-emulation@FreeBSD.org, miwi@FreeBSD.org From: miwi@FreeBSD.org Cc: Subject: Re: ports/144183: [patch] sysutils/linux-procps allow install on amd64 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2010 10:58:48 -0000 Synopsis: [patch] sysutils/linux-procps allow install on amd64 Responsible-Changed-From-To: freebsd-emulation->miwi Responsible-Changed-By: miwi Responsible-Changed-When: Mon Feb 22 10:58:47 UTC 2010 Responsible-Changed-Why: I'll take it. http://www.freebsd.org/cgi/query-pr.cgi?pr=144183 From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 22 11:06:55 2010 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF2F7106566B for ; Mon, 22 Feb 2010 11:06:55 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 948DC8FC18 for ; Mon, 22 Feb 2010 11:06:55 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1MB6tSw039665 for ; Mon, 22 Feb 2010 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1MB6t3I039663 for freebsd-emulation@FreeBSD.org; Mon, 22 Feb 2010 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 22 Feb 2010 11:06:55 GMT Message-Id: <201002221106.o1MB6t3I039663@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2010 11:06:55 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/142595 emulation Implementation of "filesystems" file in linprocfs(5) o kern/142082 emulation [patch] [panic] linuxulator: getppid: use after free o kern/141439 emulation [linux] [patch] linux_exit_group kills group leader o kern/140156 emulation [linux] cdparanoia fails to read drive data o kern/139423 emulation [parallels] Networking does not work on amd64 guest on o kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest f ports/137332 emulation add caution messages to some adobe products s ports/136321 emulation x11-toolkits/linux-pango: please update linux based po o ports/136229 emulation [linux] emulators/linux_base-f10: certain linux apps l o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage o kern/133144 emulation [linux] linuxulator 2.6 crashes with nvidias libGL.so. o kern/130724 emulation [linprocfs] [patch] cpuinfo in linprocfs is dated, cau o kern/129169 emulation [linux] [patch] Linux Emulation ENOTCONN error using n o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/56451 emulation [linprocfs] /compat/linux/proc/cpuinfo gives wrong CPU o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 24 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 22 15:17:24 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D202A1065672 for ; Mon, 22 Feb 2010 15:17:24 +0000 (UTC) (envelope-from proauction@admailers.net) Received: from admailers.net (admailers.net [81.196.161.145]) by mx1.freebsd.org (Postfix) with ESMTP id B82438FC0C for ; Mon, 22 Feb 2010 15:17:23 +0000 (UTC) Received: from admailers.net (localhost [127.0.0.1]) by admailers.net (Postfix) with ESMTP id 915ED4F652 for ; Mon, 22 Feb 2010 12:18:51 +0200 (EET) DomainKey-Signature: a=rsa-sha1; b=ViTvNiRkbwhQD8iJI4yL3CAWKlVMi8HAvPDRgRASFdzpXr6n/2u4b4OTC9uNdcnhi36topPX6h0VOTuqKBRJ9g==; c=simple; d=admailers.net; q=dns; s=mailer Received: from admailers.net (mailer.admailers.net [192.168.1.253]) by admailers.net (Postfix) with ESMTP id 8E5F04F654 for ; Mon, 22 Feb 2010 12:18:51 +0200 (EET) Date: Mon, 22 Feb 2010 17:18:24 +0200 To: freebsd-emulation@freebsd.org From: Pro Auction Ltd Errors-to: errors@admailers.net Message-ID: <851444960a0fc8313c88aff550bf54f3@admailers.net> Content-Language: en MIME-Version: 1.0 Content-Type: text/plain; charset = "iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Event closing today X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2010 15:17:25 -0000 If you are having trouble reading this message, click here for a web vers= ion.=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 The next live= and webcast event will take place on 4th March 2010 commencing at 11.30a= m prompt.=20 =20 On behalf of = Cumbrian Seafoods Ltd , Solway Trading Estate, Maryport, Cumbria CA15 8NF= .=20 =20 View images, = register and participate at www.bidspotter.com=20 =20 This is a com= plete factory sale of processing machinery, ancillary items and refrigera= tion.=20 =20 We also seek = offers for the 82,000sq foot factory available freehold.=20 =20 For Further i= nformation contact: =20 Mark Flynn=20 Unit 5 Midsom= er Ent Park=20 Bath=20 =20 BA3 2BB Helpline: 017= 61 414000 Technical Enq= uiries: 07946 496697 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 U= nit 5 Midsomer Enterprise Park R= adstock Road B= ath B= A3 2BB U= nited Kingdom =20 =20 =20 =20 =20 T= elephone: (+44) 01761 414000 F= acsimile: (+44) 0845 280 2492 =20 E= mail: info@proauction.ltd.uk W= eb: www.proauction.ltd.uk =20 M= obile 1: 07903 018331 M= obile 2: 07946 496697 =20 C= all Centres: U= SA: +001 914 462 3598 H= ong Kong: +00 852 3017 3619 F= rance: +0033 177 725 928 =20 V= AT Registration Number: G= B 826 6236 21 R= egistered Company Number: 5= 059610 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 This email and any files = transmitted with it are confidential and intended solely for the attentio= n and use of the individual or entity to whom they are addressed. If you = have received this email in error please reply to inform us accordingly, = prior to deleting the message. All sales are subject to Terms & Condition= s of sale as published on our web page. Email Stationery produced by Door= 4.=20 =20 =20 =20 If you would like to be r= emoved from our mailing list please click here. ----------------------------------------------------------- From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 22 17:09:55 2010 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93C9C1065670; Mon, 22 Feb 2010 17:09:55 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 67AE68FC0A; Mon, 22 Feb 2010 17:09:55 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1MH9tE7053080; Mon, 22 Feb 2010 17:09:55 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1MH9t6f053076; Mon, 22 Feb 2010 17:09:55 GMT (envelope-from linimon) Date: Mon, 22 Feb 2010 17:09:55 GMT Message-Id: <201002221709.o1MH9t6f053076@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-emulation@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/144194: [linux] [patch] linuxulator: 2 exec bug fixes X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2010 17:09:55 -0000 Old Synopsis: [patch] linuxulator: 2 exec bug fixes New Synopsis: [linux] [patch] linuxulator: 2 exec bug fixes Responsible-Changed-From-To: freebsd-bugs->freebsd-emulation Responsible-Changed-By: linimon Responsible-Changed-When: Mon Feb 22 17:09:17 UTC 2010 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=144194 From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 22 19:36:16 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36EAF10656A7; Mon, 22 Feb 2010 19:36:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 05A168FC1A; Mon, 22 Feb 2010 19:36:16 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 9280F46B2D; Mon, 22 Feb 2010 14:36:15 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 2F35E8A01F; Mon, 22 Feb 2010 14:36:03 -0500 (EST) From: John Baldwin To: Attilio Rao Date: Mon, 22 Feb 2010 12:02:29 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.2-CBSD-20100120; KDE/4.3.1; amd64; ; ) References: <179b97fb1001270941m2d8e9c8au20abc798c16b9c11@mail.gmail.com> <3bbf2fe11002201419v52b249ccg8d82c8ae747cf318@mail.gmail.com> In-Reply-To: <3bbf2fe11002201419v52b249ccg8d82c8ae747cf318@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201002221202.29747.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 22 Feb 2010 14:36:03 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.3 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-fs@freebsd.org, freebsd-emulation@freebsd.org, stable-list freebsd Subject: Re: ZFS and sh(1) panic: spin lock [lock addr] (smp rendezvous) held by [sh(1) proc tid] too long X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2010 19:36:16 -0000 On Saturday 20 February 2010 5:19:39 pm Attilio Rao wrote: > 2010/1/27 Brandon Gooch : > > The machine, a Dell Optiplex 755, has been locking up recently. The > > situation usually occurs while using VirtualBox (running a 64-bit > > Windows 7 instance) and doing anything else in another xterm (such as > > rebuilding a port). I've been unable to reliably reproduce it (I'm in > > an X session and the machine will not panic "properly"). > > > > However, while rebuilding Xorg today at ttyv0 and runnning > > VBoxHeadless on ttyv1, I managed to trigger what I believe is the > > lockup. > > > > I've attached a textdump in hopes that someone may be able to take a > > look and provide clues or instruction on debugging this. > > I think that jhb@ saw a similar problem while working on nVidia driver > or the like. > Not sure if he made any progress to debug this. That was due to a weird bug where I was accidentally zero'ing the local APIC due to a then-bug in sg_pager.c (it was forcing the VM system to clear the pages it mapped by accident). That should not be the explanation for this. -- John Baldwin From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 23 22:00:04 2010 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27BE3106566C; Tue, 23 Feb 2010 22:00:04 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id D33BA8FC17; Tue, 23 Feb 2010 22:00:03 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id BF1DD1E00127; Tue, 23 Feb 2010 23:00:02 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o1NLoAcc067801; Tue, 23 Feb 2010 22:50:10 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o1NLoAks067800; Tue, 23 Feb 2010 22:50:10 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Tue, 23 Feb 2010 22:50:10 +0100 To: freebsd-emulation@FreeBSD.org Message-ID: <20100223215010.GA67619@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@FreeBSD.org, Tim Kientzle Subject: Linuxolator patches: stat and lseek SEEK_END for disk devices X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 22:00:04 -0000 Hi! Before this gets buried on -hackers in another thead... :) I now have disks appear as block devices for Linux processes (there already was commented out code for that in linux_stats.c, I hope my version is now `correct enough' to be usable [1]), and I made a simple patch to make lseek SEEK_END (L_XTND in the source) dtrt on disk devices too by simply invoking the DIOCGMEDIASIZE ioctl there; [2] both of these things are what (some) Linux processes expect. Patches are here: (made on stable/8, if they don't apply on head I'll have to make extra versions for that...) http://people.freebsd.org/~nox/linuxdisk-blk.patch [1] http://people.freebsd.org/~nox/lseek-seek_end.patch [2] And yes, with these patches the Linux bsdtar mentioned on -hackers in the `"tar tfv /dev/cd0" speedup patch' thread now also runs fast on FreeBSD. :) Cheers, Juergen From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 24 22:17:13 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1C921065674 for ; Wed, 24 Feb 2010 22:17:13 +0000 (UTC) (envelope-from alexeichi@yahoo.de) Received: from web27601.mail.ukl.yahoo.com (web27601.mail.ukl.yahoo.com [217.146.177.220]) by mx1.freebsd.org (Postfix) with SMTP id 6F3AC8FC16 for ; Wed, 24 Feb 2010 22:17:12 +0000 (UTC) Received: (qmail 67933 invoked by uid 60001); 24 Feb 2010 21:50:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1267048229; bh=a5u8kzA9S0w7S44f8k/vqJP6JkrF036KP6s/ROdGax4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=mCKoxDjZtnHQtsvOGw1+fxXEmCGpWlab4Ddye6TcsYSdZlAx7CFq7p64NmxtbTSu0oLw0cPvxj6btQ/UaSR3hc8GMrJozOAkEtH4WwVE6BRWzG7SCbIagin4qBpk1EiLpZ/HylRHD4Nzv6UEsy0eSE5nnwlJS2LaVXha1+Q9mT0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=aaM8EWyn6jdy7UrZMiovxu5MUSR6nyPdjvGvehMIWBGdxuUf7AgmYbPqPMUHOUm2S2+rKyzb0Zgd3/tRgGJ3Q1ND/v9fRKWm4OfHrlVYADmOsQy/eXcGSgRGWzBZVcmnV03ELuizLzoOSRqgjojoZ7usaf9eDCrLqOaSMjWPsSM=; Message-ID: <663605.67178.qm@web27601.mail.ukl.yahoo.com> X-YMail-OSG: K_AixaUVM1mPisS4y77bgvMKm2dYxKbsSjQ46iGRr8MOL6BKhe76.PDd2EjHWxkK3BKre196YWFhRxhyGxh1u0D9fybPf6XyessJSRcAIehEliD3SzssTLe_N9Ws0QT2_fpHtMiUjV16FMMEnF7XOveVeaxeFj9iEUKibXI_Al7LdKp0svy9fhujlX8R8.evXEVA5soichx6GGrIvYXhO2L3n60BRDXYf6Srq_ftTwVyxqOAcvQhV6VCfBdR6Zhm_uyVLyOOSfSRum..q3KEnV8TnyVhMu9NWYDPDyrcfgIZ3cvIF7vbZkCvzYFHXWB9yzLdX21IRwmWttyD Received: from [87.187.227.50] by web27601.mail.ukl.yahoo.com via HTTP; Wed, 24 Feb 2010 21:50:29 GMT X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964 Date: Wed, 24 Feb 2010 21:50:29 +0000 (GMT) From: Alexander Eichner To: freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-19848374-1267048229=:67178" Subject: Patch to fix VirtualBox with recent kernel versions X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 22:17:14 -0000 --0-19848374-1267048229=:67178 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0A=0Aas promised to decke here is the final patch to fix VirtualBox wit= h recent FreeBSD kernel versions. As it is quite different to the one poste= d to freebsd-current please test it first before including it in the port. = The problem seems to be 32bit specific and I don't have a 32bit FreeBSD sys= tem here to test unfortunately.=0A=0ARegards,=0AAlexander Eichner=0A=0APS: = the OSE repository is working again. :)=0A=0A______________________________= ____________________=0ADo You Yahoo!?=0ASie sind Spam leid? Yahoo! Mail ver= f=FCgt =FCber einen herausragenden Schutz gegen Massenmails. =0Ahttp://mail= .yahoo.com --0-19848374-1267048229=:67178 Content-Type: application/octet-stream; name="memobj.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="memobj.patch" SW5kZXg6IHNyYy9WQm94L1J1bnRpbWUvcjBkcnYvZnJlZWJzZC9tZW1vYmot cjBkcnYtZnJlZWJzZC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHNy Yy9WQm94L1J1bnRpbWUvcjBkcnYvZnJlZWJzZC9tZW1vYmotcjBkcnYtZnJl ZWJzZC5jCShyZXZpc2lvbiA1NzY0NikKKysrIHNyYy9WQm94L1J1bnRpbWUv cjBkcnYvZnJlZWJzZC9tZW1vYmotcjBkcnYtZnJlZWJzZC5jCSh3b3JraW5n IGNvcHkpCkBAIC03MzksMTIgKzczOSwyNiBAQAogICAgICAgICAgICAgfQog ICAgICAgICAgICAgLyogZmFsbCB0aHJ1Ki8KICAgICAgICAgY2FzZSBSVFIw TUVNT0JKVFlQRV9QQUdFOgotICAgICAgICBjYXNlIFJUUjBNRU1PQkpUWVBF X01BUFBJTkc6CiAgICAgICAgIHsKLSAgICAgICAgICAgIHVpbnQ4X3QgKnBi ID0gKHVpbnQ4X3QgKilwTWVtRnJlZUJTRC0+Q29yZS5wdiArIChpUGFnZSA8 PCBQQUdFX1NISUZUKTsKKyAgICAgICAgICAgIHZtX29mZnNldF90IHBiID0g KHZtX29mZnNldF90KXBNZW1GcmVlQlNELT5Db3JlLnB2ICsgKGlQYWdlIDw8 IFBBR0VfU0hJRlQpOwogICAgICAgICAgICAgcmV0dXJuIHZ0b3BoeXMocGIp OwogICAgICAgICB9CisgICAgICAgIGNhc2UgUlRSME1FTU9CSlRZUEVfTUFQ UElORzoKKyAgICAgICAgeworICAgICAgICAgICAgdm1fb2Zmc2V0X3QgcGIg PSAodm1fb2Zmc2V0X3QpcE1lbUZyZWVCU0QtPkNvcmUucHYgKyAoaVBhZ2Ug PDwgUEFHRV9TSElGVCk7CiAKKyAgICAgICAgICAgIGlmIChwTWVtRnJlZUJT RC0+Q29yZS51Lk1hcHBpbmcuUjBQcm9jZXNzICE9IE5JTF9SVFIwUFJPQ0VT UykKKyAgICAgICAgICAgIHsKKyAgICAgICAgICAgICAgICBzdHJ1Y3QgcHJv YyAgICAqcFByb2MgICAgID0gKHN0cnVjdCBwcm9jICopcE1lbUZyZWVCU0Qt PkNvcmUudS5NYXBwaW5nLlIwUHJvY2VzczsKKyAgICAgICAgICAgICAgICBz dHJ1Y3Qgdm1fbWFwICAqcFByb2NNYXAgID0gJnBQcm9jLT5wX3Ztc3BhY2Ut PnZtX21hcDsKKyAgICAgICAgICAgICAgICBwbWFwX3QgcFBoeXNpY2FsTWFw ICAgICAgID0gcFByb2NNYXAtPnBtYXA7CisKKyAgICAgICAgICAgICAgICBy ZXR1cm4gcG1hcF9leHRyYWN0KHBQaHlzaWNhbE1hcCwgcGIpOworICAgICAg ICAgICAgfQorICAgICAgICAgICAgZWxzZQorICAgICAgICAgICAgICAgIHJl dHVybiB2dG9waHlzKHBiKTsKKyAgICAgICAgfQorCiAgICAgICAgIGNhc2Ug UlRSME1FTU9CSlRZUEVfQ09OVDoKICAgICAgICAgICAgIHJldHVybiBwTWVt RnJlZUJTRC0+Q29yZS51LkNvbnQuUGh5cyArIChpUGFnZSA8PCBQQUdFX1NI SUZUKTsKIAo= --0-19848374-1267048229=:67178-- From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 25 00:09:40 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 416741065677 for ; Thu, 25 Feb 2010 00:09:40 +0000 (UTC) (envelope-from adamk@voicenet.com) Received: from qmta07.westchester.pa.mail.comcast.net (qmta07.westchester.pa.mail.comcast.net [76.96.62.64]) by mx1.freebsd.org (Postfix) with ESMTP id E6D958FC22 for ; Thu, 25 Feb 2010 00:09:39 +0000 (UTC) Received: from omta12.westchester.pa.mail.comcast.net ([76.96.62.44]) by qmta07.westchester.pa.mail.comcast.net with comcast id lsKU1d0040xGWP85709gfE; Thu, 25 Feb 2010 00:09:40 +0000 Received: from [192.168.5.104] ([68.45.22.62]) by omta12.westchester.pa.mail.comcast.net with comcast id m09a1d0011LNQfY3Y09fLL; Thu, 25 Feb 2010 00:09:39 +0000 Message-ID: <4B85BFE1.50809@voicenet.com> Date: Wed, 24 Feb 2010 19:10:09 -0500 From: Adam K Kirchhoff User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org References: <663605.67178.qm@web27601.mail.ukl.yahoo.com> In-Reply-To: <663605.67178.qm@web27601.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Patch to fix VirtualBox with recent kernel versions X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 00:09:40 -0000 On 02/24/2010 04:50 PM, Alexander Eichner wrote: > Hi, > > as promised to decke here is the final patch to fix VirtualBox with recent FreeBSD kernel versions. As it is quite different to the one posted to freebsd-current please test it first before including it in the port. The problem seems to be 32bit specific and I don't have a 32bit FreeBSD system here to test unfortunately. > > Regards, > Alexander Eichner > > PS: the OSE repository is working again. :) > I tried the patch on one of my machines here and it's still aborting: !!Assertion Failed!! Expression: paPages[i].Phys != 0 && paPages[i].Phys != NIL_RTHCPHYS && !(paPages[i].Phys & PAGE_OFFSET_MASK) Location : /usr/ports/emulators/virtualbox-ose/work/VirtualBox-3.1.2_OSE/src/VBox/VMM/MMHyper.cpp(610) int MMR3HyperMapPages(VM*, void*, RTR0PTR, size_t, const SUPPAGE*, const char*, RTGCPTR64*) i=0x4 Phys=0000000000000000 Heap Adam From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 25 01:52:46 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F913106564A for ; Thu, 25 Feb 2010 01:52:46 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 567448FC0A for ; Thu, 25 Feb 2010 01:52:45 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id o1P1qjfk004710; Wed, 24 Feb 2010 18:52:45 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id o1P1qjZD004707; Wed, 24 Feb 2010 18:52:45 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 24 Feb 2010 18:52:45 -0700 (MST) From: Warren Block To: Alexander Eichner In-Reply-To: <663605.67178.qm@web27601.mail.ukl.yahoo.com> Message-ID: References: <663605.67178.qm@web27601.mail.ukl.yahoo.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; format=flowed Content-ID: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (wonkity.com [127.0.0.1]); Wed, 24 Feb 2010 18:52:45 -0700 (MST) Cc: freebsd-emulation@freebsd.org Subject: Re: Patch to fix VirtualBox with recent kernel versions X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 01:52:46 -0000 On Wed, 24 Feb 2010, Alexander Eichner wrote: > as promised to decke here is the final patch to fix VirtualBox with > recent FreeBSD kernel versions. As it is quite different to the one > posted to freebsd-current please test it first before including it in > the port. The problem seems to be 32bit specific and I don't have a > 32bit FreeBSD system here to test unfortunately. Er... you could use VirtualBox to create a VM for a 32-bit FreeBSD. -Warren Block * Rapid City, South Dakota USA From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 25 20:30:52 2010 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E9D8106564A; Thu, 25 Feb 2010 20:30:52 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE338FC1E; Thu, 25 Feb 2010 20:30:51 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id E91551E00173; Thu, 25 Feb 2010 21:30:50 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o1PKSoIG079567; Thu, 25 Feb 2010 21:28:50 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o1PKSovb079566; Thu, 25 Feb 2010 21:28:50 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Thu, 25 Feb 2010 21:28:50 +0100 To: Juergen Lock Message-ID: <20100225202850.GA79505@triton8.kn-bremen.de> References: <20100223215010.GA67619@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100223215010.GA67619@triton8.kn-bremen.de> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@FreeBSD.org, freebsd-emulation@FreeBSD.org, Tim Kientzle Subject: 32 bit Linux lseek missing overflow check (was: Re: Linuxolator patches: stat and lseek SEEK_END for disk devices) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 20:30:52 -0000 On Tue, Feb 23, 2010 at 10:50:10PM +0100, Juergen Lock wrote: > Hi! > > Before this gets buried on -hackers in another thead... :) > > I now have disks appear as block devices for Linux processes (there > already was commented out code for that in linux_stats.c, I hope my > version is now `correct enough' to be usable [1]), and I made a simple > patch to make lseek SEEK_END (L_XTND in the source) dtrt on disk > devices too by simply invoking the DIOCGMEDIASIZE ioctl there; [2] > both of these things are what (some) Linux processes expect. > > Patches are here: (made on stable/8, if they don't apply on head > I'll have to make extra versions for that...) > http://people.freebsd.org/~nox/linuxdisk-blk.patch [1] > http://people.freebsd.org/~nox/lseek-seek_end.patch [2] > > And yes, with these patches the Linux bsdtar mentioned on -hackers > in the `"tar tfv /dev/cd0" speedup patch' thread now also runs fast > on FreeBSD. :) I now added an vn_isdisk() check to the second patch after comments from julian, and I made a new patch that adds an overflow check to the 32 bit linux lseek: (also at http://people.freebsd.org/~nox/linux-lseek-overflow.patch ) Index: src/sys/compat/linux/linux_file.c =================================================================== RCS file: /home/scvs/src/sys/compat/linux/linux_file.c,v retrieving revision 1.119.2.1 diff -u -p -u -p -r1.119.2.1 linux_file.c --- src/sys/compat/linux/linux_file.c 3 Aug 2009 08:13:06 -0000 1.119.2.1 +++ src/sys/compat/linux/linux_file.c 25 Feb 2010 20:08:47 -0000 @@ -226,6 +226,7 @@ linux_lseek(struct thread *td, struct li int whence; } */ tmp_args; int error; + l_off_t l_off; #ifdef DEBUG if (ldebug(lseek)) @@ -236,6 +237,10 @@ linux_lseek(struct thread *td, struct li tmp_args.offset = (off_t)args->off; tmp_args.whence = args->whence; error = lseek(td, &tmp_args); + /* Check for overflow like Linux does. */ + l_off = *(off_t *)td->td_retval; + if (((off_t)l_off) != *(off_t *)td->td_retval) + error = EOVERFLOW; return error; } From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 25 21:54:13 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D11EB1065670 for ; Thu, 25 Feb 2010 21:54:13 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 704398FC1F for ; Thu, 25 Feb 2010 21:54:13 +0000 (UTC) Received: by wyb40 with SMTP id 40so2330452wyb.13 for ; Thu, 25 Feb 2010 13:54:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=i2NgzqHYiiyfAsB8NBuA4o64DVWpcOhN3XxBO6nAdzM=; b=t1L9QSuMTkEHb8obKiUMoruM2eGAsrxhX6kucFKSZ60rC26f2CXUxGWyU6hs45mdDf /oqVExaLHuj6J3Nt70kQAYFDbDmfPIsgZGMjcolNfEAUTruFPMhXwCLi2tWvZ4aHVN4x xJQUPtM1Wqs9Q2TeG9rcPwfd0pt8iInhRKHBs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vd6jj/S1XtVnuCWqktSVft67r8yknkv/qnO8KIUWqf/OAoa/AfkfDWKYketlluBpWl hxjzMdtuXB+yG+t6IsTZGUOyd8+yHSjbJLi9eELJubBoa9bMM3yyd/0qdce/nsCJpo+K XhBDqiPNYte+7Y5IP/IZB4lpo0ZXFfQ7N+2OE= MIME-Version: 1.0 Received: by 10.216.93.70 with SMTP id k48mr239201wef.134.1267134843125; Thu, 25 Feb 2010 13:54:03 -0800 (PST) Date: Thu, 25 Feb 2010 22:54:02 +0100 Message-ID: <1bd550a01002251354v7ea3ede9r458c027b038280fc@mail.gmail.com> From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: linprocfs proc/pid/mem Bad address X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 21:54:13 -0000 Why /compat/linux/proc//mem always reports "Bad address" ? I'm using 8.0-RELEASE-p2 Thanks in advance. From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 26 10:41:51 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7801A1065675 for ; Fri, 26 Feb 2010 10:41:51 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id E2D5D8FC1D for ; Fri, 26 Feb 2010 10:41:50 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o1QAfmRU061606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Feb 2010 12:41:48 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o1QAfmL9054876; Fri, 26 Feb 2010 12:41:48 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o1QAfmFl054875; Fri, 26 Feb 2010 12:41:48 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 26 Feb 2010 12:41:48 +0200 From: Kostik Belousov To: Fernando Apestegu?a Message-ID: <20100226104147.GC2489@deviant.kiev.zoral.com.ua> References: <1bd550a01002251354v7ea3ede9r458c027b038280fc@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fig2xvG2VGoz8o/s" Content-Disposition: inline In-Reply-To: <1bd550a01002251354v7ea3ede9r458c027b038280fc@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org Subject: Re: linprocfs proc/pid/mem Bad address X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 10:41:51 -0000 --Fig2xvG2VGoz8o/s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 25, 2010 at 10:54:02PM +0100, Fernando Apestegu?a wrote: > Why /compat/linux/proc//mem always reports "Bad address" ? >=20 > I'm using 8.0-RELEASE-p2 >=20 > Thanks in advance. Reports when ? What is the operation you doing that causes this ? --Fig2xvG2VGoz8o/s Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuHpWsACgkQC3+MBN1Mb4gQRACbBIKP7nu1v38kJ+3r8FfeTygs McMAoLqf1V6gnoIj7pfqGKJGxj3ZfTMk =GRq7 -----END PGP SIGNATURE----- --Fig2xvG2VGoz8o/s-- From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 26 11:06:13 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0E02106564A for ; Fri, 26 Feb 2010 11:06:13 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 38FC68FC1C for ; Fri, 26 Feb 2010 11:06:12 +0000 (UTC) Received: by wwb22 with SMTP id 22so2837836wwb.13 for ; Fri, 26 Feb 2010 03:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=knvseWYSI0bSWgcxt5oT3Gjsjrw3jLpN3SBXiGnR664=; b=dhx4ECcffn+D48sUnF9Sw5PDuyJBFv1NVtxbTEYqGltxcttsAaIW/GkmHN+RNo/b5O PYaNlrz356X69esu6fc5vUrhvDAH7ZpTKNV8AR+kcS1n4dp9Oej4f7+jQvar0yHoqGdF xIBrwWVcRebMiMYSYksaGQaGOUI2JJPEjfc5Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GiX6+2BZVn8fLqmK4U8L9OuCokJ3m8UV8tbrncq+RDwy6yE+jYUsGaapwSicBeqbLw peQ7ADAUa/Jy2kpJqaSMMLEsNvKDT6TAAKYf7pQ54fe0obwrEitNCASp4a7mZQBsHfwC s2jjlNr7SYRGfMrj8L1AL4Pf0vaLmGLbkcPOg= MIME-Version: 1.0 Received: by 10.216.85.5 with SMTP id t5mr235476wee.176.1267182367193; Fri, 26 Feb 2010 03:06:07 -0800 (PST) In-Reply-To: <20100226104147.GC2489@deviant.kiev.zoral.com.ua> References: <1bd550a01002251354v7ea3ede9r458c027b038280fc@mail.gmail.com> <20100226104147.GC2489@deviant.kiev.zoral.com.ua> Date: Fri, 26 Feb 2010 12:06:07 +0100 Message-ID: <1bd550a01002260306t10e1d287wc634e47848020ddc@mail.gmail.com> From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= To: Kostik Belousov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-emulation@freebsd.org Subject: Re: linprocfs proc/pid/mem Bad address X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 11:06:13 -0000 On Fri, Feb 26, 2010 at 11:41 AM, Kostik Belousov wrote: > On Thu, Feb 25, 2010 at 10:54:02PM +0100, Fernando Apestegu?a wrote: >> Why /compat/linux/proc//mem always reports "Bad address" ? >> >> I'm using 8.0-RELEASE-p2 >> >> Thanks in advance. > > Reports when ? What is the operation you doing that causes this ? Oops, sorry. When trying to cat the file for example. In Linux the error reported is something like "No such process" > From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 26 11:12:19 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 058F6106564A for ; Fri, 26 Feb 2010 11:12:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 5244C8FC0A for ; Fri, 26 Feb 2010 11:12:17 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o1QBCGZp063950 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Feb 2010 13:12:16 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o1QBCGdT055517; Fri, 26 Feb 2010 13:12:16 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o1QBCG0A055516; Fri, 26 Feb 2010 13:12:16 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 26 Feb 2010 13:12:16 +0200 From: Kostik Belousov To: Fernando Apestegu?a Message-ID: <20100226111216.GE2489@deviant.kiev.zoral.com.ua> References: <1bd550a01002251354v7ea3ede9r458c027b038280fc@mail.gmail.com> <20100226104147.GC2489@deviant.kiev.zoral.com.ua> <1bd550a01002260306t10e1d287wc634e47848020ddc@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Uwl7UQhJk99r8jnw" Content-Disposition: inline In-Reply-To: <1bd550a01002260306t10e1d287wc634e47848020ddc@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org Subject: Re: linprocfs proc/pid/mem Bad address X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 11:12:19 -0000 --Uwl7UQhJk99r8jnw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 26, 2010 at 12:06:07PM +0100, Fernando Apestegu?a wrote: > On Fri, Feb 26, 2010 at 11:41 AM, Kostik Belousov w= rote: > > On Thu, Feb 25, 2010 at 10:54:02PM +0100, Fernando Apestegu?a wrote: > >> Why /compat/linux/proc//mem always reports "Bad address" ? > >> > >> I'm using 8.0-RELEASE-p2 > >> > >> Thanks in advance. > > > > Reports when ? What is the operation you doing that causes this ? >=20 > Oops, sorry. When trying to cat the file for example. In Linux the > error reported is something like > "No such process" >=20 > > mem provides access to the target process virtual address space as file. Reading from the file at some offset returns corresponding sequence of bytes present in the process virtual address space starting at the offset. Since cat starts read at the file offset 0, and (almost) no processes map the page at the address 0, you get this error. --Uwl7UQhJk99r8jnw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuHrJAACgkQC3+MBN1Mb4iFfQCg06zRONQUpc4PPt5rvhJe3ofp PPYAn3WRfatbWJ53oyU+3F/G/2s8ezZ1 =S4tH -----END PGP SIGNATURE----- --Uwl7UQhJk99r8jnw-- From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 26 14:00:44 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 689BB106566C for ; Fri, 26 Feb 2010 14:00:44 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-ew0-f227.google.com (mail-ew0-f227.google.com [209.85.219.227]) by mx1.freebsd.org (Postfix) with ESMTP id EE7218FC20 for ; Fri, 26 Feb 2010 14:00:43 +0000 (UTC) Received: by ewy27 with SMTP id 27so50783ewy.14 for ; Fri, 26 Feb 2010 06:00:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=jdxzmLlh8Fe9/3nbFPjGV0MMaKDVa1GxQNJ1mErMh8s=; b=iF08b8yO+aGVh86OJWiV/ypKqeb2GaOgcKNhTWut+zLGWKVU0C31oFJumH3PW8C8UO TbGBodmeUejF14wezUkd3KzM92O7nKdtKrka8Bd8tz5aetKZnKn5lmwMosXlkSUoW96v y+yZ9bXNfKr9u/ffBDt1wzLRb+pBbVTxekpe0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=eJN0mEjte31euJePB8iZK9keYSYG36SeHs/Q92mh+XGhGS8KG+MBiM0nqHr/qejymH JOqXq2po84oQmye9BZkuQBQdQ8aeqMF4S+PzZEUsR39yumv8+OUFNdZHbKQtjquVqnID Ael2netBJSxWbqr+KsgcoZfvg15W3oVBCCOKk= MIME-Version: 1.0 Received: by 10.213.96.7 with SMTP id f7mr171700ebn.7.1267192837868; Fri, 26 Feb 2010 06:00:37 -0800 (PST) In-Reply-To: <20100226111216.GE2489@deviant.kiev.zoral.com.ua> References: <1bd550a01002251354v7ea3ede9r458c027b038280fc@mail.gmail.com> <20100226104147.GC2489@deviant.kiev.zoral.com.ua> <1bd550a01002260306t10e1d287wc634e47848020ddc@mail.gmail.com> <20100226111216.GE2489@deviant.kiev.zoral.com.ua> Date: Fri, 26 Feb 2010 15:00:37 +0100 Message-ID: <1bd550a01002260600x4d83d610k3149374143ade77c@mail.gmail.com> From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= To: Kostik Belousov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-emulation@freebsd.org Subject: Re: linprocfs proc/pid/mem Bad address X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 14:00:44 -0000 On Fri, Feb 26, 2010 at 12:12 PM, Kostik Belousov wrote: > On Fri, Feb 26, 2010 at 12:06:07PM +0100, Fernando Apestegu?a wrote: >> On Fri, Feb 26, 2010 at 11:41 AM, Kostik Belousov wrote: >> > On Thu, Feb 25, 2010 at 10:54:02PM +0100, Fernando Apestegu?a wrote: >> >> Why /compat/linux/proc//mem always reports "Bad address" ? >> >> >> >> I'm using 8.0-RELEASE-p2 >> >> >> >> Thanks in advance. >> > >> > Reports when ? What is the operation you doing that causes this ? >> >> Oops, sorry. When trying to cat the file for example. In Linux the >> error reported is something like >> "No such process" >> >> > > > mem provides access to the target process virtual address space as file. > Reading from the file at some offset returns corresponding sequence of > bytes present in the process virtual address space starting at the offset. > Since cat starts read at the file offset 0, and (almost) no processes > map the page at the address 0, you get this error. Thanks for the clarification. > From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 26 15:42:35 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACD32106564A for ; Fri, 26 Feb 2010 15:42:35 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from mail.gelita.se (212-162-182-244.skbbip.com [212.162.182.244]) by mx1.freebsd.org (Postfix) with ESMTP id 6D5048FC18 for ; Fri, 26 Feb 2010 15:42:35 +0000 (UTC) Received: from mail.gelita.se (localhost.gelita.se [127.0.0.1]) by mail.gelita.se (Postfix) with ESMTP id 1377C10E77C for ; Fri, 26 Feb 2010 16:27:13 +0100 (CET) X-Virus-Scanned: amavisd-new at troback.com Received: from mail.gelita.se ([127.0.0.1]) by mail.gelita.se (mail.gelita.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oTMPJut8P0qE for ; Fri, 26 Feb 2010 16:27:08 +0100 (CET) Received: from bljbsd01.no-ip.org (c-195-216-040-164.static.bjare.net [195.216.40.164]) by mail.gelita.se (Postfix) with ESMTP id 04F4810E50A for ; Fri, 26 Feb 2010 16:27:07 +0100 (CET) Message-ID: <4B87E7D8.1020905@eskk.nu> Date: Fri, 26 Feb 2010 16:25:12 +0100 From: Leslie Jensen User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; sv-SE; rv:1.9.1.8) Gecko/20100226 Thunderbird/3.0.2 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Can't start vm after creating snapshot X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 15:42:35 -0000 Hello I'm running a FreeBSD 8.0-RELEASE-p2 system with virtualbox-ose-3.1.2_1 and virtualbox-ose-kmod-3.1.2_1 installed. My Windows 7 guest will not start if I create a snapshot. It stops and a little red indicator says that the vm was aborted. If I remove the snapshot I'll have to start once in fail safe mode then I can start the vm normally again. Have I struck on a known bug or has anyone a suggestion on how to solve this issue? Thanks /Leslie From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 26 16:03:06 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C4D01065672 for ; Fri, 26 Feb 2010 16:03:06 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail.itac.at (mail.itac.at [91.205.172.9]) by mx1.freebsd.org (Postfix) with ESMTP id CF5698FC15 for ; Fri, 26 Feb 2010 16:03:05 +0000 (UTC) Received: from [91.205.172.21] (helo=webmail.bluelife.at) by mail.itac.at with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Nl2ee-0001sP-9F; Fri, 26 Feb 2010 17:03:04 +0100 MIME-Version: 1.0 Date: Fri, 26 Feb 2010 17:03:04 +0100 From: Bernhard Froehlich To: Leslie Jensen In-Reply-To: <4B87E7D8.1020905@eskk.nu> References: <4B87E7D8.1020905@eskk.nu> Message-ID: <737076fbd0781489816b9ba24f37a65e@bluelife.at> X-Sender: decke@bluelife.at User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.7 (/) X-Spam-Report: Spam detection software, running on the system "mail.itac.at", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Fri, 26 Feb 2010 16:25:12 +0100, Leslie Jensen wrote: > Hello > I'm running a FreeBSD 8.0-RELEASE-p2 system with virtualbox-ose-3.1.2_1 > and virtualbox-ose-kmod-3.1.2_1 installed. > > My Windows 7 guest will not start if I create a snapshot. > > It stops and a little red indicator says that the vm was aborted. > > > If I remove the snapshot I'll have to start once in fail safe mode then > I can start the vm normally again. > > Have I struck on a known bug or has anyone a suggestion on how to solve > this issue? [...] Content analysis details: (0.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP 3.4 FH_DATE_PAST_20XX The date is grossly in the future. -1.2 AWL AWL: From: address is in the auto white-list Cc: freebsd-emulation@freebsd.org Subject: Re: Can't start vm after creating snapshot X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 16:03:06 -0000 On Fri, 26 Feb 2010 16:25:12 +0100, Leslie Jensen wrote: > Hello > I'm running a FreeBSD 8.0-RELEASE-p2 system with virtualbox-ose-3.1.2_1 > and virtualbox-ose-kmod-3.1.2_1 installed. > > My Windows 7 guest will not start if I create a snapshot. > > It stops and a little red indicator says that the vm was aborted. > > > If I remove the snapshot I'll have to start once in fail safe mode then > I can start the vm normally again. > > Have I struck on a known bug or has anyone a suggestion on how to solve > this issue? Could you provide the VBox.log file for that vm? That would probably help to find the cause of the issue. -- Bernhard Fröhlich http://www.bluelife.at/ From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 26 18:50:34 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5205C1065676; Fri, 26 Feb 2010 18:50:34 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0E4908FC16; Fri, 26 Feb 2010 18:50:34 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id AFAD746B6C; Fri, 26 Feb 2010 13:50:33 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 0CF188A025; Fri, 26 Feb 2010 13:50:33 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Fri, 26 Feb 2010 11:21:05 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: <20100223215010.GA67619@triton8.kn-bremen.de> <20100225202850.GA79505@triton8.kn-bremen.de> In-Reply-To: <20100225202850.GA79505@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201002261121.05068.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Fri, 26 Feb 2010 13:50:33 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-emulation@freebsd.org, Tim Kientzle , Juergen Lock Subject: Re: 32 bit Linux lseek missing overflow check (was: Re: Linuxolator patches: stat and lseek SEEK_END for disk devices) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 18:50:34 -0000 On Thursday 25 February 2010 3:28:50 pm Juergen Lock wrote: > On Tue, Feb 23, 2010 at 10:50:10PM +0100, Juergen Lock wrote: > > Hi! > > > > Before this gets buried on -hackers in another thead... :) > > > > I now have disks appear as block devices for Linux processes (there > > already was commented out code for that in linux_stats.c, I hope my > > version is now `correct enough' to be usable [1]), and I made a simple > > patch to make lseek SEEK_END (L_XTND in the source) dtrt on disk > > devices too by simply invoking the DIOCGMEDIASIZE ioctl there; [2] > > both of these things are what (some) Linux processes expect. > > > > Patches are here: (made on stable/8, if they don't apply on head > > I'll have to make extra versions for that...) > > http://people.freebsd.org/~nox/linuxdisk-blk.patch [1] > > http://people.freebsd.org/~nox/lseek-seek_end.patch [2] > > > > And yes, with these patches the Linux bsdtar mentioned on -hackers > > in the `"tar tfv /dev/cd0" speedup patch' thread now also runs fast > > on FreeBSD. :) > > I now added an vn_isdisk() check to the second patch after comments from > julian, and I made a new patch that adds an overflow check to the 32 bit > linux lseek: (also at > http://people.freebsd.org/~nox/linux-lseek-overflow.patch > ) Hmm, when I asked Bruce, he actually said it was a feature that you didn't use vn_isdisk(). He also suggested that the proper way to fix lseek on devices is to fix stat in devfs to return a non-zero size. I have a possible fix to do that but haven't tested it yet: Index: devfs_vnops.c =================================================================== --- devfs_vnops.c (revision 204207) +++ devfs_vnops.c (working copy) @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -564,7 +565,11 @@ struct vattr *vap = ap->a_vap; int error = 0; struct devfs_dirent *de; + struct cdevsw *dsw; + struct thread *td; + struct file *fpop; struct cdev *dev; + off_t size; de = vp->v_data; KASSERT(de != NULL, ("Null dirent in devfs_getattr vp=%p", vp)); @@ -612,6 +617,18 @@ vap->va_ctime = dev->si_ctime; vap->va_rdev = cdev2priv(dev)->cdp_inode; + + dsw = dev_refthread(dev); + if (dsw != NULL) { + td = curthread; + fpop = td->td_fpop; + td->td_fpop = NULL; + if (dsw->d_ioctl(dev, DIOCGMEDIASIZE, (caddr_t)&size, + FREAD, td) == 0) + vap->va_size = size; + td->td_fpop = fpop; + dev_relthread(dev); + } } vap->va_gen = 0; vap->va_flags = 0; -- John Baldwin From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 26 21:11:57 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E988106566C; Fri, 26 Feb 2010 21:11:57 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id D601A8FC1C; Fri, 26 Feb 2010 21:11:56 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id E62D51E0014B; Fri, 26 Feb 2010 22:11:55 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o1QL9qH6002505; Fri, 26 Feb 2010 22:09:52 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o1QL9qvY002504; Fri, 26 Feb 2010 22:09:52 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Fri, 26 Feb 2010 22:09:52 +0100 To: John Baldwin Message-ID: <20100226210952.GA2253@triton8.kn-bremen.de> References: <20100223215010.GA67619@triton8.kn-bremen.de> <20100225202850.GA79505@triton8.kn-bremen.de> <201002261121.05068.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201002261121.05068.jhb@freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, Tim Kientzle , Juergen Lock Subject: Re: 32 bit Linux lseek missing overflow check (was: Re: Linuxolator patches: stat and lseek SEEK_END for disk devices) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 21:11:57 -0000 On Fri, Feb 26, 2010 at 11:21:05AM -0500, John Baldwin wrote: > On Thursday 25 February 2010 3:28:50 pm Juergen Lock wrote: > > On Tue, Feb 23, 2010 at 10:50:10PM +0100, Juergen Lock wrote: > > > Hi! > > > > > > Before this gets buried on -hackers in another thead... :) > > > > > > I now have disks appear as block devices for Linux processes (there > > > already was commented out code for that in linux_stats.c, I hope my > > > version is now `correct enough' to be usable [1]), and I made a simple > > > patch to make lseek SEEK_END (L_XTND in the source) dtrt on disk > > > devices too by simply invoking the DIOCGMEDIASIZE ioctl there; [2] > > > both of these things are what (some) Linux processes expect. > > > > > > Patches are here: (made on stable/8, if they don't apply on head > > > I'll have to make extra versions for that...) > > > http://people.freebsd.org/~nox/linuxdisk-blk.patch [1] > > > http://people.freebsd.org/~nox/lseek-seek_end.patch [2] > > > > > > And yes, with these patches the Linux bsdtar mentioned on -hackers > > > in the `"tar tfv /dev/cd0" speedup patch' thread now also runs fast > > > on FreeBSD. :) > > > > I now added an vn_isdisk() check to the second patch after comments from > > julian, and I made a new patch that adds an overflow check to the 32 bit > > linux lseek: (also at > > http://people.freebsd.org/~nox/linux-lseek-overflow.patch > > ) > > Hmm, when I asked Bruce, he actually said it was a feature that you didn't use > vn_isdisk(). He also suggested that the proper way to fix lseek on devices is > to fix stat in devfs to return a non-zero size. I have a possible fix to do > that but haven't tested it yet: > > Index: devfs_vnops.c > =================================================================== > --- devfs_vnops.c (revision 204207) > +++ devfs_vnops.c (working copy) > @@ -44,6 +44,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -564,7 +565,11 @@ > struct vattr *vap = ap->a_vap; > int error = 0; > struct devfs_dirent *de; > + struct cdevsw *dsw; > + struct thread *td; > + struct file *fpop; > struct cdev *dev; > + off_t size; > > de = vp->v_data; > KASSERT(de != NULL, ("Null dirent in devfs_getattr vp=%p", vp)); > @@ -612,6 +617,18 @@ > vap->va_ctime = dev->si_ctime; > > vap->va_rdev = cdev2priv(dev)->cdp_inode; > + > + dsw = dev_refthread(dev); > + if (dsw != NULL) { > + td = curthread; > + fpop = td->td_fpop; > + td->td_fpop = NULL; > + if (dsw->d_ioctl(dev, DIOCGMEDIASIZE, (caddr_t)&size, > + FREAD, td) == 0) > + vap->va_size = size; > + td->td_fpop = fpop; > + dev_relthread(dev); > + } > } > vap->va_gen = 0; > vap->va_flags = 0; > I had to add an D_DISK check, else it would panic at boot in a revoke syscall in ttydev_ioctl in ttydev_enter, apparently in the tty_lock call: (I didn't get a dump as it panic'd way too early in boot) http://fxr.watson.org/fxr/source/kern/tty.c#L159 Maybe dev->si_drv1 is null here? http://fxr.watson.org/fxr/source/kern/tty.c#L486 Anyway, with the D_DISK check added the patch seems to work: Index: src/sys/fs/devfs/devfs_vnops.c =================================================================== RCS file: /home/scvs/src/sys/fs/devfs/devfs_vnops.c,v retrieving revision 1.181.2.1 diff -u -p -p -u -r1.181.2.1 devfs_vnops.c --- src/sys/fs/devfs/devfs_vnops.c 3 Aug 2009 08:13:06 -0000 1.181.2.1 +++ src/sys/fs/devfs/devfs_vnops.c 26 Feb 2010 20:46:17 -0000 @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -563,7 +564,11 @@ devfs_getattr(struct vop_getattr_args *a struct vattr *vap = ap->a_vap; int error = 0; struct devfs_dirent *de; + struct cdevsw *dsw; + struct thread *td; + struct file *fpop; struct cdev *dev; + off_t size; de = vp->v_data; KASSERT(de != NULL, ("Null dirent in devfs_getattr vp=%p", vp)); @@ -611,6 +616,19 @@ devfs_getattr(struct vop_getattr_args *a vap->va_ctime = dev->si_ctime; vap->va_rdev = cdev2priv(dev)->cdp_inode; + + dsw = dev_refthread(dev); + if (dsw != NULL) { + td = curthread; + fpop = td->td_fpop; + td->td_fpop = NULL; + if ((dsw->d_flags & D_DISK) && + dsw->d_ioctl(dev, DIOCGMEDIASIZE, (caddr_t)&size, + FREAD, td) == 0) + vap->va_size = size; + td->td_fpop = fpop; + dev_relthread(dev); + } } vap->va_gen = 0; vap->va_flags = 0; From owner-freebsd-emulation@FreeBSD.ORG Sat Feb 27 01:40:02 2010 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A51341065674 for ; Sat, 27 Feb 2010 01:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 79F4A8FC1F for ; Sat, 27 Feb 2010 01:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1R1e1vh055068 for ; Sat, 27 Feb 2010 01:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1R1e1g9055067; Sat, 27 Feb 2010 01:40:01 GMT (envelope-from gnats) Date: Sat, 27 Feb 2010 01:40:01 GMT Message-Id: <201002270140.o1R1e1g9055067@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Alexander Best Cc: Subject: Re: kern/56451: [linprocfs] /compat/linux/proc/cpuinfo gives wrong CPU model X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 01:40:02 -0000 The following reply was made to PR kern/56451; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: kern/56451: [linprocfs] /compat/linux/proc/cpuinfo gives wrong CPU model Date: Sat, 27 Feb 2010 02:32:53 +0100 (CET) This is a MIME encoded multipart message. --+permail-201002270132531e86ffa800006210-a_best01+ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit actually it appears the patch i submitted isn't that hackish. this is exactly what's being done in i386/i386/identcpu.c and amd64/amd64/identcpu.c to output the cpu stepping. cheers. alex --+permail-201002270132531e86ffa800006210-a_best01+ Content-Type: text/plain Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename="linprocfs.c.patch.txt" SW5kZXg6IHN5cy9jb21wYXQvbGlucHJvY2ZzL2xpbnByb2Nmcy5jCj09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5 cy9jb21wYXQvbGlucHJvY2ZzL2xpbnByb2Nmcy5jCShyZXZpc2lvbiAyMDQzNzQpCisrKyBzeXMv Y29tcGF0L2xpbnByb2Nmcy9saW5wcm9jZnMuYwkod29ya2luZyBjb3B5KQpAQCAtMjczLDcgKzI3 Myw3IEBACiAJCSAgICAibW9kZWxcdFx0OiAlZFxuIgogCQkgICAgIm1vZGVsIG5hbWVcdDogJXNc biIKIAkJICAgICJzdGVwcGluZ1x0OiAlZFxuIiwKLQkJICAgIGksIGNwdV92ZW5kb3IsIGNsYXNz LCBjcHUsIG1vZGVsLCBjcHVfaWQgJiAweGYpOworCQkgICAgaSwgY3B1X3ZlbmRvciwgKGNwdV9p ZCAmIDB4ZjAwKSA+PiA4LCAoY3B1X2lkICYgMHhmMCkgPj4gNCwgbW9kZWwsIGNwdV9pZCAmIDB4 Zik7CiAJCS8qIFhYWCBwZXItY3B1IHZlbmRvciAvIGNsYXNzIC8gbW9kZWwgLyBpZD8gKi8KIAl9 CiAK --+permail-201002270132531e86ffa800006210-a_best01+-- From owner-freebsd-emulation@FreeBSD.ORG Sat Feb 27 02:00:12 2010 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A748F106564A for ; Sat, 27 Feb 2010 02:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7BEFC8FC12 for ; Sat, 27 Feb 2010 02:00:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1R20CaF071303 for ; Sat, 27 Feb 2010 02:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1R20CXB071302; Sat, 27 Feb 2010 02:00:12 GMT (envelope-from gnats) Date: Sat, 27 Feb 2010 02:00:12 GMT Message-Id: <201002270200.o1R20CXB071302@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Alexander Best Cc: Subject: Re: kern/56451: [linprocfs] /compat/linux/proc/cpuinfo gives wrong CPU model X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 02:00:12 -0000 The following reply was made to PR kern/56451; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: kern/56451: [linprocfs] /compat/linux/proc/cpuinfo gives wrong CPU model Date: Sat, 27 Feb 2010 02:53:24 +0100 (CET) to committer: please turn all the %d's into %u's since cpu_vendor and cpu_id are unsigned. cheers. alex From owner-freebsd-emulation@FreeBSD.ORG Sat Feb 27 02:50:03 2010 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16655106564A for ; Sat, 27 Feb 2010 02:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 057D78FC12 for ; Sat, 27 Feb 2010 02:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1R2o22h014176 for ; Sat, 27 Feb 2010 02:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1R2o2It014175; Sat, 27 Feb 2010 02:50:02 GMT (envelope-from gnats) Date: Sat, 27 Feb 2010 02:50:02 GMT Message-Id: <201002270250.o1R2o2It014175@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Alexander Best Cc: Subject: Re: kern/56451: [linprocfs] /compat/linux/proc/cpuinfo gives wrong CPU model X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 02:50:03 -0000 The following reply was made to PR kern/56451; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: kern/56451: [linprocfs] /compat/linux/proc/cpuinfo gives wrong CPU model Date: Sat, 27 Feb 2010 03:46:23 +0100 (CET) This is a MIME encoded multipart message. --+permail-2010022702462380e26a0b00001b04-a_best01+ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit here's a final cleaned up patch using macros instead of direct AND's and shifts. alex --+permail-2010022702462380e26a0b00001b04-a_best01+ Content-Type: text/plain Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename="linprocfs.c.patch.txt" SW5kZXg6IHN5cy9jb21wYXQvbGlucHJvY2ZzL2xpbnByb2Nmcy5jCj09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5 cy9jb21wYXQvbGlucHJvY2ZzL2xpbnByb2Nmcy5jCShyZXZpc2lvbiAyMDQzODMpCisrKyBzeXMv Y29tcGF0L2xpbnByb2Nmcy9saW5wcm9jZnMuYwkod29ya2luZyBjb3B5KQpAQCAtMjY5LDExICsy NjksMTEgQEAKIAkJc2J1Zl9wcmludGYoc2IsCiAJCSAgICAicHJvY2Vzc29yXHQ6ICVkXG4iCiAJ CSAgICAidmVuZG9yX2lkXHQ6ICUuMjBzXG4iCi0JCSAgICAiY3B1IGZhbWlseVx0OiAlZFxuIgot CQkgICAgIm1vZGVsXHRcdDogJWRcbiIKKwkJICAgICJjcHUgZmFtaWx5XHQ6ICV1XG4iCisJCSAg ICAibW9kZWxcdFx0OiAldVxuIgogCQkgICAgIm1vZGVsIG5hbWVcdDogJXNcbiIKLQkJICAgICJz dGVwcGluZ1x0OiAlZFxuIiwKLQkJICAgIGksIGNwdV92ZW5kb3IsIGNsYXNzLCBjcHUsIG1vZGVs LCBjcHVfaWQgJiAweGYpOworCQkgICAgInN0ZXBwaW5nXHQ6ICV1XG4iLAorCQkgICAgaSwgY3B1 X3ZlbmRvciwgQ1BVSURfVE9fRkFNSUxZKGNwdV9pZCksIENQVUlEX1RPX01PREVMKGNwdV9pZCks IG1vZGVsLCBjcHVfaWQgJiBDUFVJRF9TVEVQUElORyk7CiAJCS8qIFhYWCBwZXItY3B1IHZlbmRv ciAvIGNsYXNzIC8gbW9kZWwgLyBpZD8gKi8KIAl9CiAK --+permail-2010022702462380e26a0b00001b04-a_best01+-- From owner-freebsd-emulation@FreeBSD.ORG Sat Feb 27 21:41:47 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 637601065673 for ; Sat, 27 Feb 2010 21:41:47 +0000 (UTC) (envelope-from alexeichi@yahoo.de) Received: from n28.bullet.mail.ukl.yahoo.com (n28.bullet.mail.ukl.yahoo.com [87.248.110.145]) by mx1.freebsd.org (Postfix) with SMTP id E2B1A8FC0C for ; Sat, 27 Feb 2010 21:41:46 +0000 (UTC) Received: from [217.146.182.180] by n28.bullet.mail.ukl.yahoo.com with NNFMP; 27 Feb 2010 21:28:33 -0000 Received: from [87.248.110.117] by t6.bullet.ukl.yahoo.com with NNFMP; 27 Feb 2010 21:28:39 -0000 Received: from [127.0.0.1] by omp222.mail.ukl.yahoo.com with NNFMP; 27 Feb 2010 21:28:39 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 314575.8453.bm@omp222.mail.ukl.yahoo.com Received: (qmail 36278 invoked by uid 60001); 27 Feb 2010 21:28:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1267306119; bh=eXMiTgR4x2uJw8EwmkLgaxVcwV9BgM2owHSwzgZB+K8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=uXY6COM7NAm6Yp9pC5xn7sCGdwsvkMmaFOX+5PIPiviAdQFSmQOB62Ynv3yC5Y5enR+CTKw0np4Gy2oyOk8vte1EIJkIA05yBnUQOZi3QKEuGvz+bgAa/qnTCBHBcFu9JhVumSLQM8BiEVQr7RkRPvEbnvHRG+134yPWn5Fsx/g= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=rVVeNj6gJWKUqoIT1Bjx5uHJZopxURYnqKyPIaXKiZOhw/Z4qUmruPUtrWpbM9MCKBCM2Hsig+bhyqamSTy8zax4PKOt3iHtdlV4nMRDjiqDM7W4WELNGCzMZ0ts/BC3FvjgkgP2b1hg0r3U7VzIwGEtYNoiBr7KNC0Zzpp7lW0=; Message-ID: <215745.35399.qm@web27602.mail.ukl.yahoo.com> X-YMail-OSG: emZykzoVM1lvUQ_BB_IWNEBMWJo2jUeSEqpEBPhPAFEBOq0u0djlaigzYzgE3z8sfW_yty6i1AvmT5ALFOr_6AYMYEVAkmYCR2fWMj8LT3lAlvapYcuWiZz7qTefS6JjbyH5qgwGTsCUjlFnPGGSTZHKKaQ9kqVh_X9CDdNHZQTqPbPTA2i3eb2TLGKiyvXhSRa5V6YtrZYDcKicPOdLXJerObfYGwf0uSrSU.BidpJj2DLKi.EoMSSvQU2LyZVD8WgTFywz0BPMvlWMQH.ZGG95h81NVYFXeML6bC4fq1V5GiDRyaH2sZz1q49GG0KHsaA- Received: from [87.187.211.73] by web27602.mail.ukl.yahoo.com via HTTP; Sat, 27 Feb 2010 21:28:39 GMT X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964 Date: Sat, 27 Feb 2010 21:28:39 +0000 (GMT) From: Alexander Eichner To: freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1974180411-1267306119=:35399" Subject: Re: Patch to fix VirtualBox with recent kernel versions X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 21:41:47 -0000 --0-1974180411-1267306119=:35399 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable > Von: Adam K Kirchhoff =0A> Betreff: Re: Patch to fix = VirtualBox with recent kernel versions=0A> An: freebsd-emulation@freebsd.or= g=0A> Datum: Donnerstag, 25. Februar, 2010 01:10 Uhr=0A> On 02/24/2010 04:5= 0 PM, Alexander=0A> Eichner wrote:=0A> > Hi,=0A> > =0A> > as promised to de= cke here is the final patch to fix=0A> VirtualBox with recent FreeBSD kerne= l versions. As it is=0A> quite different to the one posted to freebsd-curre= nt please=0A> test it first before including it in the port. The problem=0A= > seems to be 32bit specific and I don't have a 32bit FreeBSD=0A> system he= re to test unfortunately.=0A> > =0A> > Regards,=0A> > Alexander Eichner=0A>= > =0A> > PS: the OSE repository is working again. :)=0A> >=A0 =A0 =0A> =0A= > I tried the patch on one of my machines here and it's still=0A> aborting:= =0A> =0A> =0A> !!Assertion Failed!!=0A> Expression: paPages[i].Phys !=3D 0 = && paPages[i].Phys=0A> !=3D NIL_RTHCPHYS && !(paPages[i].Phys &=0A> PAGE_OF= FSET_MASK)=0A> Location=A0 :=0A> /usr/ports/emulators/virtualbox-ose/work/V= irtualBox-3.1.2_OSE/src/VBox/VMM/MMHyper.cpp(610)=0A> int MMR3HyperMapPages= (VM*, void*, RTR0PTR, size_t, const=0A> SUPPAGE*, const char*, RTGCPTR64*)= =0A> i=3D0x4 Phys=3D0000000000000000 Heap=0A> =0A> =0A> Adam=0A=0AHi,=0A=0A= attached is a new version of the patch. I tested it on 32bit FreeBSD 8=0A= =0ARegards,=0AAlexander Eichner=0A=0A=0A___________________________________= _______________=0ADo You Yahoo!?=0ASie sind Spam leid? Yahoo! Mail verf=FCg= t =FCber einen herausragenden Schutz gegen Massenmails. =0Ahttp://mail.yaho= o.com --0-1974180411-1267306119=:35399 Content-Type: application/octet-stream; name=patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch" SW5kZXg6IHNyYy9WQm94L1J1bnRpbWUvcjBkcnYvZnJlZWJzZC9tZW1vYmot cjBkcnYtZnJlZWJzZC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHNy Yy9WQm94L1J1bnRpbWUvcjBkcnYvZnJlZWJzZC9tZW1vYmotcjBkcnYtZnJl ZWJzZC5jCShyZXZpc2lvbiA1ODE2NykKKysrIHNyYy9WQm94L1J1bnRpbWUv cjBkcnYvZnJlZWJzZC9tZW1vYmotcjBkcnYtZnJlZWJzZC5jCSh3b3JraW5n IGNvcHkpCkBAIC03MjYsMjAgKzcyNiw0NSBAQAogICAgIHN3aXRjaCAocE1l bUZyZWVCU0QtPkNvcmUuZW5tVHlwZSkKICAgICB7CiAgICAgICAgIGNhc2Ug UlRSME1FTU9CSlRZUEVfTE9DSzoKKyAgICAgICAgewogICAgICAgICAgICAg aWYgKCAgICBwTWVtRnJlZUJTRC0+Q29yZS51LkxvY2suUjBQcm9jZXNzICE9 IE5JTF9SVFIwUFJPQ0VTUwogICAgICAgICAgICAgICAgICYmICBwTWVtRnJl ZUJTRC0+Q29yZS51LkxvY2suUjBQcm9jZXNzICE9IChSVFIwUFJPQ0VTUylj dXJwcm9jKQogICAgICAgICAgICAgewogICAgICAgICAgICAgICAgIC8qIGxh dGVyICovCiAgICAgICAgICAgICAgICAgcmV0dXJuIE5JTF9SVEhDUEhZUzsK ICAgICAgICAgICAgIH0KLSAgICAgICAgICAgIC8qIGZhbGwgdGhydSovCisK KyAgICAgICAgICAgIHZtX29mZnNldF90IHBiID0gKHZtX29mZnNldF90KXBN ZW1GcmVlQlNELT5Db3JlLnB2ICsgKGlQYWdlIDw8IFBBR0VfU0hJRlQpOwor CisgICAgICAgICAgICBzdHJ1Y3QgcHJvYyAgICAqcFByb2MgICAgID0gKHN0 cnVjdCBwcm9jICopcE1lbUZyZWVCU0QtPkNvcmUudS5Mb2NrLlIwUHJvY2Vz czsKKyAgICAgICAgICAgIHN0cnVjdCB2bV9tYXAgICpwUHJvY01hcCAgPSAm cFByb2MtPnBfdm1zcGFjZS0+dm1fbWFwOworICAgICAgICAgICAgcG1hcF90 IHBQaHlzaWNhbE1hcCAgICAgICA9IHBQcm9jTWFwLT5wbWFwOworCisgICAg ICAgICAgICByZXR1cm4gcG1hcF9leHRyYWN0KHBQaHlzaWNhbE1hcCwgcGIp OworICAgICAgICB9CisKICAgICAgICAgY2FzZSBSVFIwTUVNT0JKVFlQRV9Q QUdFOgotICAgICAgICBjYXNlIFJUUjBNRU1PQkpUWVBFX01BUFBJTkc6CiAg ICAgICAgIHsKLSAgICAgICAgICAgIHVpbnQ4X3QgKnBiID0gKHVpbnQ4X3Qg KilwTWVtRnJlZUJTRC0+Q29yZS5wdiArIChpUGFnZSA8PCBQQUdFX1NISUZU KTsKKyAgICAgICAgICAgIHZtX29mZnNldF90IHBiID0gKHZtX29mZnNldF90 KXBNZW1GcmVlQlNELT5Db3JlLnB2ICsgKGlQYWdlIDw8IFBBR0VfU0hJRlQp OwogICAgICAgICAgICAgcmV0dXJuIHZ0b3BoeXMocGIpOwogICAgICAgICB9 CiAKKyAgICAgICAgY2FzZSBSVFIwTUVNT0JKVFlQRV9NQVBQSU5HOgorICAg ICAgICB7CisgICAgICAgICAgICB2bV9vZmZzZXRfdCBwYiA9ICh2bV9vZmZz ZXRfdClwTWVtRnJlZUJTRC0+Q29yZS5wdiArIChpUGFnZSA8PCBQQUdFX1NI SUZUKTsKKworICAgICAgICAgICAgaWYgKHBNZW1GcmVlQlNELT5Db3JlLnUu TWFwcGluZy5SMFByb2Nlc3MgIT0gTklMX1JUUjBQUk9DRVNTKQorICAgICAg ICAgICAgeworICAgICAgICAgICAgICAgIHN0cnVjdCBwcm9jICAgICpwUHJv YyAgICAgPSAoc3RydWN0IHByb2MgKilwTWVtRnJlZUJTRC0+Q29yZS51Lk1h cHBpbmcuUjBQcm9jZXNzOworICAgICAgICAgICAgICAgIHN0cnVjdCB2bV9t YXAgICpwUHJvY01hcCAgPSAmcFByb2MtPnBfdm1zcGFjZS0+dm1fbWFwOwor ICAgICAgICAgICAgICAgIHBtYXBfdCBwUGh5c2ljYWxNYXAgICAgICAgPSBw UHJvY01hcC0+cG1hcDsKKworICAgICAgICAgICAgICAgIHJldHVybiBwbWFw X2V4dHJhY3QocFBoeXNpY2FsTWFwLCBwYik7CisgICAgICAgICAgICB9Cisg ICAgICAgICAgICBlbHNlCisgICAgICAgICAgICAgICAgcmV0dXJuIHZ0b3Bo eXMocGIpOworICAgICAgICB9CisKICAgICAgICAgY2FzZSBSVFIwTUVNT0JK VFlQRV9DT05UOgogICAgICAgICAgICAgcmV0dXJuIHBNZW1GcmVlQlNELT5D b3JlLnUuQ29udC5QaHlzICsgKGlQYWdlIDw8IFBBR0VfU0hJRlQpOwogCg== --0-1974180411-1267306119=:35399--