From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 1 20:00:47 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 790A616A405 for ; Sun, 1 Apr 2007 20:00:47 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 38F8B13C4AD for ; Sun, 1 Apr 2007 20:00:47 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id AA83315A3C6; Sun, 1 Apr 2007 21:43:44 +0200 (CEST) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.6/8.13.6) with ESMTP id l31JdMN8060753; Sun, 1 Apr 2007 21:39:22 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.6/8.13.6/Submit) id l31JdK9K060752; Sun, 1 Apr 2007 21:39:20 +0200 (CEST) (envelope-from nox) Date: Sun, 1 Apr 2007 21:39:20 +0200 (CEST) From: Juergen Lock Message-Id: <200704011939.l31JdK9K060752@saturn.kn-bremen.de> To: andrew@dobrohot.org X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <460D7A37.9080408@dobrohot.org> Organization: home X-Mailman-Approved-At: Sun, 01 Apr 2007 20:44:33 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: any vm gurus in the house? :) (was: Fatal trap 12, at use qemu) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2007 20:00:47 -0000 In article <460D7A37.9080408@dobrohot.org> you write: >http://www.freebsd.org/cgi/query-pr.cgi?pr=110892 > >Crash of system at use of the emulator "qemu" > >$ pkg_info -E kqemu\* qemu\* >kqemu-kmod-1.3.0.p11 >qemu-0.9.0 > >$ kldload aio >$ kldload kqemu >$ qemu -boot c -m 256 \ >-hda /usr/EMULATORS/BOCHS/disk0.img \ >-net nic,model=rtl8139 \ >-net tap \ >-std-vga \ >-soundhw es1370 \ >-win2k-hack \ >-kernel-kqemu > >Guest system on qemu - WinXP. (looking at the pr...) object is NULL, anyone have an idea how that could have happened? (You seem to be low on ram, maybe kqemu is stressing the vm system in an unusual way in that case? btw kqemu no longer is closed source now...) Also, is this an smp box? You could try a few things while we wait for insights from vm gurus: - a kernel with options INVARIANTS and maybe also WITNESS - reducing the ram shortage by using smaller -m args to qemu, a lighter wm, etc. (or adding ram :) - a patch to the kqemu-kmod port to try and lower the number of locked pages: (maybe call it files/patch-lockedpages) Index: kqemu-freebsd.c @@ -466,7 +466,7 @@ switch (type) { case MOD_LOAD: printf("kqemu version 0x%08x\n", KQEMU_VERSION); - max_locked_pages = physmem / 2; + max_locked_pages = physmem / 4; kqemu_gs = kqemu_global_init(max_locked_pages); #if __FreeBSD_version < 500000 if ((rc = cdevsw_add(&kqemu_cdevsw))) { - you could also try the qemu-devel port, although i dont think the kqemu related parts have changed... Juergen From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 1 23:31:17 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B283B16A402 for ; Sun, 1 Apr 2007 23:31:17 +0000 (UTC) (envelope-from eilander@myguard.nl) Received: from smtpq1.groni1.gr.home.nl (smtpq1.groni1.gr.home.nl [213.51.130.200]) by mx1.freebsd.org (Postfix) with ESMTP id 7106913C458 for ; Sun, 1 Apr 2007 23:31:17 +0000 (UTC) (envelope-from eilander@myguard.nl) Received: from [213.51.130.189] (port=33418 helo=smtp2.groni1.gr.home.nl) by smtpq1.groni1.gr.home.nl with esmtp (Exim 4.30) id 1HY8tE-0002bw-FK; Mon, 02 Apr 2007 00:51:12 +0200 Received: from cp26621-a.gelen1.lb.home.nl ([84.28.158.218]:52303 helo=nomadPC) by smtp2.groni1.gr.home.nl with esmtp (Exim 4.30) id 1HY8tD-0002bx-2E; Mon, 02 Apr 2007 00:51:11 +0200 From: "Thijs Eilander" To: "'Stanislav Ochotnicky'" , References: <460EE276.1020802@kmit.sk> In-Reply-To: <460EE276.1020802@kmit.sk> Date: Mon, 2 Apr 2007 00:48:20 +0200 Message-ID: <01a501c774af$d8939d40$89bad7c0$@nl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acdz6Joz1glvxd2tRT6VBvCjHuY1hgAxL6bg Content-Language: en-us x-cr-hashedpuzzle: CvKC Ed+Y GUxd HTsS HdBw H602 L/vR Og5H O74e RZRy S6TS Tf7d T3tl UXC7 U66C WHPM; 2; ZgByAGUAZQBiAHMAZAAtAGgAYQBjAGsAZQByAHMAQABmAHIAZQBlAGIAcwBkAC4AbwByAGcAOwBzAHQAYQBuAGkAcwBsAGEAdgAuAG8AYwBoAG8AdABuAGkAYwBrAHkAQABrAG0AaQB0AC4AcwBrAA==; Sosha1_v1; 7; {2FB384C4-883D-4E8F-A158-15D57D28FA01}; ZQBpAGwAYQBuAGQAZQByAEAAbQB5AGcAdQBhAHIAZAAuAG4AbAA=; Sun, 01 Apr 2007 22:48:13 GMT; UgBFADoAIABEAGUAbgB5ACAAcwB5AHMAdABlAG0AIABjAGEAbABsACAAdQBzAGkAbgBnACAAcAB0AHIAYQBjAGUA x-cr-puzzleid: {2FB384C4-883D-4E8F-A158-15D57D28FA01} X-AtHome-MailScanner-Information: Neem contact op met support@home.nl voor meer informatie X-AtHome-MailScanner: Found to be clean X-Mailman-Approved-At: Mon, 02 Apr 2007 04:36:40 +0000 Cc: Subject: RE: Deny system call using ptrace X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2007 23:31:17 -0000 >I'm trying to create sort of user-space access control system based on allowing/denying syscalls. I was able (after a few problems) to start ptracing >program, stop at every enter/exit from system call, inspect arguments etc. What I'm however trying to do, is denying access to syscalls. In linux I was If you are interested in doing some development to make it work, I am porting systrace to FreeBSD but due to time restrictions development is slow. More information about systrace can be found on http://www.citi.umich.edu/u/provos/systrace/ and www.systrace.org I almost finished the kernelpart, it is usable but still needs some fixes and cleaning up, but the userland code needs adding a lot of syscall translations. Regards, Thijs Eilander From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 2 08:34:48 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9C7D516A404 for ; Mon, 2 Apr 2007 08:34:48 +0000 (UTC) (envelope-from stanislav.ochotnicky@kmit.sk) Received: from alibaba.kmit.sk (alibaba.kmit.sk [194.160.28.1]) by mx1.freebsd.org (Postfix) with ESMTP id 5CADD13C4B0 for ; Mon, 2 Apr 2007 08:34:46 +0000 (UTC) (envelope-from stanislav.ochotnicky@kmit.sk) Received: from localhost (localhost.localdomain [127.0.0.1]) by alibaba.kmit.sk (Postfix) with ESMTP id 794795FB8B for ; Mon, 2 Apr 2007 10:34:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at kmit.sk Received: from [194.160.28.54] (roller.kmit.sk [194.160.28.54]) by alibaba.kmit.sk (Postfix) with ESMTP id 5CAEE5FA1C for ; Mon, 2 Apr 2007 10:34:44 +0200 (CEST) Message-ID: <4610C014.8010006@kmit.sk> Date: Mon, 02 Apr 2007 10:34:28 +0200 From: Stanislav Ochotnicky MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <460EE276.1020802@kmit.sk> <01a501c774af$d8939d40$89bad7c0$@nl> In-Reply-To: <01a501c774af$d8939d40$89bad7c0$@nl> X-Enigmail-Version: 0.94.2.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigE44EEF7E3D7B2A6FD20A810F" Subject: Re: Deny system call using ptrace X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2007 08:34:48 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE44EEF7E3D7B2A6FD20A810F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thijs Eilander wrote: > If you are interested in doing some development to make it work, I am > porting systrace to FreeBSD but due to time restrictions development is= > slow. More information about systrace can be found on > http://www.citi.umich.edu/u/provos/systrace/ and www.systrace.org Yes I know systrace, my project was in part inspired by it. > I almost finished the kernelpart, it is usable but still needs some fix= es > and cleaning up, but the userland code needs adding a lot of syscall > translations. I'm pretty clogged with school right now myself (2 months from bachelor's thesis evaluation). But as soon as I'm done I plan on having pretty free summer, so I guess I'll find some time to help you. I already added a reminder into calendar to contact you :) Bye, S.O. --------------enigE44EEF7E3D7B2A6FD20A810F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGEMAUB9Uc/HGhZ3wRCKd7AJ0b2/pTtSVxCW5lwG6KaHVIzYWB3QCdENxr YlMZgT7MlD9QhP+kIgDJzsA= =eCOZ -----END PGP SIGNATURE----- --------------enigE44EEF7E3D7B2A6FD20A810F-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 2 09:59:26 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE02F16A409; Mon, 2 Apr 2007 09:59:26 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.freebsd.org (Postfix) with ESMTP id 4D14B13C483; Mon, 2 Apr 2007 09:59:26 +0000 (UTC) (envelope-from max@love2party.net) Received: from [88.64.191.69] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1HYJJZ3uCB-0001La; Mon, 02 Apr 2007 11:59:06 +0200 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Mon, 2 Apr 2007 10:58:55 +0100 User-Agent: KMail/1.9.5 X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<%}*_BD U_or=\mOZf764&nYj=JYbR1PW0ud>|!~, , CPC.1-D$FG@0h3#'5"k{V]a~. X-Provags-ID: V01U2FsdGVkX1/hLp09xaC++YinlYJV80IiKfp5IDKgMCbf8TG 4P5imQ4cpRGsV8+A3ZxReWKAVMkoO8V2XVQ1KXcljI4yX1dryP CNJld8EukiZbVJ53psJQw== Cc: freebsd-current@freebsd.org Subject: FreeBSD Status Reports due Saturday (04/07) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: monthly@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2007 09:59:26 -0000 --nextPart2063530.WJYOiiugub Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, quick note from the "better late than never"-department. This is a=20 reminder that we collect status reports every three months. The reports=20 for the first three month (January - Now) are due by Saturday, April 7. =20 We are looking for anything FreeBSD related: Code, Advocacy, Vendor=20 reports, Community activities ... =2E.. on that note, I'd like to remind you that BSDCan in Ottawa is coming= =20 up 16-19 May. http://www.bsdcan.org/ for more information - see you=20 there! Please use the xml generator[1] or the template[2] and send your report to= =20 monthly@ by Saturday. Thanks, looking forward to your reports. [1] http://www.freebsd.org/cgi/monthly.cgi [2] http://www.freebsd.org/news/status/report-sample.xml =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2063530.WJYOiiugub Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBGENPoXyyEoT62BG0RAnI2AJ9DpLZCqq3AlNQHATJkoyGZ1axNVgCeN4pc Bh+bfnjLWURihjJtbFT5fck= =0OAf -----END PGP SIGNATURE----- --nextPart2063530.WJYOiiugub-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 2 10:14:55 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07E2416A402 for ; Mon, 2 Apr 2007 10:14:55 +0000 (UTC) (envelope-from mrcpu@mathisen.org) Received: from mathisen.org (main.mathisen.org [70.58.179.172]) by mx1.freebsd.org (Postfix) with SMTP id D9BA213C4B8 for ; Mon, 2 Apr 2007 10:14:54 +0000 (UTC) (envelope-from mrcpu@mathisen.org) Received: (qmail 95395 invoked by uid 29999); 2 Apr 2007 09:52:40 -0000 Date: Mon, 2 Apr 2007 02:52:40 -0700 From: Jaye Mathisen To: hackers@freebsd.org Message-ID: <20070402095240.GC78982@main.mathisen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Cc: Subject: Any recent news on Xen support for FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2007 10:14:55 -0000 The fsmware page is significantly dated, and I just am not sure what's going on. I was just curious if there was a better or updated status available. Thanks for your time. From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 2 07:57:38 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F31916A401 for ; Mon, 2 Apr 2007 07:57:38 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 0816913C484 for ; Mon, 2 Apr 2007 07:57:37 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5EF85.dip.t-dialin.net [84.165.239.133]) by redbull.bpaserver.net (Postfix) with ESMTP id 88DCD2E164; Mon, 2 Apr 2007 09:57:32 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id AB12A5B4817; Mon, 2 Apr 2007 09:57:29 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l327vTqG064875; Mon, 2 Apr 2007 09:57:29 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 02 Apr 2007 09:57:29 +0200 Message-ID: <20070402095729.ce1peq2o1wg8sscg@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 02 Apr 2007 09:57:29 +0200 From: Alexander Leidinger To: Thijs Eilander References: <460EE276.1020802@kmit.sk> <01a501c774af$d8939d40$89bad7c0$@nl> In-Reply-To: <01a501c774af$d8939d40$89bad7c0$@nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Mon, 02 Apr 2007 11:17:50 +0000 Cc: freebsd-hackers@freebsd.org Subject: RE: Deny system call using ptrace X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2007 07:57:38 -0000 Quoting Thijs Eilander (from Mon, 2 Apr 2007 00:48:20 +0200): > If you are interested in doing some development to make it work, I am > porting systrace to FreeBSD but due to time restrictions development is > slow. More information about systrace can be found on > http://www.citi.umich.edu/u/provos/systrace/ and www.systrace.org > > I almost finished the kernelpart, it is usable but still needs some fixes > and cleaning up, but the userland code needs adding a lot of syscall > translations. kdump does something like this. Maybe you can use parts of it. Bye, Alexander. -- Worlds may change, galaxies disintegrate, but a woman always remains a woman. -- Kirk, "The Conscience of the King", stardate 2818.9 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 2 08:54:34 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2818316A402 for ; Mon, 2 Apr 2007 08:54:34 +0000 (UTC) (envelope-from w0rm@kmit.sk) Received: from alibaba.kmit.sk (alibaba.kmit.sk [194.160.28.1]) by mx1.freebsd.org (Postfix) with ESMTP id DD22013C43E for ; Mon, 2 Apr 2007 08:54:33 +0000 (UTC) (envelope-from w0rm@kmit.sk) Received: from localhost (localhost.localdomain [127.0.0.1]) by alibaba.kmit.sk (Postfix) with ESMTP id 4C2F05FB86 for ; Mon, 2 Apr 2007 10:31:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at kmit.sk Received: from [194.160.28.54] (roller.kmit.sk [194.160.28.54]) by alibaba.kmit.sk (Postfix) with ESMTP id 7187E5FA1C for ; Mon, 2 Apr 2007 10:31:43 +0200 (CEST) Message-ID: <4610BF5A.7060807@kmit.sk> Date: Mon, 02 Apr 2007 10:31:22 +0200 From: w0rm MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <460EE276.1020802@kmit.sk> In-Reply-To: <460EE276.1020802@kmit.sk> X-Enigmail-Version: 0.94.2.0 OpenPGP: id=71A1677C Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigB5874C908F8A04DF1CA08A5B" X-Mailman-Approved-At: Mon, 02 Apr 2007 11:18:26 +0000 Subject: Re: Deny system call using ptrace X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2007 08:54:34 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB5874C908F8A04DF1CA08A5B Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Stanislav Ochotnicky wrote: > Problem is, that FreeBSD kernel seems to ignore changed register, and > execute original system call. Oh well...So I'll just (try) to answer myself :) The problem seems to be, as far as I can tell that syscall() routine fills in syscall code and arguments, then does other stuff, finally calling requested syscall itself. But whether process is traced is checked after call, so there is no way to block it. I cannot tell what would moving this block: --------------cut here ------ /* * Traced syscall. */ if ((orig_tf_eflags & PSL_T) && !(orig_tf_eflags & PSL_VM)) { frame->tf_eflags &=3D ~PSL_T; ksiginfo_init_trap(&ksi); ksi.ksi_signo =3D SIGTRAP; ksi.ksi_code =3D TRAP_TRACE; ksi.ksi_addr =3D (void *)frame->tf_eip; trapsignal(td, &ksi); } -------------cut here ------- do to MP safety or other stuff. If it could be in fact safely moved to the beginning of syscall(), it would greatly enhance features of ptrace()= =2E Regards, S.O. --------------enigB5874C908F8A04DF1CA08A5B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGEL9fB9Uc/HGhZ3wRCHa3AJ4jioGF5/jO5a8ZTFtxonAnBRDorwCeNEWF AMXUvaNOX790KbVpqQfteMU= =VKe5 -----END PGP SIGNATURE----- --------------enigB5874C908F8A04DF1CA08A5B-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 2 17:24:45 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C5A5116A404 for ; Mon, 2 Apr 2007 17:24:45 +0000 (UTC) (envelope-from stanislav.ochotnicky@kmit.sk) Received: from alibaba.kmit.sk (alibaba.kmit.sk [194.160.28.1]) by mx1.freebsd.org (Postfix) with ESMTP id 86CE813C469 for ; Mon, 2 Apr 2007 17:24:45 +0000 (UTC) (envelope-from stanislav.ochotnicky@kmit.sk) Received: from localhost (localhost.localdomain [127.0.0.1]) by alibaba.kmit.sk (Postfix) with ESMTP id D0ADA7F93 for ; Mon, 2 Apr 2007 19:24:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at kmit.sk Received: from [194.160.28.54] (roller.kmit.sk [194.160.28.54]) by alibaba.kmit.sk (Postfix) with ESMTP id 9A5277F81 for ; Mon, 2 Apr 2007 19:24:42 +0200 (CEST) Message-ID: <46113C45.8050304@kmit.sk> Date: Mon, 02 Apr 2007 19:24:21 +0200 From: Stanislav Ochotnicky MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <460EE276.1020802@kmit.sk> <4610BF5A.7060807@kmit.sk> In-Reply-To: <4610BF5A.7060807@kmit.sk> X-Enigmail-Version: 0.94.2.0 OpenPGP: id=71A1677C Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig99B95CDF8592B904F965B2BD" Subject: Re: Deny system call using ptrace X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2007 17:24:45 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig99B95CDF8592B904F965B2BD Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable My mistake. I noticed later that ptrace is actually called just before system call, however system call code and arguments are already read in kernel, and are not re-read after ptrace finished. It simply does not count with that possiblity. ------ cut here --- if (error =3D=3D 0) { td->td_retval[0] =3D 0; td->td_retval[1] =3D frame->tf_edx; STOPEVENT(p, S_SCE, narg); PTRACESTOP_SC(p, td, S_PT_SCE);<=3D change syscall number or args AUDIT_SYSCALL_ENTER(code, td); error =3D (*callp->sy_call)(td, args); AUDIT_SYSCALL_EXIT(error, td); } -------cut here ----- I'm wondering if it would be possible to move STOPEVENT and PTRACESTOP lines at the beginning of syscall() without creating mayhem. Or other way to make stopping syscall execution possible. Regards, S.O. --------------enig99B95CDF8592B904F965B2BD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGETxJB9Uc/HGhZ3wRCDD/AJ9zsANgsP3Ep8nDg5pHWEu386MDnwCggauE ExXQFqOslstCkIdXhJt4AfQ= =FcWu -----END PGP SIGNATURE----- --------------enig99B95CDF8592B904F965B2BD-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 2 19:50:34 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7D4FB16A408 for ; Mon, 2 Apr 2007 19:50:34 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by mx1.freebsd.org (Postfix) with ESMTP id 3DEFD13C45B for ; Mon, 2 Apr 2007 19:50:33 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1270634wxc for ; Mon, 02 Apr 2007 12:50:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QHmxWcz3c2jhW+6b66jzSaIRPkNj0GeceWwqNtuy1YI7r5Txb25zN4v9GETpocF6ZzsrVTJCvV0+3lTJ1q8eu9v7DSX2mzkU7upRTgXivhtMmiYCQRnkAwtDl3QGMebaSds//XOHk0dr+SPTpc7hCr5Qh4qLs7C2drAPNdNOe1w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bXwp2OrDWlVzdCesrIi+tnD9qbfv2igrTbEuw46tz/EJerfzgZrRQ27mwVcbvSkb/lAC7S2lTbJDJtNQlzKX3osU/Eq3m7TEFwiLfs9kBUKgWQ9IAXl4keTD1W4sG9qrwtGFDWmxz31hB4p9d2xcZCc3CO+/ZUadDbn2ZYl38Ws= Received: by 10.90.104.14 with SMTP id b14mr3845393agc.1175543433256; Mon, 02 Apr 2007 12:50:33 -0700 (PDT) Received: by 10.90.116.6 with HTTP; Mon, 2 Apr 2007 12:50:33 -0700 (PDT) Message-ID: Date: Mon, 2 Apr 2007 12:50:33 -0700 From: "Kip Macy" To: "Jaye Mathisen" In-Reply-To: <20070402095240.GC78982@main.mathisen.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070402095240.GC78982@main.mathisen.org> Cc: Rink Springer , hackers@freebsd.org Subject: Re: Any recent news on Xen support for FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2007 19:50:34 -0000 Rink has made some progress. I'm cc'ing him. -Kip On 4/2/07, Jaye Mathisen wrote: > > > The fsmware page is significantly dated, and I just am > not sure what's going on. > > I was just curious if there was a better or updated status > available. > > Thanks for your time. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 2 22:50:43 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C450616A403 for ; Mon, 2 Apr 2007 22:50:43 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id 904BB13C483 for ; Mon, 2 Apr 2007 22:50:43 +0000 (UTC) (envelope-from mike@sentex.net) Received: from BLUELAPIS.sentex.ca (cage.simianscience.com [64.7.134.1]) by smarthost2.sentex.ca (8.13.8/8.13.8) with SMTP id l32MZL4r047912; Mon, 2 Apr 2007 18:35:21 -0400 (EDT) (envelope-from mike@sentex.net) From: Mike Tancsa To: "DAK GHATIKACHALAM" Date: Mon, 02 Apr 2007 18:35:38 -0400 Message-ID: References: <5df74baa0702181756o24be57c5r660bfb5f70db1194@mail.gmail.com> In-Reply-To: <5df74baa0702181756o24be57c5r660bfb5f70db1194@mail.gmail.com> X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Wireless card not being detected X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2007 22:50:43 -0000 On Sun, 18 Feb 2007 20:56:56 -0500, in sentex.lists.freebsd.hackers you wrote: >Hi Freebsd > > >I have an issue with new card I need to make it work with freebsd, > > >on /var/log/messages I get > > >Feb 18 20:51:55 DAK kernel: pccard0: = (manufacturer=3D0x0192, >produc >t=3D0x0710, function_type=3D6) at function 0 >Feb 18 20:51:55 DAK kernel: pccard0: CIS info: Sierra Wireless, = AC860, 3G >Net >work Adapter, R1 Hi, Did you ever get your adaptor working ? ---Mike -------------------------------------------------------- Mike Tancsa, Sentex communications http://www.sentex.net Providing Internet Access since 1994 mike@sentex.net, (http://www.tancsa.com) From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 02:50:13 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D2AF16A403 for ; Tue, 3 Apr 2007 02:50:13 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id 7E0F713C4B0 for ; Tue, 3 Apr 2007 02:50:12 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 4882D1CC58; Tue, 3 Apr 2007 14:39:51 +1200 (NZST) Date: Tue, 3 Apr 2007 14:39:51 +1200 From: Andrew Thompson To: freebsd-hackers@freebsd.org Message-ID: <20070403023951.GA40811@heff.fud.org.nz> References: <20070325083805.GA68655@heff.fud.org.nz> <3AD42FD0-08D2-4417-B8B4-EEC810B4F3F2@u.washington.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: <3AD42FD0-08D2-4417-B8B4-EEC810B4F3F2@u.washington.edu> User-Agent: Mutt/1.5.13 (2006-08-11) Subject: Re: hash.h warnings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 02:50:13 -0000 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Mar 25, 2007 at 03:18:42AM -0700, Garrett Cooper wrote: > On Mar 25, 2007, at 1:38 AM, Andrew Thompson wrote: > > >Hi, > > > > > >There was a discussion late last year about how to fix the warnings in > >sys/sys/hash.h. > > > >http://lists.freebsd.org/pipermail/freebsd-net/2006-October/ > >012098.html > > > >@/sys/hash.h: In function `hash32_stre': > >@/sys/hash.h:97: warning: cast discards qualifiers from pointer > >target type > >@/sys/hash.h: In function `hash32_strne': > >@/sys/hash.h:116: warning: cast discards qualifiers from pointer > >target type > > After looking at the source it appears that part of the problem stems > from the fact that p is an unsigned char pointer, where ep is a > signed char double pointer. So you're losing some precision in the > process (hence where the error's coming from I believe). > > So, if you modified buf (the pointer that p is pointing to) or ep to > be compatible with one another, you probably wouldn't get this warning.. I have come up with this patch, can anyone tell me if its correct. There are no consumers of hash32_stre or hash32_strne in the src tree or openbgpd/openospfd which hash.h was imported for. Andrew --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="hash.diff" Index: sys/sys/hash.h =================================================================== RCS file: /home/ncvs/src/sys/sys/hash.h,v retrieving revision 1.2 diff -u -p -r1.2 hash.h --- sys/sys/hash.h 12 Mar 2006 15:34:33 -0000 1.2 +++ sys/sys/hash.h 3 Apr 2007 02:31:04 -0000 @@ -86,7 +86,7 @@ hash32_strn(const void *buf, size_t len, * namei() hashing of path name parts. */ static __inline uint32_t -hash32_stre(const void *buf, int end, char **ep, uint32_t hash) +hash32_stre(const void *buf, int end, const char **ep, uint32_t hash) { const unsigned char *p = buf; @@ -94,7 +94,7 @@ hash32_stre(const void *buf, int end, ch hash = HASHSTEP(hash, *p++); if (ep) - *ep = (char *)p; + *ep = p; return hash; } @@ -105,7 +105,8 @@ hash32_stre(const void *buf, int end, ch * as a helper for the namei() hashing of path name parts. */ static __inline uint32_t -hash32_strne(const void *buf, size_t len, int end, char **ep, uint32_t hash) +hash32_strne(const void *buf, size_t len, int end, const char **ep, + uint32_t hash) { const unsigned char *p = buf; @@ -113,7 +114,7 @@ hash32_strne(const void *buf, size_t len hash = HASHSTEP(hash, *p++); if (ep) - *ep = (char *)p; + *ep = p; return hash; } Index: share/man/man9/hash.9 =================================================================== RCS file: /home/ncvs/src/share/man/man9/hash.9,v retrieving revision 1.3 diff -u -p -r1.3 hash.9 --- share/man/man9/hash.9 19 Oct 2006 11:03:44 -0000 1.3 +++ share/man/man9/hash.9 3 Apr 2007 02:19:23 -0000 @@ -47,9 +47,9 @@ .Ft uint32_t .Fn hash32_strn "const void *buf" "size_t len" "uint32_t hash" .Ft uint32_t -.Fn hash32_stre "const void *buf" "int end" "char **ep" "uint32_t hash" +.Fn hash32_stre "const void *buf" "int end" "const char **ep" "uint32_t hash" .Ft uint32_t -.Fn hash32_strne "const void *buf" "size_t len" "int end" "char **ep" "uint32_t hash" +.Fn hash32_strne "const void *buf" "size_t len" "int end" "const char **ep" "uint32_t hash" .Sh DESCRIPTION The .Fn hash32 --/9DWx/yDrRhgMJTb-- From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 09:53:58 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6636116A404 for ; Tue, 3 Apr 2007 09:53:58 +0000 (UTC) (envelope-from nkoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.freebsd.org (Postfix) with ESMTP id F2C6E13C487 for ; Tue, 3 Apr 2007 09:53:57 +0000 (UTC) (envelope-from nkoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id 5D0A7130EAE for ; Tue, 3 Apr 2007 11:32:55 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04098-07 for ; Tue, 3 Apr 2007 11:32:49 +0200 (CEST) Received: from firewall.demig (p50839f01.dip0.t-ipconnect.de [80.131.159.1]) by server.absolute-media.de (Postfix) with ESMTP id A84AB13199E for ; Tue, 3 Apr 2007 11:32:48 +0200 (CEST) Received: from [192.168.1.72] (ws-ew-3.demig.intra [192.168.1.72]) by firewall.demig (8.14.0/8.14.0) with ESMTP id l339V5ix007070 for ; Tue, 3 Apr 2007 11:31:06 +0200 (CEST) (envelope-from nkoch@demig.de) Message-ID: <46121ED9.6000706@demig.de> Date: Tue, 03 Apr 2007 09:31:05 +0000 From: Norbert Koch Organization: demig Prozessautomatisierung GmbH User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at absolute-media.de Subject: usb keyboard attach crashes process usb0 (under FreeBSD4.11) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 09:53:58 -0000 Hello. First of all, I understand that there is no interest here in solving FreeBSD 4.11 problems. I only post this because there may be a chance that this could be a problem in CURRENT too. (If no, may be someone likes to dive into ancient software bugs ;-) I am running an embedded system under FreeBSD 4.11. Sometimes after booting FreBSD the USB keyboard is not found and so not automatically attached by usbd. If I then unplug the keyboard and plug it in again the kernel crashes with page fault in process 3 (usb0). I currently have no debug kernel and cannot get a kernel crash dump as I only have some limited flash memory. But, so far I found that the crash address is in usbdi.c, usbd_ar_pipe() at this line: pipe->repeat=0. The function seems to be only called from usbd_abort_pipe(). My guess is that usbd_abort_pipe() is called from ukbd_enable_intr() in ukbd.c with a null pointer as usbd_pipe_handle. The parts of the source I inspected seem to be unchanged in CURRENT, so may be someone with more understanding of the usb code has an idea about that. So, first of all I will add a null pointer check in my kernel source and see if it helps. Further information: I am seeing this with and without kbdmux (I modified an earlier and perhaps buggy kbdmux to work under 4.11). Without kbdmux my usbd.conf contains these lines: device "USB keyboard" devname "ukbd0" attach "/usr/sbin/kbdcontrol -k /dev/kdb1 < /dev/console" detach "/usr/sbin/kbdcontrol -k /dev/kdb0 < /dev/console" I also have the following modification in ukbd.c which has been suggested earlier on this list by Hans Petter Selasky. It reports a specific ukbd detach event to be catched by usbd. Without that patch the detach line in usbd.conf won't work: --- /usr/local/jail/usr/src/sys//dev/usb/ukbd.c Mon Mar 1 21:56:02 2004 +++ ./dev/usb/ukbd.c Thu Feb 23 09:57:59 2006 @@ -195,6 +195,22 @@ USB_ATTACH_SUCCESS_RETURN; } + +static void +usbd_add_device_detach_event(device_t self) +{ + struct usb_event ue; + + bzero(&ue, sizeof(ue)); + + strncpy(ue.u.ue_device.udi_devnames[0], + device_get_nameunit(self), USB_MAX_DEVNAMELEN); + ue.u.ue_device.udi_devnames[0][USB_MAX_DEVNAMELEN - 1] = '\0'; + + usb_add_event(USB_EVENT_DEVICE_DETACH, &ue); +} + + int ukbd_detach(device_t self) { @@ -219,6 +235,8 @@ return error; DPRINTF(("%s: disconnected\n", USBDEVNAME(self))); + + usbd_add_device_detach_event(self); return (0); } Thank you for any help or comment, Norbert Koch From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 11:37:57 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0316C16A407 for ; Tue, 3 Apr 2007 11:37:57 +0000 (UTC) (envelope-from nkoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.freebsd.org (Postfix) with ESMTP id B771213C4BE for ; Tue, 3 Apr 2007 11:37:56 +0000 (UTC) (envelope-from nkoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id 1D0A212D7CA; Tue, 3 Apr 2007 13:37:54 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11909-05; Tue, 3 Apr 2007 13:37:48 +0200 (CEST) Received: from firewall.demig (p508390a1.dip0.t-ipconnect.de [80.131.144.161]) by server.absolute-media.de (Postfix) with ESMTP id A9282FA28B; Tue, 3 Apr 2007 13:37:48 +0200 (CEST) Received: from [192.168.1.72] (ws-ew-3.demig.intra [192.168.1.72]) by firewall.demig (8.14.0/8.14.0) with ESMTP id l33BbYqJ008725; Tue, 3 Apr 2007 13:37:34 +0200 (CEST) (envelope-from nkoch@demig.de) Message-ID: <46123C7B.9050601@demig.de> Date: Tue, 03 Apr 2007 11:37:31 +0000 From: Norbert Koch Organization: demig Prozessautomatisierung GmbH User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Eugene Grosbein References: <46121ED9.6000706@demig.de> <20070403110623.GA64711@svzserv.kemerovo.su> In-Reply-To: <20070403110623.GA64711@svzserv.kemerovo.su> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at absolute-media.de Cc: freebsd-hackers@freebsd.org Subject: Re: usb keyboard attach crashes process usb0 (under FreeBSD4.11) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 11:37:57 -0000 Eugene Grosbein schrieb: > On Tue, Apr 03, 2007 at 09:31:05AM +0000, Norbert Koch wrote: > > >> First of all, I understand that there is no interest here in solving >> FreeBSD 4.11 problems. I only post this because there >> may be a chance that this could be a problem in CURRENT too. >> (If no, may be someone likes to dive into ancient software bugs ;-) >> >> I am running an embedded system under FreeBSD 4.11. >> Sometimes after booting FreBSD the USB keyboard is not found >> and so not automatically attached by usbd. >> If I then unplug the keyboard and plug it in again the >> kernel crashes with page fault in process 3 (usb0). >> > > You didn't mention are you running 4.11-RELEASE or 4.11-STABLE. > If you are using RELEASE then you definitely should try latest 4.11-STABLE, > because there were lots of anti-panic fixes to RELENG_4 for USB subsystem > aftere 4.11-RELEASE. > > Eugene Grosbein > The entry in my sup-file is RELENG_4_11, not RELENG_4_11_0_RELEASE. So I think this is 4.11-STABLE, isn't it? From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 11:38:49 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E526E16A402 for ; Tue, 3 Apr 2007 11:38:49 +0000 (UTC) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.freebsd.org (Postfix) with ESMTP id 49FD413C4CB for ; Tue, 3 Apr 2007 11:38:48 +0000 (UTC) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1]) by www.svzserv.kemerovo.su (8.13.8/8.13.8) with ESMTP id l33B6NjP065860; Tue, 3 Apr 2007 19:06:23 +0800 (KRAST) (envelope-from eugen@www.svzserv.kemerovo.su) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.13.8/8.13.8/Submit) id l33B6Nfh065859; Tue, 3 Apr 2007 19:06:23 +0800 (KRAST) (envelope-from eugen) Date: Tue, 3 Apr 2007 19:06:23 +0800 From: Eugene Grosbein To: Norbert Koch Message-ID: <20070403110623.GA64711@svzserv.kemerovo.su> References: <46121ED9.6000706@demig.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46121ED9.6000706@demig.de> User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Tue, 03 Apr 2007 12:32:10 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: usb keyboard attach crashes process usb0 (under FreeBSD4.11) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 11:38:50 -0000 On Tue, Apr 03, 2007 at 09:31:05AM +0000, Norbert Koch wrote: > First of all, I understand that there is no interest here in solving > FreeBSD 4.11 problems. I only post this because there > may be a chance that this could be a problem in CURRENT too. > (If no, may be someone likes to dive into ancient software bugs ;-) > > I am running an embedded system under FreeBSD 4.11. > Sometimes after booting FreBSD the USB keyboard is not found > and so not automatically attached by usbd. > If I then unplug the keyboard and plug it in again the > kernel crashes with page fault in process 3 (usb0). You didn't mention are you running 4.11-RELEASE or 4.11-STABLE. If you are using RELEASE then you definitely should try latest 4.11-STABLE, because there were lots of anti-panic fixes to RELENG_4 for USB subsystem aftere 4.11-RELEASE. Eugene Grosbein From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 12:37:01 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7219016A402 for ; Tue, 3 Apr 2007 12:37:01 +0000 (UTC) (envelope-from jcarroll@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by mx1.freebsd.org (Postfix) with ESMTP id 34AAB13C480 for ; Tue, 3 Apr 2007 12:37:01 +0000 (UTC) (envelope-from jcarroll@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1658726ana for ; Tue, 03 Apr 2007 05:37:00 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=rkVdY5+50UH8C6u/4sW9ICoE30ljFW4NivzLpZKv3d8lb9a9CFmRksXCUeYN8jThGCuyQDVTFmP0rcM/wTaux3RyosY78sNbNyj+cVisYCAszFedhIHgJ/Hooaq9CeSdgNXHE7qN/AhRihecEvX2exnMvlpblobPxq6ohg7embQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=CDI6PiLgzg0bLLXoiuPR25PCkBciWZcIp15c7nRkxVIQyq6RAHevLwUN8UltnSpDHq5cyDMpWiP7obxeDPZEUBNuTPoiO/mK1g+3i1KLhYU4BUeiFXAuRrL96y3DKB8hpYPJ3AkRj4GZIjahVQXhVtsS97CMweN4obIdBpPpeg0= Received: by 10.100.140.6 with SMTP id n6mr4270589and.1175602255915; Tue, 03 Apr 2007 05:10:55 -0700 (PDT) Received: by 10.100.13.5 with HTTP; Tue, 3 Apr 2007 05:10:55 -0700 (PDT) Message-ID: Date: Tue, 3 Apr 2007 08:10:55 -0400 From: "Jason Carroll" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: kevent and unix dgram socket problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jason@hudson-trading.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 12:37:01 -0000 Hi everyone-- I'm working on an application that is attempting to use kqueues to detect data arriving at a unix domain datagram socket, but kevents don't appear to get delivered when a datagram arrives. Using poll() for the same purpose appears to work fine. Also, if I switch the socket to the AF_INET domain, I see the correct behavior with kevent(). I distilled the problem into two files that I included. listen.cc creates a unix socket and blocks for data on a kevent() call. write.cc sends a brief message to the same unix socket. I've seen the problem on 6-STABLE and 4.5-RELEASE. Anyone have any thoughts or comments? Thanks, Jason // ================ listen.cc ================= #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define LISTENQ 2 #define UN_PATH_LEN sizeof(((struct sockaddr_un*)0)->sun_path) int main(int argc, char *argv[]) { // new socket int fd = socket(AF_LOCAL, SOCK_DGRAM, 0); assert(fd >= 0); // make sure there isn't something in it's way unlink("usock"); // create the local address, bind & listen struct sockaddr_un addr; memset(&addr, 0, sizeof(addr)); addr.sun_family = AF_LOCAL; strncpy(addr.sun_path, "usock", UN_PATH_LEN - 1); assert(bind(fd, (sockaddr*) &addr, sizeof(sockaddr_un)) == 0); assert(listen(fd, LISTENQ) == 0); char buf[1024]; int nread; // uncomment this line to prove my socket is set up correctly // nread = read(fd, buf, sizeof(buf)); // printf("read %d bytes\n", nread); int kqueueFD; kqueueFD = kqueue(); struct kevent event; EV_SET(&event, fd, EVFILT_READ, EV_ADD, 0, 0, 0); assert(kevent(kqueueFD, &event, 1, 0, 0, 0) == 0); struct pollfd pfd; pfd.fd = fd; pfd.events = POLLIN; pfd.revents = 0; int r; // uncomment the following two lines to see poll behavior // while ((r = poll(&pfd, 1, INFTIM)) >= 0) { // printf("poll returned %d\n", r); // uncomment the following two lines to see kqueue behavior while ((r = kevent(kqueueFD, 0, 0, &event, 1, 0)) >= 0) { printf("kevent returned %d\n", r); nread = read(fd, buf, sizeof(buf)); printf("read %d bytes\n", nread); } } // ================ write.cc ================= #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define LISTENQ 2 #define UN_PATH_LEN sizeof(((struct sockaddr_un*)0)->sun_path) int main(int argc, char *argv[]) { int fd = socket(AF_LOCAL, SOCK_DGRAM, 0); assert(fd >= 0); // create the local address & "connect" struct sockaddr_un addr; memset(&addr, 0, sizeof(addr)); addr.sun_family = AF_LOCAL; strncpy(addr.sun_path, "usock", UN_PATH_LEN - 1); assert(connect(fd, (sockaddr*) &addr, sizeof(sockaddr_un)) == 0); const char *msg = "this is the message\n"; write(fd, msg, strlen(msg)); } From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 13:32:58 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 73A6F16A406 for ; Tue, 3 Apr 2007 13:32:58 +0000 (UTC) (envelope-from nkoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.freebsd.org (Postfix) with ESMTP id 3298613C46E for ; Tue, 3 Apr 2007 13:32:58 +0000 (UTC) (envelope-from nkoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id 6FF5D132BD6; Tue, 3 Apr 2007 15:32:55 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19076-10; Tue, 3 Apr 2007 15:32:49 +0200 (CEST) Received: from firewall.demig (p508390a1.dip0.t-ipconnect.de [80.131.144.161]) by server.absolute-media.de (Postfix) with ESMTP id 0B423E9110; Tue, 3 Apr 2007 15:32:48 +0200 (CEST) Received: from [192.168.1.72] (ws-ew-3.demig.intra [192.168.1.72]) by firewall.demig (8.14.0/8.14.0) with ESMTP id l33DW2Ps010098; Tue, 3 Apr 2007 15:32:02 +0200 (CEST) (envelope-from nkoch@demig.de) Message-ID: <46125744.6050009@demig.de> Date: Tue, 03 Apr 2007 13:31:48 +0000 From: Norbert Koch Organization: demig Prozessautomatisierung GmbH User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Eugene Grosbein References: <46121ED9.6000706@demig.de> <20070403110623.GA64711@svzserv.kemerovo.su> <46123C7B.9050601@demig.de> <20070403124251.GA73720@svzserv.kemerovo.su> In-Reply-To: <20070403124251.GA73720@svzserv.kemerovo.su> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at absolute-media.de Cc: freebsd-hackers@freebsd.org Subject: Re: usb keyboard attach crashes process usb0 (under FreeBSD4.11) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 13:32:58 -0000 Eugene Grosbein schrieb: > On Tue, Apr 03, 2007 at 11:37:31AM +0000, Norbert Koch wrote: > > >>> You didn't mention are you running 4.11-RELEASE or 4.11-STABLE. >>> If you are using RELEASE then you definitely should try latest 4.11-STABLE, >>> because there were lots of anti-panic fixes to RELENG_4 for USB subsystem >>> aftere 4.11-RELEASE. >>> >>> Eugene Grosbein >>> >>> >> The entry in my sup-file is RELENG_4_11, not RELENG_4_11_0_RELEASE. >> So I think this is 4.11-STABLE, isn't it? >> > > No, this is so-called '4.11-SECURITY' (unofficial name since some moment). > You need RELENG_4 in sup-file to obtain 4.11-STABLE, not RELENG_4_11. > > I believe RELENG_4_11 has not mentioned fixes. > > Eugene > Ok, I'll try RELENG_4. Thank you. From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 13:46:52 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CA78716A402 for ; Tue, 3 Apr 2007 13:46:52 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 85D6313C43E for ; Tue, 3 Apr 2007 13:46:52 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id A23E946EEE; Tue, 3 Apr 2007 09:46:51 -0400 (EDT) Date: Tue, 3 Apr 2007 14:46:51 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: jason@hudson-trading.com In-Reply-To: Message-ID: <20070403144433.F85016@fledge.watson.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: kevent and unix dgram socket problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 13:46:52 -0000 On Tue, 3 Apr 2007, Jason Carroll wrote: > // create the local address, bind & listen > struct sockaddr_un addr; > memset(&addr, 0, sizeof(addr)); > addr.sun_family = AF_LOCAL; > strncpy(addr.sun_path, "usock", UN_PATH_LEN - 1); > assert(bind(fd, (sockaddr*) &addr, sizeof(sockaddr_un)) == 0); > assert(listen(fd, LISTENQ) == 0); Try dropping the listen() call. This is only required for stream sockets where you will then accept() new connections (returning new sockets). listen() should probably be returning an error, and apparently isn't. What may be happening is that as of the point where listen() is called, future attempts to register kevents for "read" will be set up to detect whether accept() will return a socket or not, not whether there is data in the socket listen() has been called on. I'll investigate adding a check so that an error would have been returned here. This relates to another bug we have, in which if you register a kqueue event for "read" on a TCP socket before calling listen(), then the result is very different from what happens if you register the kqueue event after listen(). Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 12:43:01 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED3A616A406 for ; Tue, 3 Apr 2007 12:43:01 +0000 (UTC) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.freebsd.org (Postfix) with ESMTP id 48C3413C483 for ; Tue, 3 Apr 2007 12:43:00 +0000 (UTC) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1]) by www.svzserv.kemerovo.su (8.13.8/8.13.8) with ESMTP id l33Cgpi3073999; Tue, 3 Apr 2007 20:42:51 +0800 (KRAST) (envelope-from eugen@www.svzserv.kemerovo.su) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.13.8/8.13.8/Submit) id l33Cgp4v073998; Tue, 3 Apr 2007 20:42:51 +0800 (KRAST) (envelope-from eugen) Date: Tue, 3 Apr 2007 20:42:51 +0800 From: Eugene Grosbein To: Norbert Koch Message-ID: <20070403124251.GA73720@svzserv.kemerovo.su> References: <46121ED9.6000706@demig.de> <20070403110623.GA64711@svzserv.kemerovo.su> <46123C7B.9050601@demig.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46123C7B.9050601@demig.de> User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Tue, 03 Apr 2007 13:52:05 +0000 Cc: freebsd-hackers@freebsd.org, Eugene Grosbein Subject: Re: usb keyboard attach crashes process usb0 (under FreeBSD4.11) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 12:43:02 -0000 On Tue, Apr 03, 2007 at 11:37:31AM +0000, Norbert Koch wrote: > >You didn't mention are you running 4.11-RELEASE or 4.11-STABLE. > >If you are using RELEASE then you definitely should try latest 4.11-STABLE, > >because there were lots of anti-panic fixes to RELENG_4 for USB subsystem > >aftere 4.11-RELEASE. > > > >Eugene Grosbein > > > The entry in my sup-file is RELENG_4_11, not RELENG_4_11_0_RELEASE. > So I think this is 4.11-STABLE, isn't it? No, this is so-called '4.11-SECURITY' (unofficial name since some moment). You need RELENG_4 in sup-file to obtain 4.11-STABLE, not RELENG_4_11. I believe RELENG_4_11 has not mentioned fixes. Eugene From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 16:49:32 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0D5DF16A402 for ; Tue, 3 Apr 2007 16:49:32 +0000 (UTC) (envelope-from zombyfork@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 5B39D13C48C for ; Tue, 3 Apr 2007 16:49:31 +0000 (UTC) (envelope-from zombyfork@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so365970ugh for ; Tue, 03 Apr 2007 09:49:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Bd2y19Wx87DYnLPK0lgxkqthCDm3ymJjQbf9CML6kjezrePlCduXknjh2C/GVuFSG73h65p4kkP2+zFMVzwYhl+6RoGQN6Ik7tLaanMmPfVGwJjQxylCOKNnEgvYDilCxTPHzZsvI9peBIQoWJUmxYIkelSpKuxPVWtuIX6Kvo0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=DG0FwBCdXtzmwWIfmZ34xkwhUvX39IJXQZfK3mk8axo8q3nKOtmdheOITJ4ajZTIcwGyN5gh3cdIO/AVYqnXSYguiONZqz2pMYNwD/zno7xZH+2VLdTydmh9uV0rGg9j4od9GU0c0g7A40YPocdFubftEFPRylaDb32eOtwmexI= Received: by 10.114.131.2 with SMTP id e2mr2324615wad.1175618968951; Tue, 03 Apr 2007 09:49:28 -0700 (PDT) Received: by 10.115.15.4 with HTTP; Tue, 3 Apr 2007 09:49:28 -0700 (PDT) Message-ID: <346a80220704030949o56f38e76ycaf15a3cc7ff7be7@mail.gmail.com> Date: Tue, 3 Apr 2007 10:49:28 -0600 From: "Coleman Kane" To: "Kip Macy" In-Reply-To: MIME-Version: 1.0 References: <20070402095240.GC78982@main.mathisen.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: hackers@freebsd.org, Jaye Mathisen , Rink Springer Subject: Re: Any recent news on Xen support for FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cokane@cokane.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 16:49:32 -0000 On 4/2/07, Kip Macy wrote: > > Rink has made some progress. I'm cc'ing him. > > -Kip > > On 4/2/07, Jaye Mathisen wrote: > > > > > > The fsmware page is significantly dated, and I just am > > not sure what's going on. > > > > I was just curious if there was a better or updated status > > available. > > > > Thanks for your time. > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to " > freebsd-hackers-unsubscribe@freebsd.org" > > Try to keep this on -hackers... I am interested in the follow-ups to this thread as well, and I am sure that it would be helpful to others. From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 17:22:20 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CFEDF16A401 for ; Tue, 3 Apr 2007 17:22:20 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from gateway.cybervisiontech.com.ua (gateway.cybervisiontech.com.ua [88.81.251.18]) by mx1.freebsd.org (Postfix) with ESMTP id 89E2913C465 for ; Tue, 3 Apr 2007 17:22:20 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (hq.cybervisiontech.com [127.0.0.1]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 17DCDED533E for ; Tue, 3 Apr 2007 20:22:14 +0300 (EEST) X-Virus-Scanned: amavisd-new at cybervisiontech.com Received: from gateway.cybervisiontech.com.ua ([127.0.0.1]) by localhost (hq.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ubk5UU+33MtZ for ; Tue, 3 Apr 2007 20:22:11 +0300 (EEST) Received: from [10.2.1.87] (rein.cybervisiontech.com.ua [10.2.1.87]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 0BBFAED532E for ; Tue, 3 Apr 2007 20:22:11 +0300 (EEST) Message-ID: <46128D47.50109@icyb.net.ua> Date: Tue, 03 Apr 2007 20:22:15 +0300 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: strange bit-shifting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 17:22:20 -0000 $ cat test_shl.c #include #include int main() { uint64_t l; l = 0; l--; printf("%.16lX\n", l); l <<= 64; printf("%.16lX\n", l); return 0; } $ cc test_shl.c -o test_shl test_shl.c: In function `main': test_shl.c:11: warning: left shift count >= width of type $ ./test_shl FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF $ uname -srm FreeBSD 6.2-RELEASE-p2 amd64 $ gcc -v Using built-in specs. Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 3.4.6 [FreeBSD] 20060305 What gives ? It looks like shift is actually done not by specified number of bits but by that number modulo 64. Please also mind that the same thing happens if I use a variable instead of a constant in that expression. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 17:23:53 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 447D916A403 for ; Tue, 3 Apr 2007 17:23:53 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id 0164213C483 for ; Tue, 3 Apr 2007 17:23:52 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1770964ana for ; Tue, 03 Apr 2007 10:23:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LKzkZuNPy3vZP7S92mgwXQ034rHOwXcPtgXKBVbpYq9LnI8ei+MQx2kodsrREl3vPaiYeehC0HQemE22dHy/IFe5LIDe97Xc/qFPJOkBaHtDGF3Un3HCaKydrN8flLkbl2B3m1jkmN5UUYqBJVL2egXhCzpTKVP2YZ6Cy3X2kWY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WYpgj3KeS5YJTvUU/YK/PtmMXJxhCg/Ly12cP1a4I+DLLjiip3HRbNyoACkPrJplFDMxUmTYmlEgeR6CJJ6cTWbjtzD2xRbfH+DFRPJhfRNnwEZ9SgoUrSlJgoSAZN3OzEI3Dld2O0p+kIHNeHipFeCl7mH742ZCxyvyCnJSM+0= Received: by 10.100.126.2 with SMTP id y2mr4582173anc.1175619296352; Tue, 03 Apr 2007 09:54:56 -0700 (PDT) Received: by 10.100.48.8 with HTTP; Tue, 3 Apr 2007 09:54:56 -0700 (PDT) Message-ID: <11167f520704030954l18c9378fy487ed5d4247efbb7@mail.gmail.com> Date: Tue, 3 Apr 2007 11:54:56 -0500 From: "Sam Fourman Jr." To: cokane@cokane.org In-Reply-To: <346a80220704030949o56f38e76ycaf15a3cc7ff7be7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070402095240.GC78982@main.mathisen.org> <346a80220704030949o56f38e76ycaf15a3cc7ff7be7@mail.gmail.com> Cc: Rink Springer , Kip Macy , Jaye Mathisen , hackers@freebsd.org Subject: Re: Any recent news on Xen support for FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 17:23:53 -0000 For what it is worth I check the lists on a weekly basis for Xen Support in FreeBSD as well as xorg 7.2 actually hitting the ports tree. both Xen and Xorg 7.2 are very highly anticipated in my opinion Sam Fourman Jr. On 4/3/07, Coleman Kane wrote: > On 4/2/07, Kip Macy wrote: > > > > Rink has made some progress. I'm cc'ing him. > > > > -Kip > > > > On 4/2/07, Jaye Mathisen wrote: > > > > > > > > > The fsmware page is significantly dated, and I just am > > > not sure what's going on. > > > > > > I was just curious if there was a better or updated status > > > available. > > > > > > Thanks for your time. > > > _______________________________________________ > > > freebsd-hackers@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > > To unsubscribe, send any mail to " > > freebsd-hackers-unsubscribe@freebsd.org" > > > > > > Try to keep this on -hackers... I am interested in the follow-ups to this > thread as well, and I am sure that it would be helpful to others. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 17:41:06 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 83D4716A402 for ; Tue, 3 Apr 2007 17:41:06 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5905813C458 for ; Tue, 3 Apr 2007 17:41:06 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l33Hf5X6048129; Tue, 3 Apr 2007 12:41:05 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <461291B1.2070303@freebsd.org> Date: Tue, 03 Apr 2007 12:41:05 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.10 (X11/20070320) MIME-Version: 1.0 To: Andriy Gapon References: <46128D47.50109@icyb.net.ua> In-Reply-To: <46128D47.50109@icyb.net.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/3007/Tue Apr 3 07:26:03 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: freebsd-hackers@freebsd.org Subject: Re: strange bit-shifting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 17:41:06 -0000 On 04/03/07 12:22, Andriy Gapon wrote: > $ cat test_shl.c > #include > #include > > int main() > { > uint64_t l; > > l = 0; > l--; > printf("%.16lX\n", l); > l <<= 64; > printf("%.16lX\n", l); > return 0; > } > > $ cc test_shl.c -o test_shl > test_shl.c: In function `main': > test_shl.c:11: warning: left shift count >= width of type > $ ./test_shl > FFFFFFFFFFFFFFFF > FFFFFFFFFFFFFFFF > $ uname -srm > FreeBSD 6.2-RELEASE-p2 amd64 > $ gcc -v > Using built-in specs. > Configured with: FreeBSD/amd64 system compiler > Thread model: posix > gcc version 3.4.6 [FreeBSD] 20060305 > > What gives ? It looks like shift is actually done not by specified > number of bits but by that number modulo 64. > Please also mind that the same thing happens if I use a variable instead > of a constant in that expression. > I see the same thing on -CURRENT. I was doing something like: uint64_t l; l = 1 << 40; but instead did: l = (1 << 30) * 1024; which works fine. This was on i386. Eric From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 17:56:02 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 38B5D16A407 for ; Tue, 3 Apr 2007 17:56:02 +0000 (UTC) (envelope-from cokane@mail.cokane.org) Received: from ms-smtp-06.texas.rr.com (ms-smtp-06.texas.rr.com [24.93.47.45]) by mx1.freebsd.org (Postfix) with ESMTP id 0A63013C4AE for ; Tue, 3 Apr 2007 17:56:01 +0000 (UTC) (envelope-from cokane@mail.cokane.org) Received: from ramen.cokane.org (rrcs-24-153-184-158.sw.biz.rr.com [24.153.184.158]) by ms-smtp-06.texas.rr.com (8.13.6/8.13.6) with SMTP id l33H60aV018990 for ; Tue, 3 Apr 2007 12:06:03 -0500 (CDT) Received: (qmail 35822 invoked by uid 1001); 3 Apr 2007 17:08:59 -0000 Date: Tue, 3 Apr 2007 17:08:59 +0000 From: Coleman Kane To: "Sam Fourman Jr." Message-ID: <20070403170859.GA35770@ramen.coleyandcheryl> References: <20070402095240.GC78982@main.mathisen.org> <346a80220704030949o56f38e76ycaf15a3cc7ff7be7@mail.gmail.com> <11167f520704030954l18c9378fy487ed5d4247efbb7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11167f520704030954l18c9378fy487ed5d4247efbb7@mail.gmail.com> User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: Rink Springer , Kip Macy , Jaye Mathisen , hackers@freebsd.org Subject: Re: Any recent news on Xen support for FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 17:56:02 -0000 I have actually switched to using the ModularXorg ports tree which is a slightly delayed tree that merges the modular X.org 7.2 parts into it. I have been using that on a regular basis for my workstation and it has been great. If you're interested in X.org 7.2, check out: http://wiki.freebsd.org/ModularXorg -- Coleman On Tue, Apr 03, 2007 at 11:54:56AM -0500, Sam Fourman Jr. wrote, and it was proclaimed: > For what it is worth I check the lists on a weekly basis for Xen > Support in FreeBSD as well as xorg 7.2 actually hitting the ports > tree. > > both Xen and Xorg 7.2 are very highly anticipated in my opinion > > Sam Fourman Jr. > > On 4/3/07, Coleman Kane wrote: > >On 4/2/07, Kip Macy wrote: > >> > >> Rink has made some progress. I'm cc'ing him. > >> > >> -Kip > >> > >> On 4/2/07, Jaye Mathisen wrote: > >> > > >> > > >> > The fsmware page is significantly dated, and I just am > >> > not sure what's going on. > >> > > >> > I was just curious if there was a better or updated status > >> > available. > >> > > >> > Thanks for your time. > >> > _______________________________________________ > >> > freebsd-hackers@freebsd.org mailing list > >> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > >> > To unsubscribe, send any mail to " > >> freebsd-hackers-unsubscribe@freebsd.org" > >> > > > > > > >Try to keep this on -hackers... I am interested in the follow-ups to this > >thread as well, and I am sure that it would be helpful to others. > >_______________________________________________ > >freebsd-hackers@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 18:16:02 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4BF7116A404; Tue, 3 Apr 2007 18:16:02 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.freebsd.org (Postfix) with ESMTP id E2C2E13C484; Tue, 3 Apr 2007 18:16:01 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by mail.ambrisko.com with ESMTP; 03 Apr 2007 10:43:20 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.13.1/8.12.11) with ESMTP id l33HlIiA064055; Tue, 3 Apr 2007 10:47:18 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.13.1/8.13.1/Submit) id l33HlIpr064054; Tue, 3 Apr 2007 10:47:18 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200704031747.l33HlIpr064054@ambrisko.com> In-Reply-To: To: Daniel Eischen Date: Tue, 3 Apr 2007 10:47:18 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: freebsd-hackers@freebsd.org, Andriy Gapon , freebsd-arch@freebsd.org Subject: Re: 32/64bit KSE issues? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 18:16:02 -0000 Daniel Eischen writes: | On Sat, 31 Mar 2007, John Baldwin wrote: | > On Saturday 31 March 2007 03:16, Andriy Gapon wrote: | >> on 31/03/2007 05:23 Daniel Eischen said the following: | >>> On Fri, 30 Mar 2007, David E. Cross wrote: | >>> | >>>> I recently ran into a problem where the 32bit JVM won't run on a 64bit host. | >>>> I, and at least one other person in -java thinks it has to do with 32 bit KSE | >>>> on a 64bit kernel (I have a vague memory on this somewheres WAY back). Is | >>>> this still the issue? Could someone point me in the general direction of the | >>>> specifics of the problem (if they exist, if not, I may try to create a | >>>> simpler test case then java)? | >>>> | >>>> I tried a few searches, but nothing matching what I remembered came up. | >>> | >>> No, you can't run 32-bit libpthread on 64-bit kernel. There | >>> are no compatiblity hooks in the kernel to handle 32-bit kse | >>> interfaces. It is really too messy to provide it. | | [ ... ] | | > I plan on making sure full 32-bit compat exists for both libthr and | > libpthread and backporting it to 6.x for work. Very few things are | > too hard to wrap with a 32-bit shim. | | Not according to peter@ ;-) But if you can do it, that'd be | great. I MFC'ed David Xu's libthr to 6.X at work and it's working. libkse will be a lot harder IMHO. David's stuff in -current just works. I routinely run 32bit thread stuff on 64bit hosts using the libmap32.conf trick to switch from kse to libthr. Thanks to David for making it work in -current. Doug A. From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 3 18:19:53 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4BCF116A401 for ; Tue, 3 Apr 2007 18:19:53 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from viefep15-int.chello.at (viefep13-int.chello.at [213.46.255.15]) by mx1.freebsd.org (Postfix) with ESMTP id 7C2E213C4B9 for ; Tue, 3 Apr 2007 18:19:51 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from lizard.fafoe.narf.at ([213.47.85.26]) by viefep16-int.chello.at (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20070403180254.YEWJ27364.viefep16-int.chello.at@lizard.fafoe.narf.at>; Tue, 3 Apr 2007 20:02:54 +0200 Received: by lizard.fafoe.narf.at (Postfix, from userid 1001) id DB4AAB8BB; Tue, 3 Apr 2007 20:02:53 +0200 (CEST) Date: Tue, 3 Apr 2007 20:02:53 +0200 From: Stefan Farfeleder To: Andriy Gapon Message-ID: <20070403180253.GG907@lizard.fafoe.narf.at> Mail-Followup-To: Andriy Gapon , freebsd-hackers@freebsd.org References: <46128D47.50109@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46128D47.50109@icyb.net.ua> User-Agent: Mutt/1.5.14 (2007-02-12) Cc: freebsd-hackers@freebsd.org Subject: Re: strange bit-shifting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 18:19:53 -0000 On Tue, Apr 03, 2007 at 08:22:15PM +0300, Andriy Gapon wrote: > > $ cat test_shl.c > #include > #include > > int main() > { > uint64_t l; > > l = 0; > l--; > printf("%.16lX\n", l); > l <<= 64; > printf("%.16lX\n", l); > return 0; > } > > $ cc test_shl.c -o test_shl > test_shl.c: In function `main': > test_shl.c:11: warning: left shift count >= width of type > $ ./test_shl > FFFFFFFFFFFFFFFF > FFFFFFFFFFFFFFFF > $ uname -srm > FreeBSD 6.2-RELEASE-p2 amd64 > $ gcc -v > Using built-in specs. > Configured with: FreeBSD/amd64 system compiler > Thread model: posix > gcc version 3.4.6 [FreeBSD] 20060305 > > What gives ? It looks like shift is actually done not by specified > number of bits but by that number modulo 64. > Please also mind that the same thing happens if I use a variable instead > of a constant in that expression. The behaviour is undefined and you even got a warning from GCC. C99 6.5.7: # The integer promotions are performed on each of the operands. The type # of the result is that of the promoted left operand. If the value of # the right operand is negative or is greater than or equal to the width # of the promoted left operand, the behavior is undefined. Stefan From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 4 00:20:23 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D40CD16A406 for ; Wed, 4 Apr 2007 00:20:23 +0000 (UTC) (envelope-from newroswell@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by mx1.freebsd.org (Postfix) with ESMTP id 8491A13C46E for ; Wed, 4 Apr 2007 00:20:23 +0000 (UTC) (envelope-from newroswell@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so22970wra for ; Tue, 03 Apr 2007 17:20:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=hJHm1r7+rU0S+KRGnCCvd6dQeCrahDbI4kudFi7VOoM0aAQshL/6tCjwTwpv/66OhZVyAOX/L4aR1TwYrvM9Z97rr+q/tbGyPlRa9tbNc4iz2gcypH0yPEePH9ieGuzVQY0bPnhj3yvjKPdq1JiDDXmxpcPpibOF1Pi+jOtIiQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=CfgsfclcpSH6P8+drbcq7JmDvudZaRMRT8Jj0+iio4rBy+IVOY1AuBQpUBlqrWQ71kivmOqaO8Yol0XnP7OQE11iE59ACEeDyPi/DJlGEwFfeVQ5yTx49ua8GhnznkLJikj3tuvksHbmNOZej/imMfGsC9u+4+Bdy1zSdwdyGdg= Received: by 10.114.95.1 with SMTP id s1mr62wab.1175644269724; Tue, 03 Apr 2007 16:51:09 -0700 (PDT) Received: by 10.114.108.1 with HTTP; Tue, 3 Apr 2007 16:51:09 -0700 (PDT) Message-ID: <375baf50704031651p594e82e7y9f3d9c099f5d8268@mail.gmail.com> Date: Tue, 3 Apr 2007 16:51:09 -0700 From: "Kevin Sanders" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: kqueue (9) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 00:20:23 -0000 Hello all, I'm trying to gain a better understanding of how kqueue's work from the driver side. I've managed to glean enough information from the source of other drivers, but I'm having a problem in my own kernel module when it is unloaded. Specifically, when my module is unloaded and there are user programs that have kqueue's with open descriptors from my driver in them, I don't know how to close things down from the driver side. Any advice or links would be appreciated. Thanks in advance. Kevin From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 4 07:22:09 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 284F816A406 for ; Wed, 4 Apr 2007 07:22:09 +0000 (UTC) (envelope-from rink@thunderstone.rink.nu) Received: from mx1.rink.nu (thunderstone.rink.nu [80.112.228.34]) by mx1.freebsd.org (Postfix) with ESMTP id DDD6B13C487 for ; Wed, 4 Apr 2007 07:22:08 +0000 (UTC) (envelope-from rink@thunderstone.rink.nu) Received: from localhost (localhost [127.0.0.1]) by mx1.rink.nu (Postfix) with ESMTP id D2663D4C5D; Wed, 4 Apr 2007 08:53:13 +0200 (CEST) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx1.rink.nu ([127.0.0.1]) by localhost (thunderstone.rink.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RoLcrCrnfxOi; Wed, 4 Apr 2007 08:53:07 +0200 (CEST) Received: from thunderstone.rink.nu (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.rink.nu (Postfix) with ESMTP id 8054AD4C5C; Wed, 4 Apr 2007 08:53:07 +0200 (CEST) Received: (from rink@localhost) by thunderstone.rink.nu (8.13.8/8.13.8/Submit) id l346r7hC040295; Wed, 4 Apr 2007 08:53:07 +0200 (CEST) (envelope-from rink) Date: Wed, 4 Apr 2007 08:53:07 +0200 From: Rink Springer To: Jaye Mathisen Message-ID: <20070404065307.GA2546@rink.nu> References: <20070402095240.GC78982@main.mathisen.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070402095240.GC78982@main.mathisen.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: hackers@freebsd.org Subject: Re: Any recent news on Xen support for FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 07:22:09 -0000 Hi, On Mon, Apr 02, 2007 at 02:52:40AM -0700, Jaye Mathisen wrote: > I was just curious if there was a better or updated status > available. As Kip stated, I am working on improving FreeBSD/xen support to work correctly [1] on more recent versions of Xen 3.0. Progress is being made, but due to university courses, it doesn't go as quickly as I initially hoped for. Either way, work is under way to make it happen... stay tuned! [1] Architectural changes of Xen make FreeBSD/xen as it is now in Perforce crash during initialization. -- Rink P.W. Springer - http://rink.nu "It is such a quiet thing, to fall. But yet a far more terrible thing, to admit it." - Darth Traya From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 4 08:38:05 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78E6216A402 for ; Wed, 4 Apr 2007 08:38:05 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from gateway.cybervisiontech.com.ua (gateway.cybervisiontech.com.ua [88.81.251.18]) by mx1.freebsd.org (Postfix) with ESMTP id 309BC13C480 for ; Wed, 4 Apr 2007 08:38:05 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (hq.cybervisiontech.com [127.0.0.1]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 4CAACED54C4 for ; Wed, 4 Apr 2007 19:38:02 +0300 (EEST) X-Virus-Scanned: amavisd-new at cybervisiontech.com Received: from gateway.cybervisiontech.com.ua ([127.0.0.1]) by localhost (hq.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mfbJTLd1xktJ for ; Wed, 4 Apr 2007 19:38:01 +0300 (EEST) Received: from [10.2.1.87] (rein.cybervisiontech.com.ua [10.2.1.87]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 6131AED54B0 for ; Wed, 4 Apr 2007 19:38:01 +0300 (EEST) Message-ID: <461363EA.1010604@icyb.net.ua> Date: Wed, 04 Apr 2007 11:38:02 +0300 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <46128D47.50109@icyb.net.ua> <20070403180253.GG907@lizard.fafoe.narf.at> In-Reply-To: <20070403180253.GG907@lizard.fafoe.narf.at> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: strange bit-shifting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 08:38:05 -0000 on 03/04/2007 21:02 Stefan Farfeleder said the following: > On Tue, Apr 03, 2007 at 08:22:15PM +0300, Andriy Gapon wrote: [...] >> $ ./test_shl >> FFFFFFFFFFFFFFFF >> FFFFFFFFFFFFFFFF >> $ uname -srm >> FreeBSD 6.2-RELEASE-p2 amd64 >> $ gcc -v >> Using built-in specs. >> Configured with: FreeBSD/amd64 system compiler >> Thread model: posix >> gcc version 3.4.6 [FreeBSD] 20060305 >> >> What gives ? It looks like shift is actually done not by specified >> number of bits but by that number modulo 64. >> Please also mind that the same thing happens if I use a variable instead >> of a constant in that expression. > > The behaviour is undefined and you even got a warning from GCC. > > C99 6.5.7: > > # The integer promotions are performed on each of the operands. The type > # of the result is that of the promoted left operand. If the value of > # the right operand is negative or is greater than or equal to the width > # of the promoted left operand, the behavior is undefined. Thank you for the pointer! I've been hacking some C for a while but haven't hit this thing nor theoretically learned it until now. Well, i think I'll have to add some checks/limits to x>>n constructs that I have now. Pity that it's impossible for a compiler to warn when right operand is a variable. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 4 08:55:11 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D215416A404; Wed, 4 Apr 2007 08:55:11 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8DF0A13C4B0; Wed, 4 Apr 2007 08:55:11 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1HZ1Go-000DYB-KZ; Wed, 04 Apr 2007 11:55:10 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 04 Apr 2007 11:55:10 +0300 From: Danny Braniss Message-ID: Cc: freebsd-current@freebsd.org Subject: diskless/rm causing deadlock? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 08:55:11 -0000 I stumbled on this in -current, but it's also true for 6.2. /(root) is mounted diskless, doing rm of a file in /, even as a lowly mortal will hang the network, and hence everything. on a 6.1 system, it works as expected. badwolf> rm /usr/ports rm: /usr/ports: Read-only file system i'll try to hunt this down, but some pointers where to start might be helpfull danny From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 4 13:16:50 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB7BA16A418 for ; Wed, 4 Apr 2007 13:16:50 +0000 (UTC) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (www.kukulies.org [213.146.112.180]) by mx1.freebsd.org (Postfix) with ESMTP id 756D813C4BE for ; Wed, 4 Apr 2007 13:16:48 +0000 (UTC) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (localhost [127.0.0.1]) by www.kukulies.org (8.13.3/8.12.10) with ESMTP id l34D2nmM041688 for ; Wed, 4 Apr 2007 15:02:50 +0200 (CEST) (envelope-from kuku@www.kukulies.org) Received: (from kuku@localhost) by www.kukulies.org (8.13.3/8.12.10/Submit) id l34D2nl5041687 for freebsd-hackers@freebsd.org; Wed, 4 Apr 2007 15:02:49 +0200 (CEST) (envelope-from kuku) Date: Wed, 4 Apr 2007 15:02:49 +0200 From: "Christoph P. Kukulies" To: freebsd-hackers@freebsd.org Message-ID: <20070404130249.GA41671@kukulies.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Mac OS underlying FreeBSD - does it run Linux emulation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 13:16:50 -0000 Hi, does anyone know whether one can run Linux applications under the underlying FreeBSD of the MAC OS (on an Intel Core Duo mini Mac)? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 4 13:26:19 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AB40116A405 for ; Wed, 4 Apr 2007 13:26:19 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (palm.hoeg.nl [83.98.131.212]) by mx1.freebsd.org (Postfix) with ESMTP id 739D913C468 for ; Wed, 4 Apr 2007 13:26:19 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id EEBF31CC22; Wed, 4 Apr 2007 15:26:17 +0200 (CEST) Date: Wed, 4 Apr 2007 15:26:17 +0200 From: Ed Schouten To: "Christoph P. Kukulies" Message-ID: <20070404132617.GJ14608@hoeg.nl> References: <20070404130249.GA41671@kukulies.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zqjkMoGlbUJ91oFe" Content-Disposition: inline In-Reply-To: <20070404130249.GA41671@kukulies.org> User-Agent: Mutt/1.5.14 (2007-02-12) Cc: FreeBSD Hackers Subject: Re: Mac OS underlying FreeBSD - does it run Linux emulation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 13:26:19 -0000 --zqjkMoGlbUJ91oFe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Christoph P. Kukulies wrote: > does anyone know whether one can run Linux applications under the underl= ying > FreeBSD of the MAC OS (on an Intel Core Duo mini Mac)? If you mean by recompiling the applications in question, often you can. Take a look at MacPorts or Fink. Those are package managers for Mac OS X which contain a lot of applications you normally see on Linux and FreeBSD. If you mean running Linux executables on Mac OS X, you cannot. Linux uses a different binary format as Mac OS X. --=20 Ed Schouten WWW: http://g-rave.nl/ --zqjkMoGlbUJ91oFe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGE6d552SDGA2eCwURAlUMAJ97BLIL2XvIA2ohwZEkzZsDlCNV1gCfdBu/ u0/4y/GqiUhPh6/69X2Brf4= =okkT -----END PGP SIGNATURE----- --zqjkMoGlbUJ91oFe-- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 4 13:57:40 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AFCB116A405 for ; Wed, 4 Apr 2007 13:57:40 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 3F5F813C4AD for ; Wed, 4 Apr 2007 13:57:40 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 9849 invoked by uid 1001); 4 Apr 2007 13:58:08 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Wed, 04 Apr 2007 09:58:08 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17939.44784.420806.421633@bhuda.mired.org> Date: Wed, 4 Apr 2007 09:58:08 -0400 To: "Christoph P. Kukulies" In-Reply-To: <20070404130249.GA41671@kukulies.org> References: <20070404130249.GA41671@kukulies.org> X-Mailer: VM 7.17 under 21.4 (patch 20) "Double Solitaire" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: Mac OS underlying FreeBSD - does it run Linux emulation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 13:57:40 -0000 In <20070404130249.GA41671@kukulies.org>, Christoph P. Kukulies typed: > does anyone know whether one can run Linux applications under the underlying > FreeBSD of the MAC OS (on an Intel Core Duo mini Mac)? No, you can't. The "underlying" FreeBSD is userland code; not kernel code. The OSX kernel is based on Mach. This isn't really that useful a capability. Most commercial software that's available for Linux is also available for OSX. Most open source software for Linux can be rebuilt on OSX fairly trivially, though you may need to us an X server. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 4 14:39:04 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A10EC16A403 for ; Wed, 4 Apr 2007 14:39:04 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3A8D513C457 for ; Wed, 4 Apr 2007 14:39:04 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 3AF30475C0; Wed, 4 Apr 2007 10:39:03 -0400 (EDT) Date: Wed, 4 Apr 2007 15:39:03 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Mike Meyer In-Reply-To: <17939.44784.420806.421633@bhuda.mired.org> Message-ID: <20070404153559.Y18288@fledge.watson.org> References: <20070404130249.GA41671@kukulies.org> <17939.44784.420806.421633@bhuda.mired.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Mac OS underlying FreeBSD - does it run Linux emulation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 14:39:04 -0000 On Wed, 4 Apr 2007, Mike Meyer wrote: > In <20070404130249.GA41671@kukulies.org>, Christoph P. Kukulies typed: >> does anyone know whether one can run Linux applications under the underlying >> FreeBSD of the MAC OS (on an Intel Core Duo mini Mac)? > > No, you can't. The "underlying" FreeBSD is userland code; not kernel code. > The OSX kernel is based on Mach. While it's true you can't run Linux binaries on Mac OS X, it's not for the reason you're suggesting, and your statement regarding FreeBSD kernel code in Mac OS X is simply incorrect. The Mac OS X kernel, XNU, contains significant quantities of FreeBSD kernel source code, including a FreeBSD-derived VFS and network stack. Other parts of the kernel, such as the scheduler and VM system, are derived from Mach. While the FreeBSD-derived code has been significantly modified since it was originally forked, a lot of code moves backward and forward between the platforms: the FreeBSD audit subsystem is derived from the Mac OS X audit subsystem, and Mac OS X's smbfs and MAC Framework support are derived from FreeBSD. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 4 16:04:37 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5E4B116A405; Wed, 4 Apr 2007 16:04:37 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4BC0013C45D; Wed, 4 Apr 2007 16:04:37 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 280891A4D8E; Wed, 4 Apr 2007 09:04:37 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 55A65514C3; Wed, 4 Apr 2007 12:04:36 -0400 (EDT) Date: Wed, 4 Apr 2007 12:04:36 -0400 From: Kris Kennaway To: Danny Braniss Message-ID: <20070404160436.GA59964@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: diskless/rm causing deadlock? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 16:04:37 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 04, 2007 at 11:55:10AM +0300, Danny Braniss wrote: > I stumbled on this in -current, but it's also true for 6.2. > /(root) is mounted diskless, doing rm of a file in /, even as a lowly mor= tal > will hang the network, and hence everything. > on a 6.1 system, it works as expected. >=20 > badwolf> rm /usr/ports > rm: /usr/ports: Read-only file system >=20 > i'll try to hunt this down, but some pointers where to start might be > helpfull Start with a tcpdump of network traffic. CC mohans@ :) I have seen something similar myself, but have not yet tracked it down. Kris --opJtzjQTFsWo+cga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGE8yTWry0BWjoQKURAvG9AJsHKNCCi8AV9KVQMCrSFidbWiNjCwCgjfV7 KILfBeVETHbPjWKC0uBd7qY= =2jSw -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga-- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 4 17:47:59 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D8BC716A406 for ; Wed, 4 Apr 2007 17:47:59 +0000 (UTC) (envelope-from zombyfork@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.233]) by mx1.freebsd.org (Postfix) with ESMTP id 4B6E913C458 for ; Wed, 4 Apr 2007 17:47:59 +0000 (UTC) (envelope-from zombyfork@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so231740wra for ; Wed, 04 Apr 2007 10:47:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=F6QuyFN/3NnZ2Ej0FzMt2EPcqmspTKTMpCvGrZcP4t7sssrDaQWDXQ8GwNinvTtUEYw3F4W6DiBFKCRMMJggXUUwKnknjNCNu/9ENf5AYBO3q/I4JEe8CsqAGSwz9+dR4QNvtdBXZ31mFaNiDLJJGnWZLfHGXxDbE4KnrsuasIE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=N63kwL+tMJ0DqSIIhfgnvFvbJf8KRA6CuslwWef7vYCshhvE6aWVwxYEGzzySNoMD9TROYszjfvmWKE8o6GwTbbRLi8mt3G/Fekyd46RX7iZ+PtyWYpGSZwz5UanGKFQruW4nCzbkAzIlaFmMyUZqWMWNl5I2ox0bO7WxLYXpi0= Received: by 10.115.33.1 with SMTP id l1mr366607waj.1175708877532; Wed, 04 Apr 2007 10:47:57 -0700 (PDT) Received: by 10.115.15.4 with HTTP; Wed, 4 Apr 2007 10:47:57 -0700 (PDT) Message-ID: <346a80220704041047m210eb788h4f1d9aebcde3e99e@mail.gmail.com> Date: Wed, 4 Apr 2007 11:47:57 -0600 From: "Coleman Kane" To: "Robert Watson" In-Reply-To: <20070404153559.Y18288@fledge.watson.org> MIME-Version: 1.0 References: <20070404130249.GA41671@kukulies.org> <17939.44784.420806.421633@bhuda.mired.org> <20070404153559.Y18288@fledge.watson.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: Re: Mac OS underlying FreeBSD - does it run Linux emulation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cokane@cokane.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 17:48:00 -0000 On 4/4/07, Robert Watson wrote: > > > On Wed, 4 Apr 2007, Mike Meyer wrote: > > > In <20070404130249.GA41671@kukulies.org>, Christoph P. Kukulies < > kuku@kukulies.org> typed: > >> does anyone know whether one can run Linux applications under the > underlying > >> FreeBSD of the MAC OS (on an Intel Core Duo mini Mac)? > > > > No, you can't. The "underlying" FreeBSD is userland code; not kernel > code. > > The OSX kernel is based on Mach. > > While it's true you can't run Linux binaries on Mac OS X, it's not for the > reason you're suggesting, and your statement regarding FreeBSD kernel code > in > Mac OS X is simply incorrect. The Mac OS X kernel, XNU, contains > significant > quantities of FreeBSD kernel source code, including a FreeBSD-derived VFS > and > network stack. Other parts of the kernel, such as the scheduler and VM > system, are derived from Mach. While the FreeBSD-derived code has been > significantly modified since it was originally forked, a lot of code moves > backward and forward between the platforms: the FreeBSD audit subsystem is > derived from the Mac OS X audit subsystem, and Mac OS X's smbfs and MAC > Framework support are derived from FreeBSD. > > Robert N M Watson > Computer Laboratory > University of Cambridge In addition to this, there have been examples of the Linux kernel hosted by Mach in the past (such as MkLinux). From my understanding, the only thing that prevents this from being realized is that nobody has sat down to actually write/port the code to do it. -- Coleman Kane From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 07:50:40 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1227616A401 for ; Thu, 5 Apr 2007 07:50:40 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.freebsd.org (Postfix) with ESMTP id C65F913C44C for ; Thu, 5 Apr 2007 07:50:39 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.13.8/8.13.8) with ESMTP id l357CfZ2075725 for ; Thu, 5 Apr 2007 03:12:41 -0400 (EDT) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: freebsd-hackers@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-0d2p97g5INxa84DmiEQ0" Organization: FreeBSD, Inc. Date: Thu, 05 Apr 2007 03:12:20 -0400 Message-Id: <1175757140.67579.50.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Cc: Subject: Problem with test(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 07:50:40 -0000 --=-0d2p97g5INxa84DmiEQ0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I noticed something weird with test(1) when I ran across a problem port Makefile. Our test(1) doesn't properly check to make sure there is an operand argument to unary operators like -f. For example: test -f Will print "TRUE" on FreeBSD. On Solaris, it will die: /usr/bin/test[8]: test: argument expected I think this patch is correct in that it does fix the problem, and the TEST.sh and TEST.csh regression scripts report the same results pre and post-patch. Comments? http://www.marcuscom.com/downloads/text.c.diff Joe --=20 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-0d2p97g5INxa84DmiEQ0 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGFKFUb2iPiv4Uz4cRAnwgAJ0UCyafuPl+bJXC9bEb2J5S7fGyfwCeKqkS taxT5HQGwJDbYz7auoxFLbs= =pQwD -----END PGP SIGNATURE----- --=-0d2p97g5INxa84DmiEQ0-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 09:03:00 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A857B16A402 for ; Thu, 5 Apr 2007 09:03:00 +0000 (UTC) (envelope-from nkoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.freebsd.org (Postfix) with ESMTP id 6846113C44C for ; Thu, 5 Apr 2007 09:03:00 +0000 (UTC) (envelope-from nkoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id 947BB13C185 for ; Thu, 5 Apr 2007 11:02:56 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15988-03 for ; Thu, 5 Apr 2007 11:02:50 +0200 (CEST) Received: from firewall.demig (p5083975F.dip0.t-ipconnect.de [80.131.151.95]) by server.absolute-media.de (Postfix) with ESMTP id 092D9133883 for ; Thu, 5 Apr 2007 11:02:49 +0200 (CEST) Received: from [192.168.1.72] (ws-ew-3.demig.intra [192.168.1.72]) by firewall.demig (8.14.0/8.14.0) with ESMTP id l358wfV5053373 for ; Thu, 5 Apr 2007 10:58:41 +0200 (CEST) (envelope-from nkoch@demig.de) Message-ID: <4614BA41.7080902@demig.de> Date: Thu, 05 Apr 2007 08:58:41 +0000 From: Norbert Koch Organization: demig Prozessautomatisierung GmbH User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at absolute-media.de Cc: Subject: gdb macros xp and xxp X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 09:03:00 -0000 Hello, for learning about gdb macros I looked through gdbinit-1.i386. ( or is there some secret gdb manual that *explains* macros? :-) The macros xp and xxp calculate the number of possible arguments as: ((*(int*)$ebp)-(int)$ebp)/4-4 Let's see (assuming "char* ebp"): *ebp : saved ebp from previous frame *(ebp+4) : saved eip *(ebp+8): first parameter (if any) *((*ebp)-4): saved register or local variable from previous frame Right? What I do not understand is the subtraction of 4 (I expected 2). When disassembling through different portions of the kernel code and userland programs, I found pushing of none up to three extra register (ebx, esi, ebp). But that depends heavyly on compiler options, doesn't it? So, is it just a guess that there are two register variables or am I missing something? Any comments? Norbert From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 09:19:04 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 302F416A405 for ; Thu, 5 Apr 2007 09:19:04 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id D4A8913C487 for ; Thu, 5 Apr 2007 09:19:03 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 5354A46F34; Thu, 5 Apr 2007 05:19:03 -0400 (EDT) Date: Thu, 5 Apr 2007 10:19:03 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: cokane@cokane.org In-Reply-To: <346a80220704041047m210eb788h4f1d9aebcde3e99e@mail.gmail.com> Message-ID: <20070405101628.N1092@fledge.watson.org> References: <20070404130249.GA41671@kukulies.org> <17939.44784.420806.421633@bhuda.mired.org> <20070404153559.Y18288@fledge.watson.org> <346a80220704041047m210eb788h4f1d9aebcde3e99e@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: Re: Mac OS underlying FreeBSD - does it run Linux emulation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 09:19:04 -0000 On Wed, 4 Apr 2007, Coleman Kane wrote: >> While it's true you can't run Linux binaries on Mac OS X, it's not for the >> reason you're suggesting, and your statement regarding FreeBSD kernel code >> in Mac OS X is simply incorrect. The Mac OS X kernel, XNU, contains >> significant quantities of FreeBSD kernel source code, including a >> FreeBSD-derived VFS and network stack. Other parts of the kernel, such as >> the scheduler and VM system, are derived from Mach. While the >> FreeBSD-derived code has been significantly modified since it was >> originally forked, a lot of code moves backward and forward between the >> platforms: the FreeBSD audit subsystem is derived from the Mac OS X audit >> subsystem, and Mac OS X's smbfs and MAC Framework support are derived from >> FreeBSD. > > In addition to this, there have been examples of the Linux kernel hosted by > Mach in the past (such as MkLinux). From my understanding, the only thing > that prevents this from being realized is that nobody has sat down to > actually write/port the code to do it. I'm not familiar with the structural layout of MkLinux, but I would caution those looking at XNU to be aware that the kernel is a monolothic kernel, in which the BSD and IOKit parts run directly in the kernel address space managed by Mach, and not as tasks over Mach. If MkLinux runs Linux in a task under the microkernel, then the structures are quite different. Mach provides quite nice interfaces for implementation virtualization services, however, as Mach VM, thread, and task interfaces give applications a lot of control in setting up memory and trap handling -- much more so than the UNIX equivilents. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 09:35:54 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7C29D16A401 for ; Thu, 5 Apr 2007 09:35:54 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id C904F13C465 for ; Thu, 5 Apr 2007 09:35:53 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ug-out-1314.google.com with SMTP id 71so974149ugh for ; Thu, 05 Apr 2007 02:35:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=ZYYOrWr7ALbn69A+IE24IIAQj9IFIroW8yGbq+rerPptsaZJNu0a9Qw0hlLbC+niC9oWzzbjHglyvKBIMmd0bTmJrV0yLzG2ZZhsF35SxAskmisPGAicSIc80sdu3VVAp0UMZS7fASWYmCqRPvqONd0uLgxZ8euWLwjb1dXa2KM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=H3TykaYnw8GFMs9566yoU/doO7N474MZH3DMSVsil3AscH1mQddx6TyiWn8gn0aPa/5+W6NbIi8akY/0kgL9CQ1so7dIctsnecBCoDMXlbxn7X4+50cpoGnPGm4X49Hsa8vjQUca0hTAuF2SgoR8OwtrbshARGmNXSFOSCXpfBU= Received: by 10.67.27.15 with SMTP id e15mr2070481ugj.1175763996104; Thu, 05 Apr 2007 02:06:36 -0700 (PDT) Received: from ?127.0.0.1? ( [213.206.147.185]) by mx.google.com with ESMTP id s1sm2705462uge.2007.04.05.02.06.35; Thu, 05 Apr 2007 02:06:35 -0700 (PDT) From: Tom Evans To: Joe Marcus Clarke In-Reply-To: <1175757140.67579.50.camel@shumai.marcuscom.com> References: <1175757140.67579.50.camel@shumai.marcuscom.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-px0LSbLvCzhOS5+eUJbj" Date: Thu, 05 Apr 2007 10:06:33 +0100 Message-Id: <1175763993.1318.23.camel@zoot.mintel.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Cc: freebsd-hackers@FreeBSD.org Subject: Re: Problem with test(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 09:35:54 -0000 --=-px0LSbLvCzhOS5+eUJbj Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2007-04-05 at 03:12 -0400, Joe Marcus Clarke wrote: > I noticed something weird with test(1) when I ran across a problem port > Makefile. Our test(1) doesn't properly check to make sure there is an > operand argument to unary operators like -f. For example: >=20 > test -f >=20 > Will print "TRUE" on FreeBSD. On Solaris, it will die: >=20 > /usr/bin/test[8]: test: argument expected >=20 > I think this patch is correct in that it does fix the problem, and the > TEST.sh and TEST.csh regression scripts report the same results pre and > post-patch. Comments? >=20 > http://www.marcuscom.com/downloads/text.c.diff >=20 > Joe >=20 He means http://www.marcuscom.com/downloads/test.c.diff --=-px0LSbLvCzhOS5+eUJbj Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQBGFLwZlcRvFfyds/cRAvkPAJ9oCayA5cR516wtz0xfvsac79OnnQCgn2b1 5LvQhbm+WuW38c/SC8hmcwI= =C1QJ -----END PGP SIGNATURE----- --=-px0LSbLvCzhOS5+eUJbj-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 06:50:40 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47D0116A401 for ; Thu, 5 Apr 2007 06:50:40 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.freebsd.org (Postfix) with ESMTP id 08C5A13C43E for ; Thu, 5 Apr 2007 06:50:39 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.13.8/8.13.8) with ESMTP id l356VH8C075162 for ; Thu, 5 Apr 2007 02:31:17 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: freebsd-hackers@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-k00fuJWJgiqlU69TYR/u" Organization: MarcusCom, Inc. Date: Thu, 05 Apr 2007 02:30:55 -0400 Message-Id: <1175754655.67579.41.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port X-Mailman-Approved-At: Thu, 05 Apr 2007 11:24:59 +0000 Subject: Problem with test(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 06:50:40 -0000 --=-k00fuJWJgiqlU69TYR/u Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I noticed something weird with test(1) when I ran across a problem port Makefile. Our test(1) doesn't properly check to make sure there is an operand argument to unary operators like -f. For example: test -f Will print "TRUE" on FreeBSD. On Solaris, it will die: /usr/bin/test[8]: test: argument expected I think this patch is correct in that it does fix the problem, and the TEST.sh and TEST.csh regression scripts report the same results pre and post-patch. Comments? http://www.marcuscom.com/downloads/text.c.diff Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-k00fuJWJgiqlU69TYR/u Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGFJecb2iPiv4Uz4cRAhGqAJoDKjCVYO7bCiQtkG5pC474HnAczQCgkedv zlg6DX2CGLAS7I/zCBdNZUQ= =Dj/L -----END PGP SIGNATURE----- --=-k00fuJWJgiqlU69TYR/u-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 15:08:23 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F62716A401 for ; Thu, 5 Apr 2007 15:08:23 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id D9DF613C480 for ; Thu, 5 Apr 2007 15:08:12 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan@localhost [127.0.0.1]) by dan.emsphone.com (8.14.0/8.13.8) with ESMTP id l35F86rw040129 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 5 Apr 2007 10:08:06 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.0/8.14.0/Submit) id l35F864Y040119; Thu, 5 Apr 2007 10:08:06 -0500 (CDT) (envelope-from dan) Date: Thu, 5 Apr 2007 10:08:06 -0500 From: Dan Nelson To: Joe Marcus Clarke Message-ID: <20070405150806.GD45237@dan.emsphone.com> References: <1175757140.67579.50.camel@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1175757140.67579.50.camel@shumai.marcuscom.com> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.14 (2007-02-12) Cc: freebsd-hackers@freebsd.org Subject: Re: Problem with test(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 15:08:23 -0000 In the last episode (Apr 05), Joe Marcus Clarke said: > I noticed something weird with test(1) when I ran across a problem port > Makefile. Our test(1) doesn't properly check to make sure there is an > operand argument to unary operators like -f. For example: > > test -f > > Will print "TRUE" on FreeBSD. On Solaris, it will die: > > /usr/bin/test[8]: test: argument expected > > I think this patch is correct in that it does fix the problem, and the > TEST.sh and TEST.csh regression scripts report the same results pre and > post-patch. Comments? If you follow POSIX's description of test, FreeBSD's current behaviour is valid and Solaris isn't: http://www.opengroup.org/onlinepubs/009695399/utilities/test.html The algorithm for determining the precedence of the operators and the return value that shall be generated is based on the number of arguments presented to test. (However, when using the "[...]" form, the right-bracket final argument shall not be counted in this algorithm.) In the following list, $1, $2, $3, and $4 represent the arguments presented to test: 0 arguments: Exit false (1). 1 argument: Exit true (0) if $1 is not null; otherwise, exit false. ... Unary operators shouldn't get parsed as such unless there are two arguments. > http://www.marcuscom.com/downloads/test.c.diff -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 17:00:10 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7AB1516A401 for ; Thu, 5 Apr 2007 17:00:10 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2FC1B13C44C for ; Thu, 5 Apr 2007 17:00:10 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 3490420F1; Thu, 5 Apr 2007 19:00:03 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id BAFA620B7; Thu, 5 Apr 2007 18:59:59 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 8A606A10C0; Wed, 4 Apr 2007 09:49:04 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: "Kevin Sanders" References: <375baf50704031651p594e82e7y9f3d9c099f5d8268@mail.gmail.com> Date: Wed, 04 Apr 2007 09:49:03 +0200 In-Reply-To: <375baf50704031651p594e82e7y9f3d9c099f5d8268@mail.gmail.com> (Kevin Sanders's message of "Tue, 3 Apr 2007 16:51:09 -0700") Message-ID: <86k5wsinps.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: kqueue (9) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 17:00:10 -0000 "Kevin Sanders" writes: > I'm trying to gain a better understanding of how kqueue's work from the > driver side. I've managed to glean enough information from the source of > other drivers, but I'm having a problem in my own kernel module when it is > unloaded. Specifically, when my module is unloaded and there are user > programs that have kqueue's with open descriptors from my driver in them,= I > don't know how to close things down from the driver side. Any advice or > links would be appreciated. Thanks in advance. This is usually handled by refusing to unload the module if it still as active consumers. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 20:47:11 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC23A16A401 for ; Thu, 5 Apr 2007 20:47:11 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id B82E713C458 for ; Thu, 5 Apr 2007 20:47:11 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l35KlBNm032689 for ; Thu, 5 Apr 2007 16:47:11 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id l35KlAVL060615 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 5 Apr 2007 16:47:10 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200704052047.l35KlAVL060615@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Thu, 05 Apr 2007 16:47:13 -0400 To: freebsd-hackers@freebsd.org From: Mike Tancsa Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: fixing IRQ storms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 20:47:11 -0000 Using http://lists.freebsd.org/pipermail/freebsd-bugs/2007-March/022753.html I have been able to get my GPRS card to be recognized in FreeBSD. However, the IRQ it has picked, seems to conflict with the irq of the cardbus causing an interrupt storm. Is there a way to make the card use a different IRQ ? I tried ORing in PCCARD_CFE_IRQSHARE, but it doesnt seem to make a difference. The quirks entry shows from the above PR is and I tried adding in PCCARD_CFE_IRQSHARE without luck. It always goes to irq 10 and it always causes a storm. Any ideas how to fix it ? Thanks for any pointers! static struct pccard_config_entry pccard_sierra_a555_func1_cfe0 = { 0x22, /* cfe number */ PCCARD_CFE_IO8 | PCCARD_CFE_IRQLEVEL, PCCARD_IFTYPE_IO, 1, /* num_iospace */ 0, /* iomask */ { { 0x0008, 0x3e8 } }, /* iospace */ 0x3fbc, /* irqmask */ 0, /* num_memspace */ { }, /* memspace */ 0, /* maxtwins */ }; Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Enhanced Am486DX4/Am5x86 Write-Back (486-class CPU) Origin = "AuthenticAMD" Id = 0x494 Stepping = 4 Features=0x1 real memory = 67108864 (64 MB) avail memory = 60379136 (57 MB) cpu0 on motherboard sysctl machdep.i8254_freq=1189161 returns 0 Timecounter "ELAN" frequency 8333333 Hz quality 1000 pcib0: pcibus 0 on motherboard pci0: on pcib0 cbb0: mem 0xa0000000-0xa0000fff irq 10 at device 9.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 sis0: port 0xe100-0xe1ff mem 0xa0001000-0xa0001fff irq 11 at device 18.0 on pci0 sis0: Silicon Revision: DP83816A miibus0: on sis0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sis0: Ethernet address: 00:00:24:c5:75:10 sis1: port 0xe200-0xe2ff mem 0xa0002000-0xa0002fff irq 5 at device 19.0 on pci0 sis1: Silicon Revision: DP83816A miibus1: on sis1 ukphy1: on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sis1: Ethernet address: 00:00:24:c5:75:11 isa0: on motherboard orm0: at iomem 0xc8000-0xd0fff on isa0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1 at port 0x170-0x177,0x376 irq 15 on isa0 uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 uart0: console (19200,n,8,1) Timecounters tick every 1.000 msec Elan-mmcr driver: MMCR at 0xc5b71000. Elan-mmcr Soekris net45xx comBIOS ver. 1.28 20050527 Copyright (C) 2000-2005 uart2: at port 0x3e8-0x3ef irq 10 function 1 config 34 on pccard0 Interrupt storm detected on "irq10:"; throttling interrupt source ad0: 977MB at ata0-master PIO4 % vmstat -i interrupt total rate irq0: clk 151537 996 irq4: uart0 288 1 irq8: rtc 19395 127 irq10: cbb0 uart2 134314 883 irq11: sis0 192 1 irq14: ata0 16891 111 Total 322617 2122 ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 23:21:18 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A37C16A406 for ; Thu, 5 Apr 2007 23:21:18 +0000 (UTC) (envelope-from cihan@akademi.enderunix.org) Received: from istanbul.enderunix.org (freefall.marmara.edu.tr [193.140.143.23]) by mx1.freebsd.org (Postfix) with ESMTP id 1986B13C44B for ; Thu, 5 Apr 2007 23:21:16 +0000 (UTC) (envelope-from cihan@akademi.enderunix.org) Received: (qmail 27232 invoked by uid 89); 5 Apr 2007 22:53:56 -0000 Message-ID: <20070405225355.27230.qmail@istanbul.enderunix.org> From: "cihan" To: freebsd-hackers@freebsd.org Date: Fri, 06 Apr 2007 01:53:54 +0300 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-9" Content-Transfer-Encoding: 8bit X-SpamTest-Envelope-From: cihan@akademi.enderunix.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 918 [Apr 04 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-SPF: unknown X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Subject: gcc plain binary format X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 23:21:18 -0000 Hi all How can I convert c source code to plain binary file? gcc -s -o foo.S foo.c as -o foo.o foo.S ld -Ttext 0x0 -e main -s --oformat binary -o foo.bin foo.o But I give linker error like a "undefined reference to putchar" then I tried ld -Ttext 0x0 -e main -s --oformat binary -o foo.bin foo.o -lc It give me this error "/usr/lib/libc.so: could not read symbols: invalid operation" Cihan Kömeçoğlu Enderunix Edu ST www.enderunix.org From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 6 01:42:43 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A4BB216A402 for ; Fri, 6 Apr 2007 01:42:43 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 3707113C469 for ; Fri, 6 Apr 2007 01:42:43 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l361gbeT070454; Fri, 6 Apr 2007 11:42:37 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l361gadg070453; Fri, 6 Apr 2007 11:42:36 +1000 (EST) (envelope-from peter) Date: Fri, 6 Apr 2007 11:42:36 +1000 From: Peter Jeremy To: cihan Message-ID: <20070406014236.GD842@turion.vk2pj.dyndns.org> References: <20070405225355.27230.qmail@istanbul.enderunix.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hQiwHBbRI9kgIhsi" Content-Disposition: inline In-Reply-To: <20070405225355.27230.qmail@istanbul.enderunix.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.14 (2007-02-12) Cc: freebsd-hackers@freebsd.org Subject: Re: gcc plain binary format X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 01:42:43 -0000 --hQiwHBbRI9kgIhsi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Apr-06 01:53:54 +0300, cihan wrote: >How can I convert c source code to plain binary file? What do you mean by "plain binary"? From the context, it looks like you want some sort of stand-alone executable but you don't say how you intend to run it. >But I give linker error like a "undefined reference to putchar" This implies that you have a reference to putchar() in foo.c - you will need to provide an implementation of it and the implementation will (of necessity) require knowledge of the execution environment. >ld -Ttext 0x0 -e main -s --oformat binary -o foo.bin foo.o -lc This won't work because libc in intended to work in an environment hosted on FreeBSD and needs infrastructure that is part of crt*.o Have a look in (eg) /usr/src/sys/boot/i386 for code that is intended to run without the kernel. --=20 Peter Jeremy --hQiwHBbRI9kgIhsi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGFaWM/opHv/APuIcRAvgKAJ9/KkrEpAi+M7FN68pRZei4I07FqQCbBGED rl9vYKzmxquefLALKjduGBs= =iQyt -----END PGP SIGNATURE----- --hQiwHBbRI9kgIhsi-- From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 6 06:22:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3532516A406 for ; Fri, 6 Apr 2007 06:22:29 +0000 (UTC) (envelope-from murat@enderunix.org) Received: from istanbul.enderunix.org (freefall.marmara.edu.tr [193.140.143.23]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4F413C48A for ; Fri, 6 Apr 2007 06:22:28 +0000 (UTC) (envelope-from murat@enderunix.org) Received: (qmail 77011 invoked by uid 1002); 6 Apr 2007 06:15:50 -0000 Date: Fri, 6 Apr 2007 09:15:50 +0300 From: Murat Balaban To: freebsd-hackers@freebsd.org Message-ID: <20070406061550.GA76955@enderunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-SpamTest-Envelope-From: murat@enderunix.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 918 [Apr 04 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-SPF: unknown X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Subject: BSDConTr 2007 Call for Papers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 06:22:29 -0000 First Turkish Conference on BSD Systems (BSDConTR'07) Call for Papers October 20 - 21, 2007 Marmara University, Goztepe Istanbul, Turkey Sponsored by endersys consultancy ltd. (http://www.endersys.com) We're proud to announce the first of Turkish Conference on BSD systems: BSDConTR. Organized in cooperation with Marmara University and EnderUNIX Software Development team, which is largely known as its ongoing support for BSD systems in Turkey, and its open source projects, the conference will be held on October 20th and 21th in Goztepe campus of Marmara University, Istanbul, Turkey. Robert Watson, core team member of FreeBSD project and the founder of TrustedBSD project, will be attending the conference as the guest speaker. During the conference, papers will be presented by various BSD users, developers, and companies. If you would like to submit a paper, you can either choose a topic of your own, or you can choose from one of the following: * Kernel Architecture * Interoperatbility with other Operating Systems * Networking * Embedded systems * Device drivers * Commercial uses (hosting, etc.) * Spam Prevention with BSDs * Ports collection * Desktop * Performance Tuning * Security * Programming * E-commerce * Applications of BSD systems on "E-devlet" projects * System Administration * Raid and high-volume storage * High-performance networking * Mass Installation * Cryptography These are just some of the areas that the organization committee would like to see discussed, although any topics relevant to BSD or the community in general are more than welcome. If you are interested in submitting a paper, please contact papers at bsdcontr.org with a brief information about about your paper no later than September 7th, 2007. More up to date information about the conference will always be available through the conference web site at http://www.bsdcontr.org. Best regards, Organization comittee http://www.bsdcontr.org/ http://www.enderunix.org/ -- Murat http://www.enderunix.org/murat/ From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 6 06:37:33 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8D6116A404 for ; Fri, 6 Apr 2007 06:37:33 +0000 (UTC) (envelope-from murat@enderunix.org) Received: from istanbul.enderunix.org (freefall.marmara.edu.tr [193.140.143.23]) by mx1.freebsd.org (Postfix) with ESMTP id 13A5313C46C for ; Fri, 6 Apr 2007 06:37:32 +0000 (UTC) (envelope-from murat@enderunix.org) Received: (qmail 76800 invoked by uid 1002); 6 Apr 2007 06:10:14 -0000 Date: Fri, 6 Apr 2007 09:10:14 +0300 From: Murat Balaban To: freebsd-questions@freebsd.org Message-ID: <20070406061014.GA75191@enderunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-SpamTest-Envelope-From: murat@enderunix.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 918 [Apr 04 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-SPF: unknown X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: freebsd-hackers@freebsd.org Subject: BSDConTR'07 Call for Papers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 06:37:33 -0000 First Turkish Conference on BSD Systems (BSDConTR'07) Call for Papers October 20 - 21, 2007 Marmara University, Goztepe Istanbul, Turkey Sponsored by endersys Consultancy Ltd. (http://www.endersys.com) We're proud to announce the first Turkish Conference on BSD systems: BSDConTR. Organized in cooperation with Marmara University and EnderUNIX Software Development team, which is largely known as its ongoing support for BSD systems in Turkey, and its open source projects, the conference will be held on October 20-21, 2007 in Goztepe campus of Marmara University, Istanbul, Turkey. FreeBSD core team member Robert Watson will be attending the conference as guest speaker. During the conference, papers will be presented by various BSD users, developers, and companies. If you would like to submit a paper, you can either choose a topic of your own, or you can choose from one of the following: - Kernel Architecture - Interoperatbility with other Operating Systems - Networking - Embedded systems - Device drivers - Commercial uses (hosting, etc.) - Spam Prevention with BSDs - Ports collection - Desktop - Performance Tuning - Security - Programming - E-commerce - Applications of BSD systems on "E-devlet" projects - System Administration - Raid and high-volume storage - High-performance - Mass Installation - Networking - Cryptography These are just some of the areas that the organization committee would like to see discussed, although any topics relevant to BSD or the community in general are more than welcome. More up-to-date information is always available from the conference website: http://www.bsdcontr.org If you are interested in submitting a paper, please contact papers at bsdcontr.org with a brief information about about your paper no later than September 7th, 2007. Best regards, Organization comittee http://www.bsdcontr.org http://www.enderunix.org -- Murat http://www.enderunix.org/murat/ From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 6 11:30:57 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 557F516A403 for ; Fri, 6 Apr 2007 11:30:57 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 203BE13C45D for ; Fri, 6 Apr 2007 11:30:56 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l36BUuUp084145 for ; Fri, 6 Apr 2007 07:30:56 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id l36BUtjW064328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 6 Apr 2007 07:30:56 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200704061130.l36BUtjW064328@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Fri, 06 Apr 2007 07:31:00 -0400 To: freebsd-hackers@freebsd.org From: Mike Tancsa In-Reply-To: <7.1.0.9.0.20070405163059.16b8a220@sentex.net> References: <7.1.0.9.0.20070405163059.16b8a220@sentex.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: fixing IRQ storms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 11:30:57 -0000 At 04:47 PM 4/5/2007, Mike Tancsa wrote: >Using >http://lists.freebsd.org/pipermail/freebsd-bugs/2007-March/022753.html > Tried with sio, but the card is not usable due to all the overflows. (e.g. just ati3 and only part of the info gets displayed) isa0: on motherboard orm0: at iomem 0xc8000-0xd0fff on isa0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1 at port 0x170-0x177,0x376 irq 15 on isa0 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A, console Timecounters tick every 1.000 msec Elan-mmcr driver: MMCR at 0xc5b71000. Elan-mmcr Soekris net45xx comBIOS ver. 1.28 20050527 Copyright (C) 2000-2005 sio2: at port 0x3e8-0x3ef irq 10 function 1 config 34 on pccard0 sio2: type 16550A sio2: unable to activate interrupt in fast mode - using normal mode ad0: 977MB at ata0-master PIO4 Trying to mount root from ufs:/dev/ad0s1a sio2: 1 more interrupt-level buffer overflow (total 1) sio2: 108 more interrupt-level buffer overflows (total 109) sio2: 108 more interrupt-level buffer overflows (total 217) sio2: 108 more interrupt-level buffer overflows (total 325) sio2: 109 more interrupt-level buffer overflows (total 434) ---Mike >-------------------------------------------------------------------- >Mike Tancsa, tel +1 519 651 3400 >Sentex Communications, mike@sentex.net >Providing Internet since 1994 www.sentex.net >Cambridge, Ontario Canada www.sentex.net/mike From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 6 12:28:21 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17E9016A401 for ; Fri, 6 Apr 2007 12:28:21 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id D763313C45A for ; Fri, 6 Apr 2007 12:28:20 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l36CSKRb087246; Fri, 6 Apr 2007 08:28:20 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id l36CSJ8Z064543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Apr 2007 08:28:19 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200704061228.l36CSJ8Z064543@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Fri, 06 Apr 2007 08:28:23 -0400 To: Volker From: Mike Tancsa In-Reply-To: <46163987.4010409@vwsoft.com> References: <7.1.0.9.0.20070405163059.16b8a220@sentex.net> <200704061130.l36BUtjW064328@lava.sentex.ca> <46163987.4010409@vwsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Re: fixing IRQ storms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 12:28:21 -0000 At 08:13 AM 4/6/2007, Volker wrote: >Mike, > >have a look at GNAT: http://www.freebsd.org/cgi/query-pr.cgi?pr=51982 > >You need to patch your kernel sources a bit (all info in the PR) and >your silo overflows will be gone. I've done that to get a Merlin >U630 working (w/o patching sio.c the card was almost unusable). Hi, Thanks for the note. Actually, I have done this in the past (I am even in the above PR :)), but I had found using the UART driver instead of sio was better for working around such issues on the whole. The overflow rate is so high in the case, even increasing the ticks by 10 doesnt seem to fix the issue. It seems to reduce the overflows a bit, but nowhere nearly enough sio2: 108 more interrupt-level buffer overflows (total 108) sio2: 81 more interrupt-level buffer overflows (total 189) sio2: 108 more interrupt-level buffer overflows (total 297) sio2: 81 more interrupt-level buffer overflows (total 378) sio2: 33 more interrupt-level buffer overflows (total 411) sio2: 76 more interrupt-level buffer overflows (total 487) With the uart driver, I am able to talk to the modem OK, but the cpu is really high dealing with all those interrupts. I was hoping I could just tell the card to use a different interrupt like 5 which is available, but I dont know how to do that, or if its even possible. ---Mike From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 6 12:42:18 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85A9A16A403 for ; Fri, 6 Apr 2007 12:42:18 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id 2030D13C469 for ; Fri, 6 Apr 2007 12:42:17 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (Q7d21.q.ppp-pool.de [89.53.125.33]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id CA80F128829; Fri, 6 Apr 2007 14:14:28 +0200 (CEST) Received: from [192.168.16.3] (cesar.sz.vwsoft.com [192.168.16.3]) by mail.vtec.ipme.de (Postfix) with ESMTP id A55A93F9E1; Fri, 6 Apr 2007 14:14:03 +0200 (CEST) Message-ID: <46163987.4010409@vwsoft.com> Date: Fri, 06 Apr 2007 14:13:59 +0200 From: Volker User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: Mike Tancsa References: <7.1.0.9.0.20070405163059.16b8a220@sentex.net> <200704061130.l36BUtjW064328@lava.sentex.ca> In-Reply-To: <200704061130.l36BUtjW064328@lava.sentex.ca> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: freebsd-hackers@freebsd.org Subject: Re: Re: fixing IRQ storms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 12:42:18 -0000 On 12/23/-58 20:59, Mike Tancsa wrote: > At 04:47 PM 4/5/2007, Mike Tancsa wrote: > >> Using >> http://lists.freebsd.org/pipermail/freebsd-bugs/2007-March/022753.html >> > > Tried with sio, but the card is not usable due to all the overflows. > (e.g. just ati3 and only part of the info gets displayed) > > > isa0: on motherboard > orm0: at iomem 0xc8000-0xd0fff on isa0 > ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 > ata1 at port 0x170-0x177,0x376 irq 15 on isa0 > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > sio0: type 16550A, console > Timecounters tick every 1.000 msec > Elan-mmcr driver: MMCR at 0xc5b71000. > Elan-mmcr Soekris net45xx comBIOS ver. 1.28 20050527 Copyright (C) > 2000-2005 > sio2: at port 0x3e8-0x3ef irq 10 function 1 > config 34 on pccard0 > sio2: type 16550A > sio2: unable to activate interrupt in fast mode - using normal mode > ad0: 977MB at ata0-master PIO4 > Trying to mount root from ufs:/dev/ad0s1a > sio2: 1 more interrupt-level buffer overflow (total 1) > sio2: 108 more interrupt-level buffer overflows (total 109) > sio2: 108 more interrupt-level buffer overflows (total 217) > sio2: 108 more interrupt-level buffer overflows (total 325) > sio2: 109 more interrupt-level buffer overflows (total 434) Mike, have a look at GNAT: http://www.freebsd.org/cgi/query-pr.cgi?pr=51982 You need to patch your kernel sources a bit (all info in the PR) and your silo overflows will be gone. I've done that to get a Merlin U630 working (w/o patching sio.c the card was almost unusable). HTH, Volker From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 6 13:50:26 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4401016A402 for ; Fri, 6 Apr 2007 13:50:26 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id D2BAF13C448 for ; Fri, 6 Apr 2007 13:50:25 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (Q7d21.q.ppp-pool.de [89.53.125.33]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id D2827128829; Fri, 6 Apr 2007 15:50:18 +0200 (CEST) Received: from [192.168.16.3] (cesar.sz.vwsoft.com [192.168.16.3]) by mail.vtec.ipme.de (Postfix) with ESMTP id CE1FD3F9E7; Fri, 6 Apr 2007 15:49:57 +0200 (CEST) Message-ID: <46165003.4070901@vwsoft.com> Date: Fri, 06 Apr 2007 15:49:55 +0200 From: Volker User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: Mike Tancsa References: <7.1.0.9.0.20070405163059.16b8a220@sentex.net> <200704061130.l36BUtjW064328@lava.sentex.ca> <46163987.4010409@vwsoft.com> <200704061228.l36CSJ8Z064543@lava.sentex.ca> In-Reply-To: <200704061228.l36CSJ8Z064543@lava.sentex.ca> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: freebsd-hackers@freebsd.org Subject: Re: fixing IRQ storms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 13:50:26 -0000 On 04/06/07 14:28, Mike Tancsa wrote: > At 08:13 AM 4/6/2007, Volker wrote: > >> Mike, >> >> have a look at GNAT: http://www.freebsd.org/cgi/query-pr.cgi?pr=51982 >> >> You need to patch your kernel sources a bit (all info in the PR) and >> your silo overflows will be gone. I've done that to get a Merlin >> U630 working (w/o patching sio.c the card was almost unusable). > > Hi, > Thanks for the note. Actually, I have done this in the past (I > am even in the above PR :)), but I had found using the UART driver > instead of sio was better for working around such issues on the whole. > The overflow rate is so high in the case, even increasing the ticks by > 10 doesnt seem to fix the issue. It seems to reduce the overflows a bit, > but nowhere nearly enough > > sio2: 108 more interrupt-level buffer overflows (total 108) > sio2: 81 more interrupt-level buffer overflows (total 189) > sio2: 108 more interrupt-level buffer overflows (total 297) > sio2: 81 more interrupt-level buffer overflows (total 378) > sio2: 33 more interrupt-level buffer overflows (total 411) > sio2: 76 more interrupt-level buffer overflows (total 487) > > With the uart driver, I am able to talk to the modem OK, but the cpu is > really high dealing with all those interrupts. > > I was hoping I could just tell the card to use a different interrupt > like 5 which is available, but I dont know how to do that, or if its > even possible. > > ---Mike Mike, I've played with uart(4) a while (~6mo?) back (for use with a Merlin 3G/GPRS card) and had even more trouble. Unfortunately I can't remember what errors I was experiencing with but I've had a short conversation with the uart maintainer. If my memories are right, the maintainer stated it will take some time to fix the uart problems. Haven't tried that since. But IMO the design of uart is definitely cleaner compared to sio. HTH, Volker From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 6 15:41:00 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 25ED816A401 for ; Fri, 6 Apr 2007 15:41:00 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.freebsd.org (Postfix) with ESMTP id C056C13C448 for ; Fri, 6 Apr 2007 15:40:59 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.13.8/8.13.8) with ESMTP id l36FfJn6055194; Fri, 6 Apr 2007 11:41:19 -0400 (EDT) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: Dan Nelson In-Reply-To: <20070405150806.GD45237@dan.emsphone.com> References: <1175757140.67579.50.camel@shumai.marcuscom.com> <20070405150806.GD45237@dan.emsphone.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-EEdqIWOBA920PHn7rpX6" Organization: FreeBSD, Inc. Date: Fri, 06 Apr 2007 11:40:53 -0400 Message-Id: <1175874053.1627.7.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Cc: freebsd-hackers@FreeBSD.org Subject: Re: Problem with test(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 15:41:00 -0000 --=-EEdqIWOBA920PHn7rpX6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2007-04-05 at 10:08 -0500, Dan Nelson wrote: > In the last episode (Apr 05), Joe Marcus Clarke said: > > I noticed something weird with test(1) when I ran across a problem port > > Makefile. Our test(1) doesn't properly check to make sure there is an > > operand argument to unary operators like -f. For example: > >=20 > > test -f > >=20 > > Will print "TRUE" on FreeBSD. On Solaris, it will die: > >=20 > > /usr/bin/test[8]: test: argument expected > >=20 > > I think this patch is correct in that it does fix the problem, and the > > TEST.sh and TEST.csh regression scripts report the same results pre and > > post-patch. Comments? >=20 > If you follow POSIX's description of test, FreeBSD's current behaviour > is valid and Solaris isn't: >=20 > http://www.opengroup.org/onlinepubs/009695399/utilities/test.html >=20 > The algorithm for determining the precedence of the operators and the > return value that shall be generated is based on the number of > arguments presented to test. (However, when using the "[...]" form, > the right-bracket final argument shall not be counted in this > algorithm.) >=20 > In the following list, $1, $2, $3, and $4 represent the arguments > presented to test: >=20 > 0 arguments: > Exit false (1). > 1 argument: > Exit true (0) if $1 is not null; otherwise, exit false. > ... >=20 > Unary operators shouldn't get parsed as such unless there are two > arguments. Thanks for the clarification. Solaris' test(1) man page has the same excerpt yet all of their implementations of test(1) require the argument to the operator. This confused me since the man page also claims that their test(1) is compliant with recent Open Group standards. Joe --=20 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-EEdqIWOBA920PHn7rpX6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGFmoBb2iPiv4Uz4cRAszmAJ9Y6ZCiTwz7Cc2yh2/b7mqDVz1gfgCghcJc UCEEVWDDgOYW2kFUMvS+AXk= =5KQ+ -----END PGP SIGNATURE----- --=-EEdqIWOBA920PHn7rpX6--