From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 04:52:44 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9ED416A4CE for ; Sun, 13 Mar 2005 04:52:44 +0000 (GMT) Received: from mail.praemunio.com (mail.praemunio.com [66.179.47.216]) by mx1.FreeBSD.org (Postfix) with SMTP id 256F543D2D for ; Sun, 13 Mar 2005 04:52:42 +0000 (GMT) (envelope-from frank@knobbe.us) Received: from localhost (HELO mail.knobbe.us) by localhost with SMTP; 12 Mar 2005 22:52:41 -0600 Received: from localhost by localhost with SMTP; 12 Mar 2005 22:52:39 -0600 From: Frank Knobbe To: security@revolutionsp.com In-Reply-To: <51723.81.84.175.77.1107199764.squirrel@81.84.175.77> References: <1107178792.613.22.camel@spirit> <20050131161006.GD60177@obiwan.tataz.chchile.org> <51723.81.84.175.77.1107199764.squirrel@81.84.175.77> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-JZY1N/yPymwwI+kavRMc" Date: Sat, 12 Mar 2005 22:52:37 -0600 Message-Id: <1110689557.890.73.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port cc: freebsd-hackers@freebsd.org Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 04:52:45 -0000 --=-JZY1N/yPymwwI+kavRMc Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2005-01-31 at 13:29 -0600, security@revolutionsp.com wrote: > Very nice idea!! This greatly improves jail management on FreeBSD. There > is a possibility for a minor drawback -- if one can change a system binar= y > in the host system, them all jails are compromised -- but assuming one > would need root access on the host to change the binary, he would have > power to change any jail anyway, so this is rather redundant. Another important drawback is that you can not prune the jail. For example, I prefer to remove "sharp objects" from certain jails for security reasons. There is no need for gcc, ftp and other binaries to reside in a jail when these are not used. These only give an intruder into the jail the tools he needs to bring his scripts in to further hack on the system. If you nullfs these directories, you loose the ability to prune the jail. Pruning is part of system hardening. I'd rather improve the security of a jail than to sacrifice it. Your objectives may differ of course. Cheers, Frank --=-JZY1N/yPymwwI+kavRMc Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCM8cVwBQKb2zelzoRAmRLAKDbNCEz2Zq+Xrl9/6RvCayXXWM2iwCgtIfZ VnFuJY1YkLWKx2d/TzaZIrw= =Aej5 -----END PGP SIGNATURE----- --=-JZY1N/yPymwwI+kavRMc-- From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 07:10:26 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D61E216A4CE for ; Sun, 13 Mar 2005 07:10:26 +0000 (GMT) Received: from nerve.riss-telecom.ru (nerve.riss-telecom.ru [80.66.65.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id B293143D31 for ; Sun, 13 Mar 2005 07:10:25 +0000 (GMT) (envelope-from frol@nerve.riss-telecom.ru) Received: from nerve.riss-telecom.ru (incgji1ewgtv8vaz@localhost [127.0.0.1]) by nerve.riss-telecom.ru (8.13.1/8.13.1) with ESMTP id j2D7B6Fv083784; Sun, 13 Mar 2005 13:11:06 +0600 (NOVT) (envelope-from frol@nerve.riss-telecom.ru) Received: (from frol@localhost) by nerve.riss-telecom.ru (8.13.1/8.13.1/Submit) id j2D7B5vq083783; Sun, 13 Mar 2005 13:11:05 +0600 (NOVT) (envelope-from frol) Date: Sun, 13 Mar 2005 13:11:05 +0600 From: Dmitry Frolov To: Alex Burke Message-ID: <20050313071105.GA83021@nerve.riss-telecom.ru> Mail-Followup-To: Alex Burke , freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: RISS-Telecom, JSC X-PGP-Fingerprint: 5232 98E7 596E 21C2 52B5 FCAE 8088 3F87 88BC 27B0 User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Low level hardware access in FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 07:10:26 -0000 * Alex Burke [13.03.2005 00:13]: > I am just wondering how I can access either BIOS calls, or preferably > registers under FreeBSD? > > I am trying to write a simple system capable of displaying graphics on > the screen, and I am pretty sure I can mmap the VGA memory to my > programs address space. LRMI library (http://sf.net/projects/lrmi) allows You to call VGA real mode routines under VM86 mode on i386 processors. You can also mmap VGA memory into your process space and call VGA BIOS using an x86 emulator, such as x86emu, like XFree86 does. i386_vm86(2) allows You to call VGA interrupt routines. However all of that requires root privileges. > However, to be able to output graphics onto the screen I think I need > to change the state of the VGA registers from text mode (I am guessing > thats what the console driver uses) to graphical mode (of which i know > there exist a couple) - but I think that involves programming > registers and I dont know how to do that under FreeBSD. > > Also, for the FreeBSD console driver to pick the console back up once > it finished working, would I be required to reset the VGA registers > back to text mode? You may want to use VBE to save/restore controller state and set video modes. wbr&w, dmitry. -- Dmitry Frolov RISS-Telecom Network, Novosibirsk, Russia 66415911@ICQ, +7 3832 NO WA1T, DVF-RIPE From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 11:00:47 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A79916A4CE for ; Sun, 13 Mar 2005 11:00:47 +0000 (GMT) Received: from deliver.smtp.vlink.ru (alias.rigel.internal.vlink.ru [217.23.88.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FD2543D62 for ; Sun, 13 Mar 2005 11:00:45 +0000 (GMT) (envelope-from dsh@vlink.ru) Received: from smtp.smtp.vlink.ru (clamav.smtp.vlink.ru [192.168.4.1]) by deliver.smtp.vlink.ru (Postfix) with ESMTP id 53D854574E; Sun, 13 Mar 2005 14:00:43 +0300 (MSK) Received: from neva.vlink.ru (neva.vlink.ru [217.107.252.29]) by smtp.smtp.vlink.ru (Postfix) with ESMTP id 2C75745133; Sun, 13 Mar 2005 14:00:43 +0300 (MSK) Received: from neva.vlink.ru (localhost [127.0.0.1]) by neva.vlink.ru (8.13.3/8.13.3) with ESMTP id j2DB0g2p034879; Sun, 13 Mar 2005 14:00:42 +0300 (MSK) (envelope-from dsh@vlink.ru) Received: (from dsh@localhost) by neva.vlink.ru (8.13.3/8.13.3/Submit) id j2DB0goR034876; Sun, 13 Mar 2005 14:00:42 +0300 (MSK) (envelope-from dsh@vlink.ru) X-Comment-To: Frank Knobbe To: Frank Knobbe References: <1107178792.613.22.camel@spirit> <20050131161006.GD60177@obiwan.tataz.chchile.org> <51723.81.84.175.77.1107199764.squirrel@81.84.175.77> <1110689557.890.73.camel@localhost> From: Denis Shaposhnikov Date: Sun, 13 Mar 2005 14:00:42 +0300 In-Reply-To: <1110689557.890.73.camel@localhost> (Frank Knobbe's message of "Sat, 12 Mar 2005 22:52:37 -0600") Message-ID: <87d5u33j51.fsf@neva.vlink.ru> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV using ClamSMTP cc: freebsd-hackers@freebsd.org cc: security@revolutionsp.com Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 11:00:47 -0000 >>>>> "Frank" == Frank Knobbe writes: Frank> If you nullfs these directories, you loose the ability to Frank> prune the jail. Pruning is part of system hardening. I'd May be it's better to use unionfs, so anybody can replace binaries with their stub version pre jail. -- DSS5-RIPE DSS-RIPN 2:550/5068@fidonet 2:550/5069@fidonet mailto:dsh@vlink.ru http://neva.vlink.ru/~dsh/ From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 11:59:04 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80BD516A4CE for ; Sun, 13 Mar 2005 11:59:04 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id C808B43D1F for ; Sun, 13 Mar 2005 11:59:03 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j2DBwtNU011489; Sun, 13 Mar 2005 11:58:55 GMT Message-ID: <42342C47.209@cis.strath.ac.uk> Date: Sun, 13 Mar 2005 12:04:23 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Denis Shaposhnikov References: <1107178792.613.22.camel@spirit> <20050131161006.GD60177@obiwan.tataz.chchile.org> <51723.81.84.175.77.1107199764.squirrel@81.84.175.77> <1110689557.890.73.camel@localhost> <87d5u33j51.fsf@neva.vlink.ru> In-Reply-To: <87d5u33j51.fsf@neva.vlink.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.9, required 6, autolearn=not spam, BAYES_00 -4.90) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: freebsd-hackers@freebsd.org cc: security@revolutionsp.com cc: Frank Knobbe Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 11:59:04 -0000 Denis Shaposhnikov wrote: >>>>>>"Frank" == Frank Knobbe writes: > > > Frank> If you nullfs these directories, you loose the ability to > Frank> prune the jail. Pruning is part of system hardening. I'd > > May be it's better to use unionfs, so anybody can replace binaries > with their stub version pre jail. > This might be a very stupid idea but how about a jailfs. Now I don't know all that much about filesystem design so bear with me. How about something like this: # ls /usr/jail fulljail smalljail fulljail.conf smalljail.conf # cd /usr/jail/fulljail # ls dev etc home # cat ../fulljail.conf allow-all read-only ignore /dev /etc /usr/home allow read-write /usr/ports/distfiles # cd ../smalljail # ls # cat ../smalljail.conf ignore-all allow read-only /bin /usr/bin allow read-write /usr/home # cd /usr/jail # jail /usr/jail/fulljail fulljail 127.0.0.1 /bin/sh /etc/rc # jexec 1 ls COPYRIGHT boot compat dist etc lib mnt rescue sbin sys usr bin cdrom dev entropy home libexec proc root stand tmp var # jail /usr/jail/smalljail smalljail 127.0.0.1 /bin/sh /home/myhome/specialtask.sh # jexec 2 ls bin usr home # SO the jail filesystem is configured at jail-creation time and uses the hosts files or jail files depending on the configuration. Might have to pass the config file into the jail command. As I said I am not an expert. Mabye one of the experts could let me know what they think? Chris From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 17:13:23 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6AA216A4D0 for ; Sun, 13 Mar 2005 17:13:23 +0000 (GMT) Received: from voodoo.oberon.net (voodoo.oberon.net [212.118.165.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70F7143D5A for ; Sun, 13 Mar 2005 17:13:23 +0000 (GMT) (envelope-from igor@doom.homeunix.org) Received: from dialup84106-136.ip.peterstar.net ([84.204.106.136] helo=doom.homeunix.org) by voodoo.oberon.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50 (FreeBSD)) id 1DAWeV-000PhU-Iy for freebsd-hackers@freebsd.org; Sun, 13 Mar 2005 18:13:26 +0100 Received: from doom.homeunix.org (localhost [127.0.0.1]) by doom.homeunix.org (8.13.3/8.13.3) with ESMTP id j2DHBqhL000575 for ; Sun, 13 Mar 2005 20:12:38 +0300 (MSK) (envelope-from igor@doom.homeunix.org) Received: (from igor@localhost) by doom.homeunix.org (8.13.3/8.13.3/Submit) id j2CIMErB017101 for freebsd-hackers@freebsd.org; Sat, 12 Mar 2005 21:22:14 +0300 (MSK) (envelope-from igor) Date: Sat, 12 Mar 2005 21:22:14 +0300 From: Igor Pokrovsky To: FreeBSD-HACKERS Message-ID: <20050312182214.GA17032@doom.homeunix.org> Mail-Followup-To: FreeBSD-HACKERS References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Subject: Re: Low level hardware access in FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 17:13:23 -0000 On Sat, Mar 12, 2005 at 06:12:19PM +0000, Alex Burke wrote: > Hi, > > I am just wondering how I can access either BIOS calls, or preferably > registers under FreeBSD? > > I am trying to write a simple system capable of displaying graphics on > the screen, and I am pretty sure I can mmap the VGA memory to my > programs address space. You'd better not try inventing the wheel. You can use already written libraries for that purpose - vgl(3) or graphics/svgalib for example. -ip -- If everybody doesn't want it, nobody gets it. From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 17:47:07 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B476016A4CE for ; Sun, 13 Mar 2005 17:47:07 +0000 (GMT) Received: from avout2.midco.net (avout2.midco.net [24.220.0.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A4D443D39 for ; Sun, 13 Mar 2005 17:47:07 +0000 (GMT) (envelope-from freebsd-hackers@evilcode.net) Received: (qmail 19405 invoked by uid 1010); 13 Mar 2005 17:47:06 -0000 Received: from freebsd-hackers@evilcode.net by avout2 by uid 1003 with qmail-scanner-1.22 (f-prot: 4.4.2/3.14.11. Clear:RC:1(69.9.210.177):. Processed in 0.072887 secs); 13 Mar 2005 17:47:06 -0000 X-Qmail-Scanner-Mail-From: freebsd-hackers@evilcode.net via avout2 X-Qmail-Scanner: 1.22 (Clear:RC:1(69.9.210.177):. Processed in 0.072887 secs) Received: from host-177-210-9-69.midco.net (HELO [69.9.210.177]) ([69.9.210.177]) (envelope-sender ) by avout2.midco.net (qmail-ldap-1.03) with SMTP for ; 13 Mar 2005 17:47:06 -0000 From: "Samuel J. Greear" Organization: Evilcode Corp. To: freebsd-hackers@freebsd.org Date: Sun, 13 Mar 2005 10:51:39 -0600 User-Agent: KMail/1.7.2 References: <1107178792.613.22.camel@spirit> <87d5u33j51.fsf@neva.vlink.ru> <42342C47.209@cis.strath.ac.uk> In-Reply-To: <42342C47.209@cis.strath.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503131051.40700.freebsd-hackers@evilcode.net> cc: Denis Shaposhnikov cc: security@revolutionsp.com cc: Frank Knobbe cc: Chris Hodgins Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 17:47:07 -0000 Not a bad 'idea' at all, although I won't comment on semantics. I had something implemented using fs stacking (in a very hackish way, and I believe it's lost now, so don't ask to see it...) to implement per-jail quota's that seemed to work quite well. Sam > > This might be a very stupid idea but how about a jailfs. Now I don't > know all that much about filesystem design so bear with me. How about > something like this: > > > SO the jail filesystem is configured at jail-creation time and uses the > hosts files or jail files depending on the configuration. Might have to > pass the config file into the jail command. > > As I said I am not an expert. Mabye one of the experts could let me > know what they think? > > Chris From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 18:18:29 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C821916A4CE for ; Sun, 13 Mar 2005 18:18:29 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17B3F43D2F for ; Sun, 13 Mar 2005 18:18:29 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j2DII6NU030464; Sun, 13 Mar 2005 18:18:06 GMT Message-ID: <42348525.8080302@cis.strath.ac.uk> Date: Sun, 13 Mar 2005 18:23:33 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Samuel J. Greear" References: <1107178792.613.22.camel@spirit> <87d5u33j51.fsf@neva.vlink.ru> <42342C47.209@cis.strath.ac.uk> <200503131051.40700.freebsd-hackers@evilcode.net> In-Reply-To: <200503131051.40700.freebsd-hackers@evilcode.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.9, required 6, autolearn=not spam, BAYES_00 -4.90) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: Denis Shaposhnikov cc: freebsd-hackers@freebsd.org cc: security@revolutionsp.com cc: Frank Knobbe Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 18:18:29 -0000 Samuel J. Greear wrote: > Not a bad 'idea' at all, although I won't comment on semantics. I had > something implemented using fs stacking (in a very hackish way, and I > believe it's lost now, so don't ask to see it...) to implement per-jail > quota's that seemed to work quite well. > > Sam > Feel free to comment on the semantics. As I said before, I am not very knowledgable about filesystems and any insight or alternative implementation you can provide would be interesting I'm sure to everyone. Chris > >>This might be a very stupid idea but how about a jailfs. Now I don't >>know all that much about filesystem design so bear with me. How about >>something like this: >> > > > >>SO the jail filesystem is configured at jail-creation time and uses the >>hosts files or jail files depending on the configuration. Might have to >>pass the config file into the jail command. >> >>As I said I am not an expert. Mabye one of the experts could let me >>know what they think? >> >>Chris > > _______________________________________________ > 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 Sun Mar 13 19:35:57 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 861AB16A4CE for ; Sun, 13 Mar 2005 19:35:57 +0000 (GMT) Received: from MyBox.BoxChat.net (boxchat.net [70.182.152.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id E136D43D5C for ; Sun, 13 Mar 2005 19:35:54 +0000 (GMT) (envelope-from junk@boxchat.net) Received: from [192.168.1.120] (MyBox.BoxChat.net [192.168.1.120]) by MyBox.BoxChat.net (8.13.1/8.12.11) with ESMTP id j2DJa1bP031727 for ; Sun, 13 Mar 2005 13:36:01 -0600 Message-ID: <42349621.2060409@boxchat.net> Date: Sun, 13 Mar 2005 13:36:01 -0600 From: junk User-Agent: Mozilla Thunderbird 1.0 (X11/20041219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: cron limit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 19:35:57 -0000 I have a script that works fine from command line. But when I run it from cron , its not displaying all the info. Looks like cron is limiting the char length. example from script ran by cron: root 54313 0.0 0.2 1024 720 ?? S 3:20PM 0:00.00 cron: running jo example from script ran by command line: root 54313 0.0 0.2 1024 720 ?? S 3:20PM 0:00.00 cron: running job (cron) Any way to make cron use more buffer? Thanks From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 19:41:40 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F85716A4CE for ; Sun, 13 Mar 2005 19:41:40 +0000 (GMT) Received: from mxsf21.cluster1.charter.net (mxsf21.cluster1.charter.net [209.225.28.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FFB743D48 for ; Sun, 13 Mar 2005 19:41:39 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip07.cluster1.charter.net (mxip07a.cluster1.charter.net [209.225.28.137])j2DJfcll028698 for ; Sun, 13 Mar 2005 14:41:38 -0500 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip07.cluster1.charter.net with ESMTP; 13 Mar 2005 14:41:38 -0500 X-Ironport-AV: i="3.90,160,1107752400"; d="scan'208"; a="668044301:sNHT12664588" Date: Sun, 13 Mar 2005 14:41:34 -0500 (EST) From: c0ldbyte To: junk In-Reply-To: <42349621.2060409@boxchat.net> Message-ID: <20050313144036.R85674@eleanor.us1.wmi.uvac.net> References: <42349621.2060409@boxchat.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org Subject: Re: cron limit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 19:41:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 13 Mar 2005, junk wrote: > I have a script that works fine from command line. > But when I run it from cron , its not displaying all the info. > Looks like cron is limiting the char length. > > example from script ran by cron: > > root 54313 0.0 0.2 1024 720 ?? S 3:20PM 0:00.00 cron: > running jo > > example from script ran by command line: > > root 54313 0.0 0.2 1024 720 ?? S 3:20PM 0:00.00 cron: > running job (cron) > > > Any way to make cron use more buffer? > > Thanks > Have the script mail the output to you instead of having cron do it. That might change how the output reads. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F iD8DBQFCNJdxsmFQuvffl58RAqxzAKCGW1Rv/UKU6CW2+u6PcRVJqepybACfTf46 +lgall+/g8oAXu6aqj7ap+8= =OgvR -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 20:20:43 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C09F216A4CE for ; Sun, 13 Mar 2005 20:20:43 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AC6143D4C for ; Sun, 13 Mar 2005 20:20:43 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (adsl-68-252-59-28.dsl.wotnoh.ameritech.net [68.252.59.28]) (authenticated bits=0)j2DJorlu073316 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sun, 13 Mar 2005 14:50:54 -0500 (EST) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-hackers@freebsd.org Date: Sun, 13 Mar 2005 15:24:08 -0500 User-Agent: KMail/1.7 References: <1107178792.613.22.camel@spirit> <200503131051.40700.freebsd-hackers@evilcode.net> <42348525.8080302@cis.strath.ac.uk> In-Reply-To: <42348525.8080302@cis.strath.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1486163.gezmYYZZT0"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503131524.16075.mistry.7@osu.edu> X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on crumpet.united-ware.com cc: Denis Shaposhnikov cc: security@revolutionsp.com cc: "Samuel J. Greear" cc: Frank Knobbe cc: Chris Hodgins Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 20:20:43 -0000 --nextPart1486163.gezmYYZZT0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 13 March 2005 01:23 pm, Chris Hodgins wrote: > Samuel J. Greear wrote: > > Not a bad 'idea' at all, although I won't comment on semantics.=20 > > I had something implemented using fs stacking (in a very hackish > > way, and I believe it's lost now, so don't ask to see it...) to > > implement per-jail quota's that seemed to work quite well. > > > > Sam > > Feel free to comment on the semantics. As I said before, I am not > very knowledgable about filesystems and any insight or alternative > implementation you can provide would be interesting I'm sure to > everyone. > Yeah, if there was jailfs that was setup automatically for the jails=20 that supported quotas out of the box that would kill my major gripe=20 about setting up jails. =2D-=20 Anish Mistry --nextPart1486163.gezmYYZZT0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCNKFwxqA5ziudZT0RAonEAJ0eykBFRqCIFSjwjbV7yokVTQ6TwgCgw7N+ ZA5Cge8SNspgGcb4fErKnQo= =CbsS -----END PGP SIGNATURE----- --nextPart1486163.gezmYYZZT0-- From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 20:38:04 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1A0A16A4CE for ; Sun, 13 Mar 2005 20:38:04 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A52A43D3F for ; Sun, 13 Mar 2005 20:38:04 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j2DKbINU002768; Sun, 13 Mar 2005 20:37:18 GMT Message-ID: <4234A5C5.1080006@cis.strath.ac.uk> Date: Sun, 13 Mar 2005 20:42:45 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Anish Mistry References: <1107178792.613.22.camel@spirit> <200503131051.40700.freebsd-hackers@evilcode.net> <42348525.8080302@cis.strath.ac.uk> <200503131524.16075.mistry.7@osu.edu> In-Reply-To: <200503131524.16075.mistry.7@osu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.9, required 6, autolearn=not spam, BAYES_00 -4.90) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: Denis Shaposhnikov cc: freebsd-hackers@freebsd.org cc: security@revolutionsp.com cc: "Samuel J. Greear" cc: Frank Knobbe Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 20:38:04 -0000 Anish Mistry wrote: > On Sunday 13 March 2005 01:23 pm, Chris Hodgins wrote: > >>Samuel J. Greear wrote: >> >>>Not a bad 'idea' at all, although I won't comment on semantics. >>>I had something implemented using fs stacking (in a very hackish >>>way, and I believe it's lost now, so don't ask to see it...) to >>>implement per-jail quota's that seemed to work quite well. >>> >>>Sam >> >>Feel free to comment on the semantics. As I said before, I am not >>very knowledgable about filesystems and any insight or alternative >>implementation you can provide would be interesting I'm sure to >>everyone. >> > > Yeah, if there was jailfs that was setup automatically for the jails > that supported quotas out of the box that would kill my major gripe > about setting up jails. > Any ideas the sort of work involved in something like this? I am graduating soon and about to have about a month of free time to spend on a project. From the very little I know about file systems on Unix they just stack together right? So there would have to be something to process the configuration file and then is it just a matter of overriding each vnode operation or is there more to it than that? Chris From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 20:51:50 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10CF416A4CE for ; Sun, 13 Mar 2005 20:51:50 +0000 (GMT) Received: from MyBox.BoxChat.net (boxchat.net [70.182.152.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DE7943D5C for ; Sun, 13 Mar 2005 20:51:49 +0000 (GMT) (envelope-from junk@boxchat.net) Received: from [192.168.1.120] (MyBox.BoxChat.net [192.168.1.120]) by MyBox.BoxChat.net (8.13.1/8.12.11) with ESMTP id j2DKpuTc032748; Sun, 13 Mar 2005 14:51:56 -0600 Message-ID: <4234A7EC.80006@boxchat.net> Date: Sun, 13 Mar 2005 14:51:56 -0600 From: junk User-Agent: Mozilla Thunderbird 1.0 (X11/20041219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: c0ldbyte References: <42349621.2060409@boxchat.net> <20050313144036.R85674@eleanor.us1.wmi.uvac.net> In-Reply-To: <20050313144036.R85674@eleanor.us1.wmi.uvac.net> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: cron limit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 20:51:50 -0000 c0ldbyte wrote: > On Sun, 13 Mar 2005, junk wrote: > > >> I have a script that works fine from command line. > >> But when I run it from cron , its not displaying all the info. > >> Looks like cron is limiting the char length. > >> > >> example from script ran by cron: > >> > >> root 54313 0.0 0.2 1024 720 ?? S 3:20PM 0:00.00 cron: > >> running jo > >> > >> example from script ran by command line: > >> > >> root 54313 0.0 0.2 1024 720 ?? S 3:20PM 0:00.00 cron: > >> running job (cron) > >> > >> > >> Any way to make cron use more buffer? > >> > >> Thanks > >> > > Have the script mail the output to you instead of having cron do it. > That might change how the output reads. Emailing the output shows the same thing. From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 20:56:45 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15C3116A4CE for ; Sun, 13 Mar 2005 20:56:45 +0000 (GMT) Received: from MyBox.BoxChat.net (boxchat.net [70.182.152.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E99543D58 for ; Sun, 13 Mar 2005 20:56:44 +0000 (GMT) (envelope-from junk@boxchat.net) Received: from [192.168.1.120] (MyBox.BoxChat.net [192.168.1.120]) by MyBox.BoxChat.net (8.13.1/8.12.11) with ESMTP id j2DKunLN000358; Sun, 13 Mar 2005 14:56:49 -0600 Message-ID: <4234A911.2070601@boxchat.net> Date: Sun, 13 Mar 2005 14:56:49 -0600 From: junk User-Agent: Mozilla Thunderbird 1.0 (X11/20041219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: junk References: <42349621.2060409@boxchat.net> <20050313144036.R85674@eleanor.us1.wmi.uvac.net> <4234A7EC.80006@boxchat.net> In-Reply-To: <4234A7EC.80006@boxchat.net> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit cc: c0ldbyte cc: freebsd-hackers@freebsd.org Subject: Re: cron limit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 20:56:45 -0000 junk wrote: >c0ldbyte wrote: > > > >>On Sun, 13 Mar 2005, junk wrote: >> >> >> >>>>I have a script that works fine from command line. >>>>But when I run it from cron , its not displaying all the info. >>>>Looks like cron is limiting the char length. >>>> >>>>example from script ran by cron: >>>> >>>>root 54313 0.0 0.2 1024 720 ?? S 3:20PM 0:00.00 cron: >>>>running jo >>>> >>>>example from script ran by command line: >>>> >>>>root 54313 0.0 0.2 1024 720 ?? S 3:20PM 0:00.00 cron: >>>>running job (cron) >>>> >>>> >>>>Any way to make cron use more buffer? >>>> >>>>Thanks >>>> >>>> >>>> >>Have the script mail the output to you instead of having cron do it. >>That might change how the output reads. >> >> > > >Emailing the output shows the same thing. > > > The script thats being ran by cron does a 'ps x |grep test.pl'. and prases the output from test.pl, but since cron is limiting the char length, its not parsing the output right. From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 23:26:42 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A77C16A4CE for ; Sun, 13 Mar 2005 23:26:42 +0000 (GMT) Received: from MyBox.BoxChat.net (boxchat.net [70.182.152.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id D581343D46 for ; Sun, 13 Mar 2005 23:26:39 +0000 (GMT) (envelope-from junk@boxchat.net) Received: from [192.168.1.120] (MyBox.BoxChat.net [192.168.1.120]) by MyBox.BoxChat.net (8.13.1/8.12.11) with ESMTP id j2DNQkCq002245; Sun, 13 Mar 2005 17:26:46 -0600 Message-ID: <4234CC36.1080908@boxchat.net> Date: Sun, 13 Mar 2005 17:26:46 -0600 From: junk User-Agent: Mozilla Thunderbird 1.0 (X11/20041219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pieter de Boer References: <42349621.2060409@boxchat.net> <20050313144036.R85674@eleanor.us1.wmi.uvac.net> <4234A7EC.80006@boxchat.net> <4234A911.2070601@boxchat.net> <4234C324.4000302@thedarkside.nl> In-Reply-To: <4234C324.4000302@thedarkside.nl> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: cron limit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 23:26:42 -0000 Pieter de Boer wrote: > >> The script thats being ran by cron does a 'ps x |grep test.pl'. and >> prases the output from test.pl, but since cron is limiting the char >> length, its not parsing the output right. > > ps -xw ? > Yeah. That was the problem. From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 00:00:38 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D248B16A4CE for ; Mon, 14 Mar 2005 00:00:38 +0000 (GMT) Received: from mxsf41.cluster1.charter.net (mxsf41.cluster1.charter.net [209.225.28.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8089D43D58 for ; Mon, 14 Mar 2005 00:00:37 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip12.cluster1.charter.net (mxip12a.cluster1.charter.net [209.225.28.142])j2E00aS7030572 for ; Sun, 13 Mar 2005 19:00:36 -0500 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip12.cluster1.charter.net with ESMTP; 13 Mar 2005 19:00:35 -0500 X-Ironport-AV: i="3.90,160,1107752400"; d="scan'208"; a="874674705:sNHT2032845796" Date: Sun, 13 Mar 2005 19:00:31 -0500 (EST) From: c0ldbyte To: junk In-Reply-To: <4234CC36.1080908@boxchat.net> Message-ID: <20050313185830.V451@eleanor.us1.wmi.uvac.net> References: <42349621.2060409@boxchat.net> <20050313144036.R85674@eleanor.us1.wmi.uvac.net> <4234A7EC.80006@boxchat.net> <4234A911.2070601@boxchat.net> <4234C324.4000302@thedarkside.nl> <4234CC36.1080908@boxchat.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org cc: Pieter de Boer Subject: Re: cron limit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 00:00:38 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 13 Mar 2005, junk wrote: > Pieter de Boer wrote: > >> >>> The script thats being ran by cron does a 'ps x |grep test.pl'. and >>> prases the output from test.pl, but since cron is limiting the char >>> length, its not parsing the output right. >> >> ps -xw ? >> > Yeah. That was the problem. Yeah that would be correct but still just might want to go with a couple more "w"'s for instance just one will still cut off to a certain point so a (ps auxwww) will make sure it gets everything and feeds back the proper information. Sorry I didnt remember that right away. Best luck & wishes: --c0ldbyte -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F iD8DBQFCNNQismFQuvffl58RAqTnAJ4m2nI1HTx6kog5uIICKVYsgWAMgQCfYkOL ZAWnTmlcBJHsVDCL1CC3vt4= =g6f6 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 00:22:45 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B147416A4CE for ; Mon, 14 Mar 2005 00:22:45 +0000 (GMT) Received: from MyBox.BoxChat.net (boxchat.net [70.182.152.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 058E743D1D for ; Mon, 14 Mar 2005 00:22:45 +0000 (GMT) (envelope-from junk@boxchat.net) Received: from [192.168.1.120] (MyBox.BoxChat.net [192.168.1.120]) by MyBox.BoxChat.net (8.13.1/8.12.11) with ESMTP id j2E0Mqqk003030; Sun, 13 Mar 2005 18:22:52 -0600 Message-ID: <4234D95C.1000803@boxchat.net> Date: Sun, 13 Mar 2005 18:22:52 -0600 From: junk User-Agent: Mozilla Thunderbird 1.0 (X11/20041219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: c0ldbyte References: <42349621.2060409@boxchat.net> <20050313144036.R85674@eleanor.us1.wmi.uvac.net> <4234A7EC.80006@boxchat.net> <4234A911.2070601@boxchat.net> <4234C324.4000302@thedarkside.nl> <4234CC36.1080908@boxchat.net> <20050313185830.V451@eleanor.us1.wmi.uvac.net> In-Reply-To: <20050313185830.V451@eleanor.us1.wmi.uvac.net> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Pieter de Boer Subject: Re: cron limit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 00:22:45 -0000 c0ldbyte wrote: > On Sun, 13 Mar 2005, junk wrote: > > >> Pieter de Boer wrote: > >> > >>> > >>>> The script thats being ran by cron does a 'ps x |grep test.pl'. and > >>>> prases the output from test.pl, but since cron is limiting the char > >>>> length, its not parsing the output right. > >>> > >>> > >>> ps -xw ? > >>> > >> Yeah. That was the problem. > > > Yeah that would be correct but still just might want to go with a couple > more "w"'s for instance just one will still cut off to a certain point > so a (ps auxwww) will make sure it gets everything and feeds back the > proper information. Sorry I didnt remember that right away. > > Best luck & wishes: > --c0ldbyte > Thanks for all the help. It's working great. _______________________________________________ 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 Mar 14 05:03:36 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5052816A4CE; Mon, 14 Mar 2005 05:03:36 +0000 (GMT) Received: from edgemaster.zombie.org (edgemaster.creighton.edu [147.134.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id C663F43D54; Mon, 14 Mar 2005 05:03:35 +0000 (GMT) (envelope-from smkelly@FreeBSD.org) Received: by edgemaster.zombie.org (Postfix, from userid 1001) id 46B7539838; Sun, 13 Mar 2005 23:03:35 -0600 (CST) Date: Sun, 13 Mar 2005 23:03:35 -0600 From: Sean Kelly To: Jim Rees Message-ID: <20050314050334.GA40144@edgemaster.zombie.org> References: <20050311152736.63E7E1BB8B@citi.umich.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <20050311152736.63E7E1BB8B@citi.umich.edu> User-Agent: Mutt/1.5.8i cc: freebsd-fs@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Global / Cluster / Shared filesystem for FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 05:03:36 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 11, 2005 at 10:27:36AM -0500, Jim Rees wrote: > There are OpenAFS and NFSv4 clients for FreeBSD, but unfortunately neither > is really production quality. It wouldn't take much to make at least the > OpenAFS client usable but no one seems to be working on it now. I may be looking into AFS more for my workplace. If this comes to pass, I may end up making an effort to get it working on FreeBSD as a hobby during my spare time. Some things to look at that I've also been poking at: * Apparently the newest development (1.3.x) OpenAFS servers will work on FreeBSD, but the client is not production quality. * /usr/ports/net/arla implements a client that supposedly works on FreeBSD, though I have yet to test it. * OpenAFS is looking for people interested in making their client work on FreeBSD. Hope this helps. I'd like to see FreeBSD get much better AFS and general clustering/internetworking support. For example, easier to configure LDAP and Kerberos. Must.. compete.. with.. Active.. Directory... --=20 Sean Kelly | PGP KeyID: D2E5E296 smkelly@FreeBSD.org | http://www.sean-kelly.org/ --huq684BweRXVnRxX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCNRsmPm7A9NLl4pYRAnH0AKDOxoznGRaoATUF8B8ba03EmB0zkQCgi5G4 963VcgTnXpqfR0xUNuzeWJ4= =JAHp -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 13 22:48:18 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 625F216A4CE for ; Sun, 13 Mar 2005 22:48:18 +0000 (GMT) Received: from mail.thelostparadise.com (129pc197.sshunet.nl [145.97.197.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A06143D46 for ; Sun, 13 Mar 2005 22:48:17 +0000 (GMT) (envelope-from pieter@thedarkside.nl) Received: from [195.149.88.90] (serkoon@90.88.149.195.in-addr.arpa.virt-ix.net [195.149.88.90])j2DMm8a0001409; Sun, 13 Mar 2005 23:48:08 +0100 (CET) (envelope-from pieter@thedarkside.nl) Message-ID: <4234C324.4000302@thedarkside.nl> Date: Sun, 13 Mar 2005 23:48:04 +0100 From: Pieter de Boer User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: junk References: <42349621.2060409@boxchat.net> <20050313144036.R85674@eleanor.us1.wmi.uvac.net> <4234A7EC.80006@boxchat.net> <4234A911.2070601@boxchat.net> In-Reply-To: <4234A911.2070601@boxchat.net> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 14 Mar 2005 13:01:07 +0000 cc: freebsd-hackers@freebsd.org Subject: Re: cron limit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 22:48:18 -0000 > The script thats being ran by cron does a 'ps x |grep test.pl'. and > prases the output from test.pl, but since cron is limiting the char > length, its not parsing the output right. ps -xw ? -- Pieter From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 13:08:48 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 072A716A4D0 for ; Mon, 14 Mar 2005 13:08:48 +0000 (GMT) Received: from node15.coopprint.com (node15.cooperativeprinting.com [208.4.77.15]) by mx1.FreeBSD.org (Postfix) with SMTP id B46F743D53 for ; Mon, 14 Mar 2005 13:08:46 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 76006 invoked by uid 0); 14 Mar 2005 13:07:24 -0000 Received: from unknown (HELO ?192.168.0.5?) (63.231.157.250) by node15.coopprint.com with SMTP; 14 Mar 2005 13:07:24 -0000 Message-ID: <42358D6E.3040601@gamersimpact.com> Date: Mon, 14 Mar 2005 07:11:10 -0600 From: Ryan Sommers User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sean Kelly References: <20050311152736.63E7E1BB8B@citi.umich.edu> <20050314050334.GA40144@edgemaster.zombie.org> In-Reply-To: <20050314050334.GA40144@edgemaster.zombie.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-fs@freebsd.org cc: freebsd-hackers@freebsd.org cc: Jim Rees Subject: Re: Global / Cluster / Shared filesystem for FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 13:08:48 -0000 Sean Kelly wrote: > Hope this helps. I'd like to see FreeBSD get much better AFS and general > clustering/internetworking support. For example, easier to configure LDAP > and Kerberos. Must.. compete.. with.. Active.. Directory... This is something else I've been wanting to look at as well. In general I'd like to see many more file-systems supported in FreeBSD. Not as root devices, necessarily, but general kernel module support for them. I know someone was working on Reiser support, and I think that's great. -- Ryan Sommers ryans@gamersimpact.com From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 16:12:34 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3558316A4CE for ; Mon, 14 Mar 2005 16:12:34 +0000 (GMT) Received: from avout3.midco.net (avout3.midco.net [24.220.0.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AE3F43D4C for ; Mon, 14 Mar 2005 16:12:31 +0000 (GMT) (envelope-from freebsd-hackers@evilcode.net) Received: (qmail 15242 invoked by uid 1009); 14 Mar 2005 16:12:31 -0000 Received: from freebsd-hackers@evilcode.net by avout3 by uid 1003 with qmail-scanner-1.22 (f-prot: 4.4.2/3.14.11. Clear:RC:1(69.9.210.177):. Processed in 0.074028 secs); 14 Mar 2005 16:12:31 -0000 X-Qmail-Scanner-Mail-From: freebsd-hackers@evilcode.net via avout3 X-Qmail-Scanner: 1.22 (Clear:RC:1(69.9.210.177):. Processed in 0.074028 secs) Received: from host-177-210-9-69.midco.net (HELO [69.9.210.177]) ([69.9.210.177]) (envelope-sender ) by avout3.midco.net (qmail-ldap-1.03) with SMTP for ; 14 Mar 2005 16:12:30 -0000 From: "Samuel J. Greear" Organization: Evilcode Corp. To: Anish Mistry Date: Mon, 14 Mar 2005 09:15:53 -0600 User-Agent: KMail/1.7.2 References: <1107178792.613.22.camel@spirit> <42348525.8080302@cis.strath.ac.uk> <200503131524.16075.mistry.7@osu.edu> In-Reply-To: <200503131524.16075.mistry.7@osu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503140915.53619.freebsd-hackers@evilcode.net> cc: freebsd-hackers@freebsd.org cc: Chris Hodgins Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 16:12:34 -0000 On Sunday 13 March 2005 14:24, Anish Mistry wrote: > On Sunday 13 March 2005 01:23 pm, Chris Hodgins wrote: > > Samuel J. Greear wrote: > > > Not a bad 'idea' at all, although I won't comment on semantics. > > > I had something implemented using fs stacking (in a very hackish > > > way, and I believe it's lost now, so don't ask to see it...) to > > > implement per-jail quota's that seemed to work quite well. > > > > > > Sam > > > > Feel free to comment on the semantics. As I said before, I am not > > very knowledgable about filesystems and any insight or alternative > > implementation you can provide would be interesting I'm sure to > > everyone. > > Yeah, if there was jailfs that was setup automatically for the jails > that supported quotas out of the box that would kill my major gripe > about setting up jails. Chris, your concept looks reasonable to me. I think I would probably do something along those lines but borrow some idea's from my 'jail-build' script. It has the concept of both includes and excludes, but it also handles another directory for what I call overrides. My overrides directories are per-jail and typically include nothing more than config. files, but it works pretty handily. The overrides may best be implemented in a seperate layer... and I don't even know that I would call something like this a jailfs, more like a globfs or something... I can see potential uses beyond jails. The reasons that I never finished implementing my jailfs with quota support were primarily, that stackable filesystems seem to be somewhat of a black-art. Secondarily, I concluded that the time would be better spent implementing filesystem agnostic quota's in the vfs layer. A proper design should enable you to do a lot of fun things, I was thinking something along the lines of just a simple aggregator that a module could hand function pointers to and register interest in events, with options like.. just-notify-me and dont-continue-without-my-approval. Throw in some helpers for synchronizing module state to disk. The kernel side of this shouldn't really be very hard, but all of the userland quota utilities would need to be rewritten as they are tied to UFS at the block level. This all from about 3 years ago, and I haven't implemented any of it. I rock! Sam From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 18:43:14 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E722F16A4CE for ; Mon, 14 Mar 2005 18:43:13 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3714343D2D for ; Mon, 14 Mar 2005 18:43:13 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (adsl-68-252-59-28.dsl.wotnoh.ameritech.net [68.252.59.28]) (authenticated bits=0)j2EID9lu007438 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 14 Mar 2005 13:13:12 -0500 (EST) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: "Samuel J. Greear" Date: Mon, 14 Mar 2005 13:46:34 -0500 User-Agent: KMail/1.7 References: <1107178792.613.22.camel@spirit> <200503131524.16075.mistry.7@osu.edu> <200503140915.53619.freebsd-hackers@evilcode.net> In-Reply-To: <200503140915.53619.freebsd-hackers@evilcode.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart10268516.nCS0ysdE0r"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503141346.41722.mistry.7@osu.edu> X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on crumpet.united-ware.com cc: freebsd-hackers@freebsd.org cc: Chris Hodgins Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 18:43:14 -0000 --nextPart10268516.nCS0ysdE0r Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 14 March 2005 10:15 am, Samuel J. Greear wrote: > On Sunday 13 March 2005 14:24, Anish Mistry wrote: > > On Sunday 13 March 2005 01:23 pm, Chris Hodgins wrote: > > > Samuel J. Greear wrote: > > > > Not a bad 'idea' at all, although I won't comment on > > > > semantics. I had something implemented using fs stacking (in > > > > a very hackish way, and I believe it's lost now, so don't ask > > > > to see it...) to implement per-jail quota's that seemed to > > > > work quite well. > > > > > > > > Sam > > > > > > Feel free to comment on the semantics. As I said before, I am > > > not very knowledgable about filesystems and any insight or > > > alternative implementation you can provide would be interesting > > > I'm sure to everyone. > > > > Yeah, if there was jailfs that was setup automatically for the > > jails that supported quotas out of the box that would kill my > > major gripe about setting up jails. > > Chris, your concept looks reasonable to me. I think I would > probably do something along those lines but borrow some idea's from > my 'jail-build' script. It has the concept of both includes and > excludes, but it also handles another directory for what I call > overrides. My overrides directories are per-jail and typically > include nothing more than config. files, but it works pretty > handily. The overrides may best be implemented in a seperate > layer... and I don't even know that I would call something like > this a jailfs, more like a globfs or something... I can see > potential uses beyond jails. > > The reasons that I never finished implementing my jailfs with quota > support were primarily, that stackable filesystems seem to be > somewhat of a black-art. Secondarily, I concluded that the time > would be better spent implementing filesystem agnostic quota's in > the vfs layer. A proper design should enable you to do a lot of > fun things, I was thinking something along the lines of just a > simple aggregator that a module could hand function pointers to and > register interest in events, with options like.. just-notify-me > and dont-continue-without-my-approval. Throw in some helpers for > synchronizing module state to disk. The kernel side of this > shouldn't really be very hard, but all of the userland quota > utilities would need to be rewritten as they are tied to UFS at the > block level. This all from about 3 years ago, and I haven't > implemented any of it. I rock! > > Sam Would you be able to write up some design specs for getting all this=20 done? This might be a prime example of something to try to get=20 funding for development. =2D-=20 Anish Mistry --nextPart10268516.nCS0ysdE0r Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCNdwRxqA5ziudZT0RAjDnAJ0ey+K7RiZN0VckLuthoR/NLmuvnACg4RPL kqmIVre97Ar4EKvbf+DQN8s= =BWDp -----END PGP SIGNATURE----- --nextPart10268516.nCS0ysdE0r-- From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 19:12:47 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7D4016A4CE for ; Mon, 14 Mar 2005 19:12:47 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1028243D2D for ; Mon, 14 Mar 2005 19:12:47 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j2EJBtDp019927; Mon, 14 Mar 2005 19:11:55 GMT Message-ID: <4235E343.2000900@cis.strath.ac.uk> Date: Mon, 14 Mar 2005 19:17:23 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Anish Mistry References: <1107178792.613.22.camel@spirit> <200503131524.16075.mistry.7@osu.edu> <200503140915.53619.freebsd-hackers@evilcode.net> <200503141346.41722.mistry.7@osu.edu> In-Reply-To: <200503141346.41722.mistry.7@osu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.9, required 6, BAYES_00 -4.90) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: freebsd-hackers@freebsd.org cc: "Samuel J. Greear" Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 19:12:48 -0000 Anish Mistry wrote: > On Monday 14 March 2005 10:15 am, Samuel J. Greear wrote: > >>On Sunday 13 March 2005 14:24, Anish Mistry wrote: >> >>>On Sunday 13 March 2005 01:23 pm, Chris Hodgins wrote: >>> >>>>Samuel J. Greear wrote: >>>> >>>>>Not a bad 'idea' at all, although I won't comment on >>>>>semantics. I had something implemented using fs stacking (in >>>>>a very hackish way, and I believe it's lost now, so don't ask >>>>>to see it...) to implement per-jail quota's that seemed to >>>>>work quite well. >>>>> >>>>>Sam >>>> >>>>Feel free to comment on the semantics. As I said before, I am >>>>not very knowledgable about filesystems and any insight or >>>>alternative implementation you can provide would be interesting >>>>I'm sure to everyone. >>> >>>Yeah, if there was jailfs that was setup automatically for the >>>jails that supported quotas out of the box that would kill my >>>major gripe about setting up jails. >> >>Chris, your concept looks reasonable to me. I think I would >>probably do something along those lines but borrow some idea's from >>my 'jail-build' script. It has the concept of both includes and >>excludes, but it also handles another directory for what I call >>overrides. My overrides directories are per-jail and typically >>include nothing more than config. files, but it works pretty >>handily. The overrides may best be implemented in a seperate >>layer... and I don't even know that I would call something like >>this a jailfs, more like a globfs or something... I can see >>potential uses beyond jails. >> I like the idea of the overrides directory. That would work nicely. If you made the overrides directory the actual jail root that might make sense. Then when the [jail|glob]fs is mounted it will simply choose the file in the jail root directory instead of the one on the normal file system. If we implemented a sort of copy of write architecture we could add to the exceptions list on the fly. That is everything from the host (everything allowed by the config file that is) is available as a copy of the host system. When you edit a file, the filesystem simply creates its own copy for the overrides directory and we edit that. That would be very neat. Imagine that working on the ports system!! :) What do you think? >>The reasons that I never finished implementing my jailfs with quota >>support were primarily, that stackable filesystems seem to be >>somewhat of a black-art. Secondarily, I concluded that the time >>would be better spent implementing filesystem agnostic quota's in >>the vfs layer. A proper design should enable you to do a lot of >>fun things, I was thinking something along the lines of just a >>simple aggregator that a module could hand function pointers to and >>register interest in events, with options like.. just-notify-me >>and dont-continue-without-my-approval. Throw in some helpers for >>synchronizing module state to disk. The kernel side of this >>shouldn't really be very hard, but all of the userland quota >>utilities would need to be rewritten as they are tied to UFS at the >>block level. This all from about 3 years ago, and I haven't >>implemented any of it. I rock! Sounds, very interesting. >> >>Sam > > Would you be able to write up some design specs for getting all this > done? This might be a prime example of something to try to get > funding for development. > I would be willing to donate some time to work on designing and building this. Especially if working with someone who knows a lot more about filesystems than me. :) Chris From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 19:20:37 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D86B16A4CE for ; Mon, 14 Mar 2005 19:20:37 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6DB143D1F for ; Mon, 14 Mar 2005 19:20:36 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j2EJKCDp020383; Mon, 14 Mar 2005 19:20:12 GMT Message-ID: <4235E536.6080601@cis.strath.ac.uk> Date: Mon, 14 Mar 2005 19:25:42 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Anish Mistry References: <1107178792.613.22.camel@spirit> <200503131524.16075.mistry.7@osu.edu> <200503140915.53619.freebsd-hackers@evilcode.net> <200503141346.41722.mistry.7@osu.edu> In-Reply-To: <200503141346.41722.mistry.7@osu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.9, required 6, BAYES_00 -4.90) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: freebsd-hackers@freebsd.org cc: "Samuel J. Greear" Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 19:20:37 -0000 Anish Mistry wrote: > On Monday 14 March 2005 10:15 am, Samuel J. Greear wrote: > >>On Sunday 13 March 2005 14:24, Anish Mistry wrote: >> >>>On Sunday 13 March 2005 01:23 pm, Chris Hodgins wrote: >>> >>>>Samuel J. Greear wrote: >>>> >>>>>Not a bad 'idea' at all, although I won't comment on >>>>>semantics. I had something implemented using fs stacking (in >>>>>a very hackish way, and I believe it's lost now, so don't ask >>>>>to see it...) to implement per-jail quota's that seemed to >>>>>work quite well. >>>>> >>>>>Sam >>>> >>>>Feel free to comment on the semantics. As I said before, I am >>>>not very knowledgable about filesystems and any insight or >>>>alternative implementation you can provide would be interesting >>>>I'm sure to everyone. >>> >>>Yeah, if there was jailfs that was setup automatically for the >>>jails that supported quotas out of the box that would kill my >>>major gripe about setting up jails. >> >>Chris, your concept looks reasonable to me. I think I would >>probably do something along those lines but borrow some idea's from >>my 'jail-build' script. It has the concept of both includes and >>excludes, but it also handles another directory for what I call >>overrides. My overrides directories are per-jail and typically >>include nothing more than config. files, but it works pretty >>handily. The overrides may best be implemented in a seperate >>layer... and I don't even know that I would call something like >>this a jailfs, more like a globfs or something... I can see >>potential uses beyond jails. >> >>The reasons that I never finished implementing my jailfs with quota >>support were primarily, that stackable filesystems seem to be >>somewhat of a black-art. Secondarily, I concluded that the time >>would be better spent implementing filesystem agnostic quota's in >>the vfs layer. A proper design should enable you to do a lot of >>fun things, I was thinking something along the lines of just a >>simple aggregator that a module could hand function pointers to and >>register interest in events, with options like.. just-notify-me >>and dont-continue-without-my-approval. Throw in some helpers for >>synchronizing module state to disk. The kernel side of this >>shouldn't really be very hard, but all of the userland quota >>utilities would need to be rewritten as they are tied to UFS at the >>block level. This all from about 3 years ago, and I haven't >>implemented any of it. I rock! >> >>Sam > > Would you be able to write up some design specs for getting all this > done? This might be a prime example of something to try to get > funding for development. > I seem to have stopped receiving mail from the mailing lists. Would it be possible for someone to forward any replies on this thread for the last few hours to christopher.hodgins@gmail.com. If it would be possible for any further emails to be cc'd there as well that would be brilliant. :) Thanks Chris From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 19:37:57 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 319FF16A4CE for ; Mon, 14 Mar 2005 19:37:57 +0000 (GMT) Received: from mgw-x4.nokia.com (mgw-x4.nokia.com [131.228.20.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2769F43D46 for ; Mon, 14 Mar 2005 19:37:56 +0000 (GMT) (envelope-from Vijay.Singh@nokia.com) Received: from esdks001.ntc.nokia.com (esdks001.ntc.nokia.com [172.21.138.120])j2EJcOA19361 for ; Mon, 14 Mar 2005 21:38:24 +0200 (EET) X-Scanned: Mon, 14 Mar 2005 21:52:41 +0200 Nokia Message Protector V1.3.34 2004121512 - RELEASE Received: (from root@localhost) by esdks001.ntc.nokia.com (8.12.9/8.12.9) id j2EJqfJZ018805 for ; Mon, 14 Mar 2005 21:52:41 +0200 Received: from mgw-int1.ntc.nokia.com (172.21.143.96) by esdks001.ntc.nokia.com 00NONdo6; Mon, 14 Mar 2005 21:52:31 EET Received: from daebh001.NOE.Nokia.com (daebh001.americas.nokia.com [10.241.35.121])j2EJbCM06212 for ; Mon, 14 Mar 2005 21:37:12 +0200 (EET) Received: from mvebe001.NOE.Nokia.com ([172.18.140.37]) by daebh001.NOE.Nokia.com with Microsoft SMTPSVC(5.0.2195.6881); Mon, 14 Mar 2005 13:36:23 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Mar 2005 11:36:21 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: memory leak in inflate.c Thread-Index: AcUozRmLrCokB1YjRxWUInMbMuggYw== From: To: X-OriginalArrivalTime: 14 Mar 2005 19:36:23.0551 (UTC) FILETIME=[1AF3A8F0:01C528CD] Subject: memory leak in inflate.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 19:37:57 -0000 Hi, I am trying to debug a memory leak in executing gzipped binaries = when the parameter list is too long. The function in question is = inflate_dynamic().=20 /* decompress until an end-of-block code */ if (inflate_codes(glbl, tl, td, bl, bd)) return 1; /* free the decoding tables, return */ huft_free(glbl, tl); huft_free(glbl, td); return 0; Should this be re-written as: i =3D inflate_codes(glbl, tl, td, bl, bd) ? 1 : 0; =20 /* free the decoding tables, return */ huft_free(glbl, tl); huft_free(glbl, td); return (i); so that the Huffman tables are always freed. Comments appreciated. br vijay =09 From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 20:25:18 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4195216A4CE for ; Mon, 14 Mar 2005 20:25:18 +0000 (GMT) Received: from kuldipmanak.chamkila.org (node-40240ed2.sjc.onnet.us.uu.net [64.36.14.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ACE643D2D for ; Mon, 14 Mar 2005 20:25:13 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from mail.chamkila.org (localhost.localdomain [127.0.0.1]) j2EKNxBg030337; Mon, 14 Mar 2005 12:23:59 -0800 Received: from 69.36.228.194 (proxying for 192.168.96.214) (SquirrelMail authenticated user aman); by mail.chamkila.org with HTTP; Mon, 14 Mar 2005 12:23:59 -0800 (PST) Message-ID: <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> In-Reply-To: <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> Date: Mon, 14 Mar 2005 12:23:59 -0800 (PST) From: "Amandeep Pannu" To: "Amandeep Pannu" User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-hackers@freebsd.org cc: aman@chamkila.org Subject: Re: Freebsd 5.3 problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 20:25:18 -0000 HI all, I am running FreeBSd 5.3-REL Today my system simply locked up. There was no error sent to console, to any logs, nor the monitor screen. It was totally unresponsive to network, serial console, or keyboard. After 4 power-cycles, we were unable to get past the BIOS as it was reporting "RAM R/W error". I have a screen shot of this from the serial port console, but it is the same as the one from before. If I hit the "F1" key to continue, FreeBSD seemingly reports ACPI-0277: *** Warning: Invalid checksum in table [APIC] (98, sum 84 is not zero) just before booting. It is after the boot screen, but before the copyright is displayed by the kernel. Finally, I turned the machine off for about 2 minutes, then turned it back on. It was able to get through the BIOS RAM test and reboot cleanly, and the file systems cleaned themselves up and the database did so as well, and it appears to be running fine. Any ideas what is going on. Thanks A From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 20:29:05 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 758) id BF30F16A4CF; Mon, 14 Mar 2005 20:29:05 +0000 (GMT) Date: Mon, 14 Mar 2005 20:29:05 +0000 From: Kris Kennaway To: Amandeep Pannu Message-ID: <20050314202905.GT91771@hub.freebsd.org> References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: Freebsd 5.3 problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 20:29:05 -0000 On Mon, Mar 14, 2005 at 12:23:59PM -0800, Amandeep Pannu wrote: > > HI all, > > I am running FreeBSd 5.3-REL > > Today my system simply locked up. There was no error sent to console, to > any logs, nor the monitor screen. It was totally unresponsive to network, > serial console, or keyboard. After 4 power-cycles, we were unable to get > past the BIOS as it was reporting "RAM R/W error". I have a screen shot > of this from the serial port console, but it is the same as the one from > before. If I hit the "F1" Looks like hardware failure. Kris -- In God we Trust -- all others must submit an X.509 certificate. -- Charles Forsythe From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 20:36:18 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9931816A4CE; Mon, 14 Mar 2005 20:36:18 +0000 (GMT) Received: from kuldipmanak.chamkila.org (node-40240ed2.sjc.onnet.us.uu.net [64.36.14.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC2BF43D41; Mon, 14 Mar 2005 20:36:14 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from mail.chamkila.org (localhost.localdomain [127.0.0.1]) j2EKYwBg030639; Mon, 14 Mar 2005 12:34:58 -0800 Received: from 69.36.228.194 (proxying for 192.168.96.214) (SquirrelMail authenticated user aman); by mail.chamkila.org with HTTP; Mon, 14 Mar 2005 12:34:59 -0800 (PST) Message-ID: <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> In-Reply-To: <20050314202905.GT91771@hub.freebsd.org> References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> Date: Mon, 14 Mar 2005 12:34:59 -0800 (PST) From: "Amandeep Pannu" To: "Kris Kennaway" User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-hackers@freebsd.org cc: Amandeep Pannu Subject: Re: Freebsd 5.3 problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 20:36:18 -0000 Hi Kris, I had this problem before and I changed the MB and the memory and today it did the same thing it did before. memtest doesnt give any errors. Thanks A > On Mon, Mar 14, 2005 at 12:23:59PM -0800, Amandeep Pannu wrote: >> >> HI all, >> >> I am running FreeBSd 5.3-REL >> >> Today my system simply locked up. There was no error sent to console, >> to >> any logs, nor the monitor screen. It was totally unresponsive to >> network, >> serial console, or keyboard. After 4 power-cycles, we were unable to >> get >> past the BIOS as it was reporting "RAM R/W error". I have a screen shot >> of this from the serial port console, but it is the same as the one from >> before. If I hit the "F1" > > Looks like hardware failure. > > Kris > > -- > In God we Trust -- all others must submit an X.509 certificate. > -- Charles Forsythe > _______________________________________________ > 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" > -- Amandeep.S aman@chamkila.org http://aman.chamkila.org From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 20:37:15 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 758) id CBFA816A4CF; Mon, 14 Mar 2005 20:37:15 +0000 (GMT) Date: Mon, 14 Mar 2005 20:37:15 +0000 From: Kris Kennaway To: Amandeep Pannu Message-ID: <20050314203715.GW91771@hub.freebsd.org> References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: Freebsd 5.3 problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 20:37:15 -0000 On Mon, Mar 14, 2005 at 12:34:59PM -0800, Amandeep Pannu wrote: > Hi Kris, > > I had this problem before and I changed the MB and the memory and today it > did the same thing it did before. Continue to check power supply, CPU cooling, cabling, etc. > memtest doesnt give any errors. OK, that doesn't prove they don't exist though. Kris From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 20:45:03 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 614BD16A4CE for ; Mon, 14 Mar 2005 20:45:03 +0000 (GMT) Received: from vsmtp3.tin.it (vsmtp3alice.tin.it [212.216.176.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9203A43D1D for ; Mon, 14 Mar 2005 20:45:02 +0000 (GMT) (envelope-from molter@tin.it) Received: from gattaccio.codalunga (82.122.114.246) by vsmtp3.tin.it (7.0.027) (authenticated as molter@tin.it) id 4232AB90000F2C9F for freebsd-hackers@freebsd.org; Mon, 14 Mar 2005 21:45:00 +0100 Received: by gattaccio.codalunga (Postfix, from userid 1001) id 6F54DC17F; Mon, 14 Mar 2005 21:43:52 +0100 (CET) Date: Mon, 14 Mar 2005 21:43:52 +0100 From: Marco Molteni To: freebsd-hackers@freebsd.org Message-Id: <20050314214352.02af2827.molter@tin.it> In-Reply-To: References: X-Mailer: Sylpheed version 1.0.0beta1 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: memory leak in inflate.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 20:45:03 -0000 On Mon, 14 Mar 2005 wrote: > Hi, I am trying to debug a memory leak in executing gzipped binaries > when the parameter list is too long. The function in question is > inflate_dynamic(). > > /* decompress until an end-of-block code */ > if (inflate_codes(glbl, tl, td, bl, bd)) > return 1; > > /* free the decoding tables, return */ > huft_free(glbl, tl); > huft_free(glbl, td); > return 0; > > > Should this be re-written as: > > i = inflate_codes(glbl, tl, td, bl, bd) ? 1 : 0; > > /* free the decoding tables, return */ > huft_free(glbl, tl); > huft_free(glbl, td); > > return (i); > > so that the Huffman tables are always freed. _If_ I remember correctly, if inflate_dynamic() returns a non-zero code it means that the decompression failed and the program itself quits right away, no memory leak. Or am I missing something? marco -- Very graphic, classical but efficient. From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 21:31:37 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 177DA16A4CE for ; Mon, 14 Mar 2005 21:31:37 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8640D43D41 for ; Mon, 14 Mar 2005 21:31:36 +0000 (GMT) (envelope-from christopher.hodgins@gmail.com) Received: by wproxy.gmail.com with SMTP id 70so1852643wra for ; Mon, 14 Mar 2005 13:31:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Z5ro118OO5fPC5xrNiggAqe+sFI9cMD2cL2bg/N0f1r5hflDdDOB8/gR0/tpoGLAY03bE9xxNgRNfwwm2GG8pPWJTmSpMJ2dn7PsVQFJYvD75ubeFW/Fp3gzwpafrbY2DqP4eNH2eDldc94Sa71sknb0GrocoUOxkvlBsEhvyO0= Received: by 10.54.84.17 with SMTP id h17mr896366wrb; Mon, 14 Mar 2005 13:31:35 -0800 (PST) Received: by 10.54.51.65 with HTTP; Mon, 14 Mar 2005 13:31:35 -0800 (PST) Message-ID: <63c3899e05031413311b453715@mail.gmail.com> Date: Mon, 14 Mar 2005 21:31:35 +0000 From: Chris Hodgins To: freebsd-hackers@freebsd.org In-Reply-To: <4235EF24.5060804@cis.strath.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <4235EF24.5060804@cis.strath.ac.uk> Subject: Re: Idea about 'skeleton jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Chris Hodgins List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 21:31:37 -0000 Not sure if this has already made it to the mailing list or not. My uni email account has started blocking email inbound and outbound to the freebsd servers. If I have missed anything since the post I am replying to I would appreciate if it could be forwarded on to me at this address...thanks :) A few more comments below. :) Anish Mistry wrote: > On Monday 14 March 2005 10:15 am, Samuel J. Greear wrote: > >>On Sunday 13 March 2005 14:24, Anish Mistry wrote: >> >>>On Sunday 13 March 2005 01:23 pm, Chris Hodgins wrote: >>> >>>>Samuel J. Greear wrote: >>>> >>>>>Not a bad 'idea' at all, although I won't comment on >>>>>semantics. I had something implemented using fs stacking (in >>>>>a very hackish way, and I believe it's lost now, so don't ask >>>>>to see it...) to implement per-jail quota's that seemed to >>>>>work quite well. >>>>> >>>>>Sam >>>> >>>>Feel free to comment on the semantics. As I said before, I am >>>>not very knowledgable about filesystems and any insight or >>>>alternative implementation you can provide would be interesting >>>>I'm sure to everyone. >>> >>>Yeah, if there was jailfs that was setup automatically for the >>>jails that supported quotas out of the box that would kill my >>>major gripe about setting up jails. >> >>Chris, your concept looks reasonable to me. I think I would >>probably do something along those lines but borrow some idea's from >>my 'jail-build' script. It has the concept of both includes and >>excludes, but it also handles another directory for what I call >>overrides. My overrides directories are per-jail and typically >>include nothing more than config. files, but it works pretty >>handily. The overrides may best be implemented in a seperate >>layer... and I don't even know that I would call something like >>this a jailfs, more like a globfs or something... I can see >>potential uses beyond jails. >> I like the idea of the overrides directory. That would work nicely. If you made the overrides directory the actual jail root that might make sense. Then when the [jail|glob]fs is mounted it will simply choose the file in the jail root directory instead of the one on the normal file system. If we implemented a sort of copy of write architecture we could add to the exceptions list on the fly. That is everything from the host (everything allowed by the config file that is) is available as a copy of the host system. When you edit a file, the filesystem simply creates its own copy for the overrides directory and we edit that. That would be very neat. Imagine that working on the ports system!! :) What do you think? >>The reasons that I never finished implementing my jailfs with quota >>support were primarily, that stackable filesystems seem to be >>somewhat of a black-art. Secondarily, I concluded that the time >>would be better spent implementing filesystem agnostic quota's in >>the vfs layer. A proper design should enable you to do a lot of >>fun things, I was thinking something along the lines of just a >>simple aggregator that a module could hand function pointers to and >>register interest in events, with options like.. just-notify-me >>and dont-continue-without-my-approval. Throw in some helpers for >>synchronizing module state to disk. The kernel side of this >>shouldn't really be very hard, but all of the userland quota >>utilities would need to be rewritten as they are tied to UFS at the >>block level. This all from about 3 years ago, and I haven't >>implemented any of it. I rock! Sounds, very interesting. >> >>Sam > > Would you be able to write up some design specs for getting all this > done? This might be a prime example of something to try to get > funding for development. > I would be willing to donate some time to work on designing and building this. Especially if working with someone who knows a lot more about filesystems than me. :) Chris From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 01:54:57 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB57916A4CE; Tue, 15 Mar 2005 01:54:57 +0000 (GMT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8189843D46; Tue, 15 Mar 2005 01:54:48 +0000 (GMT) (envelope-from jason@ec.rr.com) Received: from BARTON (cpe-065-184-201-054.ec.rr.com [65.184.201.54]) j2F1rnCh026033; Mon, 14 Mar 2005 20:53:49 -0500 (EST) Date: Tue, 15 Mar 2005 02:02:35 +0000 From: Jason Henson To: Amandeep Pannu References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> In-Reply-To: <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> (from aman@chamkila.org on Mon Mar 14 15:34:59 2005) X-Mailer: Balsa 2.2.6 Message-Id: <1110852155l.3253l.0l@BARTON> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-hackers@freebsd.org cc: Amandeep Pannu Subject: Re: Freebsd 5.3 problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 01:54:58 -0000 On 03/14/05 15:34:59, Amandeep Pannu wrote: > Hi Kris, >=20 > I had this problem before and I changed the MB and the memory and > today it > did the same thing it did before. > memtest doesnt give any errors. >=20 > Thanks > A >=20 > Memtest86 right? There is another that you run in an os like any other =20 program. Did you leave memtest86 running over night or the weekend? =20 How are your temps under load? Do you use a ups? > > On Mon, Mar 14, 2005 at 12:23:59PM -0800, Amandeep Pannu wrote: > >> > >> HI all, > >> > >> I am running FreeBSd 5.3-REL > >> > >> Today my system simply locked up. There was no error sent to > console, > >> to > >> any logs, nor the monitor screen. It was totally unresponsive to > >> network, > >> serial console, or keyboard. After 4 power-cycles, we were unable > to > >> get > >> past the BIOS as it was reporting "RAM R/W error". I have a =20 > screen > shot > >> of this from the serial port console, but it is the same as the =20 > one > from > >> before. If I hit the "F1" > > > > Looks like hardware failure. > > > > Kris > > > > -- > > In God we Trust -- all others must submit an X.509 certificate. > > -- Charles Forsythe > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers-=20 > unsubscribe@freebsd.org" > > >=20 >=20 > -- > Amandeep.S > aman@chamkila.org > http://aman.chamkila.org > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-=20 > unsubscribe@freebsd.org" >=20 >=20 >=20 >=20 From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 02:33:42 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4D7D16A4CE for ; Tue, 15 Mar 2005 02:33:42 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A65243D49 for ; Tue, 15 Mar 2005 02:33:42 +0000 (GMT) (envelope-from wanakahalugi@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so970436wri for ; Mon, 14 Mar 2005 18:33:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=FAfHvS/hJsc+U5Ynvlw9yMb4cuiiaDLLHN37no8ICeqDW8G/vs4BxNOOGI1JWjIPm6ZA04aQtU9OptlhAETBYf+NZ4QlUxqt9tccHUQxPi5GhMvBTXLadXGsmGhsP3I+LsPwe2IlXFJAeIX+4VSejmi6+DqQ1kJJjNjUpHOOzaY= Received: by 10.54.17.70 with SMTP id 70mr1029928wrq; Mon, 14 Mar 2005 18:33:41 -0800 (PST) Received: by 10.54.17.59 with HTTP; Mon, 14 Mar 2005 18:33:39 -0800 (PST) Message-ID: <5ae483a805031418337c980cf1@mail.gmail.com> Date: Tue, 15 Mar 2005 09:33:39 +0700 From: wanakahalugi To: "freebsd-hackers@freebsd.org" Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: cvsup can't work X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: wanakahalugi List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 02:33:42 -0000 hi all, I installed FreeBSD5.3REL on my PC, and I want to update the source tree and ports collection using cvsup. To do that I copy the stable-supfile to /etc directory and set its default host tag to the nearest mirror, and also set only the ports that I want to update to save bandwith. Everything is work fine except when I run the command # cvsup /etc/stable-supfile the response from the mirror server is like this : [root@iteo root]# cvsup /etc/stable-supfile Cannot connect to cvsup.id.FreeBSD.org: Connection refused Will retry at 09:31:28 I use netstat to look what happen inside those error message, and I found this one : [cakra@iteo cakra]$ netstat Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 192.100.40.14.53875 mirror.cbn.net.i.cvsup SYN_SENT The PC never ESTABLISHED the connection to the server it's only do the SYN_SENT. Why it happen? Is cvsup using certain ports so I can make some proper change on my firewall? From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 02:50:46 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A312F16A4CE for ; Tue, 15 Mar 2005 02:50:46 +0000 (GMT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7884643D41 for ; Tue, 15 Mar 2005 02:50:46 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32])0.04 <0IDD00G2AH8LQRK0@vms040.mailsrvcs.net> for freebsd-hackers@freebsd.org; Mon, 14 Mar 2005 20:50:46 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id 228E12CE75B; Mon, 14 Mar 2005 18:50:45 -0800 (PST) Date: Mon, 14 Mar 2005 18:50:44 -0800 From: "Michael C. Shultz" In-reply-to: <5ae483a805031418337c980cf1@mail.gmail.com> To: wanakahalugi , "freebsd-hackers@freebsd.org" Message-id: <200503141850.44804.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <5ae483a805031418337c980cf1@mail.gmail.com> User-Agent: KMail/1.7.2 Subject: Re: cvsup can't work X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 02:50:46 -0000 On Monday 14 March 2005 06:33 pm, wanakahalugi wrote: > hi all, > > I installed FreeBSD5.3REL on my PC, and I want to update the source > tree and ports collection using cvsup. > To do that I copy the stable-supfile to /etc directory and set its > default host tag to the nearest mirror, and also set only the ports > that I want to update to save bandwith. > Everything is work fine except when I run the command # cvsup > /etc/stable-supfile the response from the mirror server is like this > : > > [root@iteo root]# cvsup /etc/stable-supfile > Cannot connect to cvsup.id.FreeBSD.org: Connection refused > Will retry at 09:31:28 > > I use netstat to look what happen inside those error message, and I > found this one : > > [cakra@iteo cakra]$ netstat > Active Internet connections > Proto Recv-Q Send-Q Local Address Foreign Address > (state) tcp4 0 0 192.100.40.14.53875 > mirror.cbn.net.i.cvsup SYN_SENT > > The PC never ESTABLISHED the connection to the server it's only do > the SYN_SENT. Why it happen? Is cvsup using certain ports so I can > make some proper change on my firewall? > _______________________________________________ > 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" It uses port 5999 see /etc/services -Mike From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 03:05:34 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE0A016A4D0 for ; Tue, 15 Mar 2005 03:05:34 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74D3443D53 for ; Tue, 15 Mar 2005 03:05:34 +0000 (GMT) (envelope-from uber.caulker@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so973917wri for ; Mon, 14 Mar 2005 19:05:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=tu5gG2NhCofXhi+q6HFQKKPMH+tglnI9SzMyohUTGpfwKVMYo413WVd/Yyg9GfdGJxCKstaQUeWRy7nRmyrYQJMNgeXz5eCu8HAnYf0h85oImTYZwrzvh7IGcCVt9kYKyyJj9oz6E67QKlHVW8kBiqIMIfk5QBN6qIE+ojvTpEM= Received: by 10.54.17.71 with SMTP id 71mr1043711wrq; Mon, 14 Mar 2005 19:05:34 -0800 (PST) Received: by 10.54.19.10 with HTTP; Mon, 14 Mar 2005 19:05:34 -0800 (PST) Message-ID: <5e52cc0005031419056fdf10c6@mail.gmail.com> Date: Mon, 14 Mar 2005 22:05:34 -0500 From: Matt Kory To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: poll or select for ppi? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Matt Kory List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 03:05:35 -0000 Is it possible to use poll or select to detect a change in the status bits of the parallel port? I tried something like this, and took bits 5 and 6 of the status register low and nothing seemed to happen. Is what I am trying to do even possible, or I am supposed to take a certain bit low to cause a read event? Any help is appreciated. int ppi_fd; char port[] = "/dev/ppi0"; ppi_fd = open(port, O_RDWR); fd_set rfds; struct timeval tv; tv.tv_sec = 0; tv.tv_usec = 100000; while(1) { FD_ZERO( &rfds ); FD_SET( ppi_fd, &rfds ); if ( select(1, &rfds, NULL, NULL, &tv) ) { printf("hi\n"); } } From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 03:30:50 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 701C616A4CE for ; Tue, 15 Mar 2005 03:30:50 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E85443D5F for ; Tue, 15 Mar 2005 03:30:49 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j2F3Uf93057474; Tue, 15 Mar 2005 14:00:41 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org, Matt Kory Date: Tue, 15 Mar 2005 14:00:29 +1030 User-Agent: KMail/1.7.92 References: <5e52cc0005031419056fdf10c6@mail.gmail.com> In-Reply-To: <5e52cc0005031419056fdf10c6@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3584423.E7INMt5laK"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503151400.36841.doconnor@gsoft.com.au> X-Spam-Score: -5.4 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Subject: Re: poll or select for ppi? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 03:30:50 -0000 --nextPart3584423.E7INMt5laK Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tue, 15 Mar 2005 13:35, Matt Kory wrote: > Is it possible to use poll or select to detect a change in the status > bits of the parallel port? I tried something like this, and took bits > 5 and 6 of the status register low and nothing seemed to happen. Is > what I am trying to do even possible, or I am supposed to take a > certain bit low to cause a read event? Any help is appreciated. PPI doesn't support select/poll. I don't think ere is any support for interrupt based notifications.. The on= ly=20 thing interrupts appear to be used for is for IEE1284 state changes. ie you're stuck with polling :( =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart3584423.E7INMt5laK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCNlbc5ZPcIHs/zowRAtRHAKCB5noPXuob0Kry5bg9Tc0t4sGP0ACeNEef qWPh+YYACD05yYst0VW577M= =COIr -----END PGP SIGNATURE----- --nextPart3584423.E7INMt5laK-- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 03:38:32 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04C5716A4CE for ; Tue, 15 Mar 2005 03:38:32 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4263F43D2D for ; Tue, 15 Mar 2005 03:38:31 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 930F66520C; Tue, 15 Mar 2005 03:35:46 +0000 (GMT) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01066-07; Tue, 15 Mar 2005 03:35:46 +0000 (GMT) Received: from empiric.dek.spc.org (dhcp120.icir.org [192.150.187.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 6568F651F4; Tue, 15 Mar 2005 03:35:45 +0000 (GMT) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 8AF0367B9; Mon, 14 Mar 2005 19:38:47 -0800 (PST) Date: Mon, 14 Mar 2005 19:38:47 -0800 From: Bruce M Simpson To: Matt Kory Message-ID: <20050315033847.GA8085@empiric.icir.org> Mail-Followup-To: Matt Kory , freebsd-hackers@FreeBSD.org References: <5e52cc0005031419056fdf10c6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5e52cc0005031419056fdf10c6@mail.gmail.com> cc: freebsd-hackers@FreeBSD.org Subject: Re: poll or select for ppi? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 03:38:32 -0000 On Mon, Mar 14, 2005 at 10:05:34PM -0500, Matt Kory wrote: > Is it possible to use poll or select to detect a change in the status > bits of the parallel port? I tried something like this, and took bits > 5 and 6 of the status register low and nothing seemed to happen. Is > what I am trying to do even possible, or I am supposed to take a > certain bit low to cause a read event? Any help is appreciated. Disclaimer: I'm no expert on the parallel port. The man page for ppi(4) says that all I/O is via ioctl(), which isn't covered by the select() mechanism. You'd either have to poll PPIGSTATUS from userland on a timer, or perhaps hack the driver to use a kevent. Considering there's probably no way to get a hardware interrupt for the status change directly via ppi(4), you might need to consider writing a set of custom ppbus microsequences and a driver for your application. Regards, BMS From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 04:14:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B05A16A4CE for ; Tue, 15 Mar 2005 04:14:30 +0000 (GMT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CDCA43D5D for ; Tue, 15 Mar 2005 04:14:30 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32])0.04 <0IDD00CGKL45Q2L1@vms040.mailsrvcs.net> for freebsd-hackers@freebsd.org; Mon, 14 Mar 2005 22:14:29 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id 316E82CE75B; Mon, 14 Mar 2005 20:14:29 -0800 (PST) Date: Mon, 14 Mar 2005 20:14:28 -0800 From: "Michael C. Shultz" To: freebsd-hackers@freebsd.org Message-id: <200503142014.28897.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Content-disposition: inline User-Agent: KMail/1.7.2 Subject: threads question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 04:14:30 -0000 Hi, I've just reached a point in a program I'm writing where I'd like to do threading. When I try to start a thread like this: pthread_create(&thread, &attr, MGPMrUpgrade, property ); where property is a structure of many variables it doesn't get passed to the function. If I do this: pthread_create(&thread, &attr, MGPMrUpgrade( &property ), NULL ); It works, but just seems wrong. Can anyone point me to a source file, preferably in /usr/src somewhere that passes a structure to a function being run as a thread so I may study the proper way to do this? Thank you. -Mike From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 04:57:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC75516A4CE for ; Tue, 15 Mar 2005 04:57:30 +0000 (GMT) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F2B643D58 for ; Tue, 15 Mar 2005 04:57:30 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) j2F4vTwd026705; Mon, 14 Mar 2005 23:57:29 -0500 (EST) Date: Mon, 14 Mar 2005 23:57:29 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: "Michael C. Shultz" In-Reply-To: <200503142014.28897.ringworm01@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) cc: freebsd-hackers@freebsd.org Subject: Re: threads question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 04:57:31 -0000 On Mon, 14 Mar 2005, Michael C. Shultz wrote: > Hi, I've just reached a point in a program I'm writing where I'd like to > do threading. > > When I try to start a thread like this: > > pthread_create(&thread, &attr, MGPMrUpgrade, property ); ^^^^^^^^ &property You should compile with -Wall and get rid of any warnings. > where property is a structure of many variables it doesn't get passed > to the function. If I do this: > > pthread_create(&thread, &attr, MGPMrUpgrade( &property ), NULL ); That looks like it will actuall call MGPMrUpgrade() and use its return value as the function pointer. > It works, but just seems wrong. > > Can anyone point me to a source file, preferably in /usr/src somewhere > that passes a structure to a function being run as a thread so I may > study the proper way to do this? src/lib/libpthread/test/sem_d.c src/lib/libpthread/test/mutex_d.c src/lib/libpthread/test/sigwait_d.c I'd suggest getting Butenhof's "Programming with POSIX Threads" book. -- DE From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 05:10:35 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74EE816A4CE; Tue, 15 Mar 2005 05:10:35 +0000 (GMT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A71643D4C; Tue, 15 Mar 2005 05:10:35 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IDD00G32NPMR7Q0@vms040.mailsrvcs.net>; Mon, 14 Mar 2005 23:10:35 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id C28542CE75B; Mon, 14 Mar 2005 21:10:33 -0800 (PST) Date: Mon, 14 Mar 2005 21:10:32 -0800 From: "Michael C. Shultz" In-reply-to: To: Daniel Eischen , freebsd-hackers@freebsd.org Message-id: <200503142110.33053.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: User-Agent: KMail/1.7.2 cc: reso3w83@verizon.net Subject: Re: threads question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 05:10:35 -0000 On Monday 14 March 2005 08:57 pm, Daniel Eischen wrote: > On Mon, 14 Mar 2005, Michael C. Shultz wrote: > > Hi, I've just reached a point in a program I'm writing where I'd > > like to do threading. > > > > When I try to start a thread like this: > > > > pthread_create(&thread, &attr, MGPMrUpgrade, property ); > > ^^^^^^^^ &property > > You should compile with -Wall and get rid of any warnings. > > > where property is a structure of many variables it doesn't get > > passed to the function. If I do this: > > > > pthread_create(&thread, &attr, MGPMrUpgrade( &property ), NULL ); > > That looks like it will actuall call MGPMrUpgrade() and use its > return value as the function pointer. > > > It works, but just seems wrong. > > > > Can anyone point me to a source file, preferably in /usr/src > > somewhere that passes a structure to a function being run as a > > thread so I may study the proper way to do this? > > src/lib/libpthread/test/sem_d.c > src/lib/libpthread/test/mutex_d.c > src/lib/libpthread/test/sigwait_d.c Great! > > I'd suggest getting Butenhof's "Programming with POSIX Threads" book. I did a google on "Programming with POSIX Threads" and this site popped up first. I remember this guy's stuff from way back when on signals I think, it was great for a beginner so maybe this one is worth looking at too. "http://users.actcom.co.il/~choo/lupg/tutorials/multi-thread/multi-thread.html" I found the book at Amazon, thanks for the tip! Many thanks! -Mike From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 08:02:33 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC63F16A4CE; Tue, 15 Mar 2005 08:02:33 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CA1743D46; Tue, 15 Mar 2005 08:02:33 +0000 (GMT) (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 1DB70V-0005xD-5c; Tue, 15 Mar 2005 10:02:27 +0200 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: Scott Long In-reply-to: Your message of Fri, 25 Feb 2005 07:47:55 -0700 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 15 Mar 2005 10:02:27 +0200 From: Danny Braniss Message-ID: cc: hackers@freebsd.org cc: scsi@freebsd.org Subject: Re: iSCSI initiator driver beta version, testers wanted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 08:02:34 -0000 things are looking much better 2day, got tag queuing to work, and now it's much faster. Q: how can the driver tell the cam to enable queing (ie: camcontrol tag 0:0:0 -Nn), and Q: is there a rule of thumb as to how many tag'ed? thanks, danny PS: soon there will be a new beta, any news with the old one? From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 10:52:50 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F9D816A4CE for ; Tue, 15 Mar 2005 10:52:50 +0000 (GMT) Received: from tut.by (speedy.tutby.com [195.209.41.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB1A243D3F for ; Tue, 15 Mar 2005 10:52:48 +0000 (GMT) (envelope-from myst@tut.by) Received: from [213.184.242.154] (account myst@tut.by) by tut.by (CommuniGate Pro WebUser 4.1.8) with HTTP id 25122287 for freebsd-hackers@freebsd.org; Tue, 15 Mar 2005 12:52:47 +0200 From: Stas Myasnikov To: freebsd-hackers@freebsd.org X-Mailer: CommuniGate Pro WebUser Interface v.4.1.8 Date: Tue, 15 Mar 2005 12:52:47 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251"; format="flowed" Content-Transfer-Encoding: 8bit Subject: What is this GEOM thing? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 10:52:50 -0000 Hello, hackers. Can anyone tell me what is GEOM basically? I know that there's geom@, but I think it's about concrete realisation. I know that it's a layer between device drivers and devfs, but do I really need it on my home PC? Should I include it in the KERNEL? Bye. --- http://www.flirt.by - áåëîðóññêèé ñåðâåð çíàêîìñòâ. Äåñÿòêè òûñÿ÷ áåëîðóññêèõ àíêåò ñ ôîòîãðàôèÿìè. Ñîòíè ïàðíåé è äåâóøåê ãîòîâû ê online-îáùåíèþ ïðÿìî ñåé÷àñ. From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 12:43:02 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5427016A4CE for ; Tue, 15 Mar 2005 12:43:02 +0000 (GMT) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id F421C43D2D for ; Tue, 15 Mar 2005 12:43:01 +0000 (GMT) (envelope-from des@des.no) Received: from bgo1sminn1.broadpark.no ([217.13.4.93]) by bgo1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IDE00AGQ8EHWAA0@bgo1smout1.broadpark.no> for freebsd-hackers@freebsd.org; Tue, 15 Mar 2005 13:37:29 +0100 (CET) Received: from dsa.des.no ([80.203.228.37]) by bgo1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IDE00LX88QLEJG1@bgo1sminn1.broadpark.no> for freebsd-hackers@freebsd.org; Tue, 15 Mar 2005 13:44:45 +0100 (CET) Received: by dsa.des.no (Pony Express, from userid 666) id 56A369B55C; Tue, 15 Mar 2005 13:42:56 +0100 (CET) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id AADB19B4BD; Tue, 15 Mar 2005 13:42:52 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id A0ED933C3E; Tue, 15 Mar 2005 13:42:52 +0100 (CET) Date: Tue, 15 Mar 2005 13:42:52 +0100 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) In-reply-to: To: Stas Myasnikov Message-id: <86ll8pkrlf.fsf@xps.des.no> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on dsa.des.no References: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.0.2 X-Spam-Level: cc: freebsd-hackers@freebsd.org Subject: Re: What is this GEOM thing? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 12:43:02 -0000 Stas Myasnikov writes: > Can anyone tell me what is GEOM basically? I know that there's geom@, > but I think it's about concrete realisation. It's an abstraction layer for dealing with disk transformations (partitioning, RAID, encryption etc.) > I know that it's a layer between device drivers and devfs, but do > I really need it on my home PC? Should I include it in the KERNEL? GEOM is not optional. Your computer would be unable to boot without it. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 13:11:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4690116A4CE for ; Tue, 15 Mar 2005 13:11:30 +0000 (GMT) Received: from mxsf36.cluster1.charter.net (mxsf36.cluster1.charter.net [209.225.28.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACB8B43D1F for ; Tue, 15 Mar 2005 13:11:29 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip04.cluster1.charter.net (mxip04a.cluster1.charter.net [209.225.28.134])j2FDBSBB016533 for ; Tue, 15 Mar 2005 08:11:28 -0500 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip04.cluster1.charter.net with ESMTP; 15 Mar 2005 08:11:29 -0500 X-Ironport-AV: i="3.90,164,1107752400"; d="scan'208"; a="41109954:sNHT12583890" Date: Tue, 15 Mar 2005 08:11:24 -0500 (EST) From: c0ldbyte To: "Michael C. Shultz" In-Reply-To: <200503141850.44804.ringworm01@gmail.com> Message-ID: <20050315080739.I3817@eleanor.us1.wmi.uvac.net> References: <5ae483a805031418337c980cf1@mail.gmail.com> <200503141850.44804.ringworm01@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: "freebsd-hackers@freebsd.org" cc: wanakahalugi Subject: Re: cvsup can't work X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 13:11:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 14 Mar 2005, Michael C. Shultz wrote: > On Monday 14 March 2005 06:33 pm, wanakahalugi wrote: >> hi all, >> >> I installed FreeBSD5.3REL on my PC, and I want to update the source >> tree and ports collection using cvsup. >> To do that I copy the stable-supfile to /etc directory and set its >> default host tag to the nearest mirror, and also set only the ports >> that I want to update to save bandwith. >> Everything is work fine except when I run the command # cvsup >> /etc/stable-supfile the response from the mirror server is like this >> : >> >> [root@iteo root]# cvsup /etc/stable-supfile >> Cannot connect to cvsup.id.FreeBSD.org: Connection refused >> Will retry at 09:31:28 >> >> I use netstat to look what happen inside those error message, and I >> found this one : >> >> [cakra@iteo cakra]$ netstat >> Active Internet connections >> Proto Recv-Q Send-Q Local Address Foreign Address >> (state) tcp4 0 0 192.100.40.14.53875 >> mirror.cbn.net.i.cvsup SYN_SENT >> >> The PC never ESTABLISHED the connection to the server it's only do >> the SYN_SENT. Why it happen? Is cvsup using certain ports so I can >> make some proper change on my firewall? > > It uses port 5999 see /etc/services > > -Mike > No I think his problem is using the server he has specified "cvsup.id.FreeBSD.org" change ".id." to a different country instead. sed s/\.id\./\.us\./g Since there is only one server listed in that country more then likely OOOOH NO "Its dead!" Try another. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F iD8DBQFCNt7/smFQuvffl58RAiqnAJ97gomWEFWg8ENT5ujG1Xf3qWmsNwCeK44o P8wUJnwFtvMfy2COGqbZPig= =61Jl -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 21:25:26 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D8C616A4D1 for ; Mon, 14 Mar 2005 21:25:23 +0000 (GMT) Received: from coverity.dreamhost.com (coverity.dreamhost.com [66.33.192.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12E2443D54 for ; Mon, 14 Mar 2005 21:25:23 +0000 (GMT) (envelope-from tedu@coverity.com) Received: from [10.0.0.66] (64-173-147-27.ded.pacbell.net [64.173.147.27]) by coverity.dreamhost.com (Postfix) with ESMTP id AE8449089D for ; Mon, 14 Mar 2005 13:25:22 -0800 (PST) Message-ID: <42360141.3080104@coverity.com> Date: Mon, 14 Mar 2005 13:25:21 -0800 From: Ted Unangst User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 15 Mar 2005 13:24:20 +0000 Subject: some bugs in the kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 21:25:26 -0000 These bugs were found using the Coverity Prevent static analysis tool. Memory Leak File: usr/home/tedu/src/sys/geom/geom_bsd.c Function: g_bsd_ioctl Returning at line 378 leaks the just allocated 'label'. Buffer Overrun File: usr/home/tedu/src/sys/dev/hptmv/gui_lib.c Function: hpt_default_ioctl At line 1262, the loop bound of MAX_ARRAY_PER_VBUS is defined to be twice the size of pVDevice (MAX_VDEVICE_PER_VBUS). Buffer Overrun File: usr/home/tedu/src/sys/dev/hptmv/entry.c Function: SetInquiryData At line 2660, loop bound of 20 is greater than size of VendorID. Memory Leak File: usr/home/tedu/src/sys/dev/pci/pci.c Function: pci_suspend If bus_generic_suspend fails at line 1061, 'devlist' is leaked. Use After Free, Memory Corruption File: usr/home/tedu/src/sys/dev/mlx/mlx_pci.c Function: mlx_pci_attach Calling mlx_free on error at line 218 is dangerous, since mlx_attach also called it. Eventually this will double free assorted bus resources. NULL pointer dereference File: usr/home/tedu/src/sys/pci/if_ti.c Function: ti_setmulti malloc return at 1628 is not checked against NULL. -- Ted Unangst www.coverity.com Coverity, Inc. From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 13:41:41 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BDFB16A4CE for ; Tue, 15 Mar 2005 13:41:41 +0000 (GMT) Received: from mxsf31.cluster1.charter.net (mxsf31.cluster1.charter.net [209.225.28.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0A3543D31 for ; Tue, 15 Mar 2005 13:41:40 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip09.cluster1.charter.net (mxip09a.cluster1.charter.net [209.225.28.139])j2FDfdKm005035 for ; Tue, 15 Mar 2005 08:41:39 -0500 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip09.cluster1.charter.net with ESMTP; 15 Mar 2005 08:41:39 -0500 X-Ironport-AV: i="3.90,164,1107752400"; d="scan'208"; a="663488538:sNHT13629194" Date: Tue, 15 Mar 2005 08:41:33 -0500 (EST) From: c0ldbyte To: Ted Unangst In-Reply-To: <42360141.3080104@coverity.com> Message-ID: <20050315084106.U3949@eleanor.us1.wmi.uvac.net> References: <42360141.3080104@coverity.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: hackers@freebsd.org Subject: Re: some bugs in the kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 13:41:41 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 14 Mar 2005, Ted Unangst wrote: > These bugs were found using the Coverity Prevent static analysis tool. > > Memory Leak > File: usr/home/tedu/src/sys/geom/geom_bsd.c > Function: g_bsd_ioctl > Returning at line 378 leaks the just allocated 'label'. > > Buffer Overrun > File: usr/home/tedu/src/sys/dev/hptmv/gui_lib.c > Function: hpt_default_ioctl > At line 1262, the loop bound of MAX_ARRAY_PER_VBUS is defined to be twice the > size of pVDevice (MAX_VDEVICE_PER_VBUS). > > Buffer Overrun > File: usr/home/tedu/src/sys/dev/hptmv/entry.c > Function: SetInquiryData > At line 2660, loop bound of 20 is greater than size of VendorID. > > Memory Leak > File: usr/home/tedu/src/sys/dev/pci/pci.c > Function: pci_suspend > If bus_generic_suspend fails at line 1061, 'devlist' is leaked. > > Use After Free, Memory Corruption > File: usr/home/tedu/src/sys/dev/mlx/mlx_pci.c > Function: mlx_pci_attach > Calling mlx_free on error at line 218 is dangerous, since mlx_attach also > called it. Eventually this will double free assorted bus resources. > > NULL pointer dereference > File: usr/home/tedu/src/sys/pci/if_ti.c > Function: ti_setmulti > malloc return at 1628 is not checked against NULL. > > > -- > Ted Unangst www.coverity.com Coverity, Inc. Pretty cool, thanks.. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F iD8DBQFCNuYQsmFQuvffl58RAqkEAJ41uvoxxZOLoclnAO15d+rlewIXOACeOyRg PJ48VXqgInEjY3FDOv42Aco= =RkCW -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 13:46:47 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BD6916A4CE; Tue, 15 Mar 2005 13:46:47 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id B861143D1D; Tue, 15 Mar 2005 13:46:44 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.1/8.13.1) with ESMTP id j2FDkgiW018273; Tue, 15 Mar 2005 06:46:43 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <4236E6AB.1060405@samsco.org> Date: Tue, 15 Mar 2005 06:44:11 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Danny Braniss References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: hackers@freebsd.org cc: scsi@freebsd.org Subject: Re: iSCSI initiator driver beta version, testers wanted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 13:46:47 -0000 Danny Braniss wrote: > things are looking much better 2day, got tag queuing to work, and now it's > much faster. > Q: how can the driver tell the cam to enable queing (ie: camcontrol tag 0:0:0 > -Nn), and case XPT_PATH_INQ: cpi->hba_inquiry = PI_TAG_ABLE > Q: is there a rule of thumb as to how many tag'ed? When you call cam_sim_alloc(), there are arguments for how many concurrent tagged and untagged transactions the driver can handle. I don't know how tags work in iscsi, so I can't say what a good number is here. Note that tag management is left completely up to the driver; CAM will tell you whether or not to use a tag for a particular CCB, but it's up to the driver to assign and track the tag number. > > thanks, > danny > PS: soon there will be a new beta, any news with the old one? > > Sorry, I haven't had much time to review the old one yet. Sounds like you're making really good progress, though. Scott From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 15:22:35 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D11F16A4CE; Tue, 15 Mar 2005 15:22:35 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F5BE43D54; Tue, 15 Mar 2005 15:22:35 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j2FFMJDF090608; Tue, 15 Mar 2005 09:22:19 -0600 (CST) (envelope-from dan) Date: Tue, 15 Mar 2005 09:22:19 -0600 From: Dan Nelson To: Scott Long Message-ID: <20050315152219.GD67769@dan.emsphone.com> References: <4236E6AB.1060405@samsco.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4236E6AB.1060405@samsco.org> X-OS: FreeBSD 5.4-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: hackers@freebsd.org cc: scsi@freebsd.org Subject: Re: iSCSI initiator driver beta version, testers wanted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 15:22:35 -0000 In the last episode (Mar 15), Scott Long said: > Danny Braniss wrote: > >things are looking much better 2day, got tag queuing to work, and > >now it's much faster. Q: how can the driver tell the cam to enable > >queing (ie: camcontrol tag 0:0:0 -Nn), and > > case XPT_PATH_INQ: > cpi->hba_inquiry = PI_TAG_ABLE > > >Q: is there a rule of thumb as to how many tag'ed? > > When you call cam_sim_alloc(), there are arguments for how many > concurrent tagged and untagged transactions the driver can handle. I > don't know how tags work in iscsi, so I can't say what a good number > is here. Note that tag management is left completely up to the > driver; CAM will tell you whether or not to use a tag for a > particular CCB, but it's up to the driver to assign and track the tag > number. I would guess that tags would be even more useful for iscsi than direct-attached scsi, due to the extra latency. The more the better. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 17:48:04 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6D8216A4CE; Tue, 15 Mar 2005 17:48:04 +0000 (GMT) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BF7F43D4C; Tue, 15 Mar 2005 17:48:04 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IDE00J9SMS3DER0@vms048.mailsrvcs.net>; Tue, 15 Mar 2005 11:48:03 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id 7A6412CE75B; Tue, 15 Mar 2005 09:48:02 -0800 (PST) Date: Tue, 15 Mar 2005 09:48:01 -0800 From: "Michael C. Shultz" In-reply-to: To: Daniel Eischen , freebsd-hackers@freebsd.org Message-id: <200503150948.01624.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: User-Agent: KMail/1.7.2 Subject: Re: threads question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 17:48:04 -0000 On Monday 14 March 2005 08:57 pm, Daniel Eischen wrote: > On Mon, 14 Mar 2005, Michael C. Shultz wrote: > > Hi, I've just reached a point in a program I'm writing where I'd > > like to do threading. > > > > When I try to start a thread like this: > > > > pthread_create(&thread, &attr, MGPMrUpgrade, property ); > > ^^^^^^^^ &property > > You should compile with -Wall and get rid of any warnings. > > > where property is a structure of many variables it doesn't get > > passed to the function. If I do this: > > > > pthread_create(&thread, &attr, MGPMrUpgrade( &property ), NULL ); > > That looks like it will actuall call MGPMrUpgrade() and use its > return value as the function pointer. > > > It works, but just seems wrong. > > > > Can anyone point me to a source file, preferably in /usr/src > > somewhere that passes a structure to a function being run as a > > thread so I may study the proper way to do this? > > src/lib/libpthread/test/sem_d.c > src/lib/libpthread/test/mutex_d.c > src/lib/libpthread/test/sigwait_d.c > > I'd suggest getting Butenhof's "Programming with POSIX Threads" book. Daniel, sorry to bother you again but I ran into something that is either a bug or I am missing a vital piece of information somewhere. Here is the situation: this works perfectly because I moved MGPMrUpgrade into the same .c file so it would be a static function: structProperty* property; pthread_t threads[NTHREADS]; pthread_create( &threads[0], NULL, zzMGPMrUpgrade, property ); When I use MGPMrUpgrade from a shared library the function runs yet property isn't being passed! I remember from assembly days that there were some stack tricks to be done when making calls to a shared library in order to pass the parameters, I forget what they are (been ages since I did assembly programming) but anyways it seems like with gcc passing the args through the stack to a function in a shared library isn't being handled correctly. Am I missing something obvious? -Mike From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 18:19:26 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD60416A4CE for ; Tue, 15 Mar 2005 18:19:26 +0000 (GMT) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44ACE43D49 for ; Tue, 15 Mar 2005 18:19:26 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) j2FIJPse029322; Tue, 15 Mar 2005 13:19:25 -0500 (EST) Date: Tue, 15 Mar 2005 13:19:25 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: "Michael C. Shultz" In-Reply-To: <200503150948.01624.ringworm01@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) cc: freebsd-hackers@freebsd.org Subject: Re: threads question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 18:19:27 -0000 On Tue, 15 Mar 2005, Michael C. Shultz wrote: > > Daniel, sorry to bother you again but I ran into something that is > either a bug or I am missing a vital piece of information somewhere. > Here is the situation: > > this works perfectly because I moved MGPMrUpgrade into > the same .c file so it would be a static function: > > structProperty* property; > pthread_t threads[NTHREADS]; > pthread_create( &threads[0], NULL, zzMGPMrUpgrade, property ); > > When I use MGPMrUpgrade from a shared library the function runs > yet property isn't being passed! > > I remember from assembly days that there were some stack tricks to be > done when making calls to a shared library in order to pass the > parameters, I forget what they are (been ages since I did assembly > programming) but anyways it seems like with gcc passing the args > through the stack to a function in a shared library isn't being handled > correctly. Am I missing something obvious? I don't know. You have to be sure that whatever property points to stays valid for the life of the thread (or at least as long as it is used). -- DE From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 19:30:55 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 298B016A4CE for ; Tue, 15 Mar 2005 19:30:55 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CE3743D2D for ; Tue, 15 Mar 2005 19:30:54 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mailhost.stack.nl (Postfix) with ESMTP id 07C081F06A; Tue, 15 Mar 2005 20:30:53 +0100 (CET) Received: by snail.stack.nl (Postfix, from userid 333) id F3E0D2287B; Tue, 15 Mar 2005 20:30:52 +0100 (CET) Date: Tue, 15 Mar 2005 20:30:52 +0100 From: Marc Olzheim To: Marco Molteni Message-ID: <20050315193052.GA74516@stack.nl> References: <20050314214352.02af2827.molter@tin.it> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <20050314214352.02af2827.molter@tin.it> X-Operating-System: FreeBSD snail.stack.nl 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.8i cc: freebsd-hackers@freebsd.org Subject: Re: memory leak in inflate.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 19:30:55 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 14, 2005 at 09:43:52PM +0100, Marco Molteni wrote: > On Mon, 14 Mar 2005 wrote: > > Hi, I am trying to debug a memory leak in executing gzipped binaries ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > when the parameter list is too long. The function in question is > > inflate_dynamic().=20 > > _If_ I remember correctly, if inflate_dynamic() returns a non-zero > code it means that the decompression failed and the program itself > quits right away, no memory leak. Or am I missing something? Your missing something: /usr/src/sys/kern/inflate.c ;-) Looks like a good patch to me. Marc --huq684BweRXVnRxX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCNzfsezjnobFOgrERAj/UAJ4s+Y5qnGQDpaWu494Q6tCYr6QQYgCgzd0X tSYiDI6KOM1vPTW4eKYOtyc= =HMTj -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 19:35:57 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42B4616A4CE; Tue, 15 Mar 2005 19:35:57 +0000 (GMT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14C6843D49; Tue, 15 Mar 2005 19:35:57 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IDE0011QRRWME31@vms046.mailsrvcs.net>; Tue, 15 Mar 2005 13:35:56 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id 1C8152CE75B; Tue, 15 Mar 2005 11:35:54 -0800 (PST) Date: Tue, 15 Mar 2005 11:35:52 -0800 From: "Michael C. Shultz" In-reply-to: To: Daniel Eischen , freebsd-hackers@freebsd.org Message-id: <200503151135.53269.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: User-Agent: KMail/1.7.2 Subject: Re: threads question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 19:35:57 -0000 On Tuesday 15 March 2005 10:19 am, Daniel Eischen wrote: > On Tue, 15 Mar 2005, Michael C. Shultz wrote: > > Daniel, sorry to bother you again but I ran into something that is > > either a bug or I am missing a vital piece of information > > somewhere. Here is the situation: > > > > this works perfectly because I moved MGPMrUpgrade into > > the same .c file so it would be a static function: > > > > structProperty* property; > > pthread_t threads[NTHREADS]; > > pthread_create( &threads[0], NULL, zzMGPMrUpgrade, property ); > > > > When I use MGPMrUpgrade from a shared library the function runs > > yet property isn't being passed! > > > > I remember from assembly days that there were some stack tricks to > > be done when making calls to a shared library in order to pass the > > parameters, I forget what they are (been ages since I did assembly > > programming) but anyways it seems like with gcc passing the args > > through the stack to a function in a shared library isn't being > > handled correctly. Am I missing something obvious? > > I don't know. You have to be sure that whatever property > points to stays valid for the life of the thread (or at > least as long as it is used). I have to reply to you through freebsd-hackers@freebsd.org because your blocking verizon's smtp. I just converted everything to static libraries and now pthread_create is working just fine. The answer is probably something like what you just said, scope being lost when making the call to a shared library. Why is it ok going to a static library but not a shared though? In a few days, when there is time, I will write an assembly routine with nasm to use pthread_create and pass my structProperty argument to a shared library with it, this way I can see just exactly what is being passed through the stack. Then hopefully I can find some C/assembly guru who can look at it and teach me how to do it with C. Messing with and examining stacks in C is way beyond my present abilities. (I'm a C newbie) -Mike From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 20:02:23 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCD3B16A4CE for ; Tue, 15 Mar 2005 20:02:23 +0000 (GMT) Received: from smtpout-1.priv.cc.uic.edu (smtpout-1.cc.uic.edu [128.248.155.232]) by mx1.FreeBSD.org (Postfix) with SMTP id 12FFF43D2D for ; Tue, 15 Mar 2005 20:02:23 +0000 (GMT) (envelope-from zholla1@uic.edu) Received: (qmail 23466 invoked from network); 15 Mar 2005 14:02:15 -0600 Received: from icarus.cc.uic.edu (128.248.155.80) by smtpout-1.cc.uic.edu with SMTP; 15 Mar 2005 14:02:15 -0600 Date: Tue, 15 Mar 2005 14:02:15 -0600 (CST) From: Zera William Holladay X-X-Sender: zholla1@icarus.cc.uic.edu To: "Michael C. Shultz" In-Reply-To: <200503151135.53269.ringworm01@gmail.com> Message-ID: References: <200503151135.53269.ringworm01@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: threads question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 20:02:23 -0000 On Tue, 15 Mar 2005, Michael C. Shultz wrote: [cut] > The answer is probably something like what you just said, scope being > lost when making the call to a shared library. Why is it ok going to a > static library but not a shared though? There is probably a race condition, so your code will work *some* of the time unless you prevent the race condition. I don't have an answer to your question, but I don't think it is a valid question. The scope of "*priority" can remain valid or invalid for random reasons and thus may work some of the time, but the only way to guarantee that it works all the time is to eliminate the race condition by making sure that *property is valid though the life of the thread. -Zera From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 20:22:45 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35A5B16A4CF for ; Tue, 15 Mar 2005 20:22:45 +0000 (GMT) Received: from mgw-x2.nokia.com (mgw-x2.nokia.com [131.228.20.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id E378943D62 for ; Tue, 15 Mar 2005 20:22:43 +0000 (GMT) (envelope-from Vijay.Singh@nokia.com) Received: from esdks001.ntc.nokia.com (esdks001.ntc.nokia.com [172.21.138.120])j2FKMfU10682; Tue, 15 Mar 2005 22:22:41 +0200 (EET) X-Scanned: Tue, 15 Mar 2005 22:34:17 +0200 Nokia Message Protector V1.3.34 2004121512 - RELEASE Received: (from root@localhost) by esdks001.ntc.nokia.com (8.12.9/8.12.9) id j2FKYHsK021865; Tue, 15 Mar 2005 22:34:17 +0200 Received: from mgw-int1.ntc.nokia.com (172.21.143.96) by esdks001.ntc.nokia.com 00ozm8JP; Tue, 15 Mar 2005 22:33:52 EET Received: from daebh001.NOE.Nokia.com (daebh001.americas.nokia.com [10.241.35.121])j2FKIPM24869; Tue, 15 Mar 2005 22:18:25 +0200 (EET) Received: from mvebe001.NOE.Nokia.com ([172.18.140.37]) by daebh001.NOE.Nokia.com with Microsoft SMTPSVC(5.0.2195.6881); Tue, 15 Mar 2005 14:15:11 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 15 Mar 2005 12:15:11 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: memory leak in inflate.c Thread-Index: AcUpleiGw/L/1TeiQ06WR6uPwEqF1gABbIeQ From: To: , X-OriginalArrivalTime: 15 Mar 2005 20:15:11.0969 (UTC) FILETIME=[B135CD10:01C5299B] cc: freebsd-hackers@freebsd.org Subject: RE: memory leak in inflate.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 20:22:45 -0000 Thanks. Could someone generate the patch as I dont have the latest FreeBSD source checked out. br vijay -----Original Message----- From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd-hackers@freebsd.org]On Behalf Of ext Marc Olzheim Sent: Tuesday, March 15, 2005 11:31 AM To: Marco Molteni Cc: freebsd-hackers@freebsd.org Subject: Re: memory leak in inflate.c On Mon, Mar 14, 2005 at 09:43:52PM +0100, Marco Molteni wrote: > On Mon, 14 Mar 2005 wrote: > > Hi, I am trying to debug a memory leak in executing gzipped binaries ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > when the parameter list is too long. The function in question is > > inflate_dynamic().=20 > > _If_ I remember correctly, if inflate_dynamic() returns a non-zero > code it means that the decompression failed and the program itself > quits right away, no memory leak. Or am I missing something? Your missing something: /usr/src/sys/kern/inflate.c ;-) Looks like a good patch to me. Marc From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 20:28:20 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC34B16A4CE for ; Tue, 15 Mar 2005 20:28:20 +0000 (GMT) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id B68D743D49 for ; Tue, 15 Mar 2005 20:28:20 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32])0.04 <0IDE00MW1U77JCE0@vms048.mailsrvcs.net> for freebsd-hackers@freebsd.org; Tue, 15 Mar 2005 14:28:20 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id 14C3C2CE75B; Tue, 15 Mar 2005 12:28:18 -0800 (PST) Date: Tue, 15 Mar 2005 12:28:16 -0800 From: "Michael C. Shultz" In-reply-to: To: Zera William Holladay Message-id: <200503151228.17719.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <200503151135.53269.ringworm01@gmail.com> User-Agent: KMail/1.7.2 cc: freebsd-hackers@freebsd.org Subject: Re: threads question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 20:28:21 -0000 On Tuesday 15 March 2005 12:02 pm, you wrote: > On Tue, 15 Mar 2005, Michael C. Shultz wrote: > [cut] > > > The answer is probably something like what you just said, scope > > being lost when making the call to a shared library. Why is it ok > > going to a static library but not a shared though? > > There is probably a race condition, so your code will work *some* of > the time unless you prevent the race condition. I don't have an > answer to your question, but I don't think it is a valid question. > The scope of "*priority" can remain valid or invalid for random > reasons and thus may work some of the time, but the only way to > guarantee that it works all the time is to eliminate the race > condition by making sure that *property is valid though the life of > the thread. > > -Zera Hmmm, should I'll try making "property" global then passing a copy of it to each thread? I think that will guarantee it stays valid. -Mike From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 20:42:09 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CF3916A4CE for ; Tue, 15 Mar 2005 20:42:09 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 547C343D1D for ; Tue, 15 Mar 2005 20:42:08 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mailhost.stack.nl (Postfix) with ESMTP id 655D51F080; Tue, 15 Mar 2005 21:42:07 +0100 (CET) Received: by snail.stack.nl (Postfix, from userid 333) id 5209E2287B; Tue, 15 Mar 2005 21:42:07 +0100 (CET) Date: Tue, 15 Mar 2005 21:42:07 +0100 From: Marc Olzheim To: Vijay.Singh@nokia.com Message-ID: <20050315204207.GC74516@stack.nl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vOmOzSkFvhd7u8Ms" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD snail.stack.nl 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.8i cc: marcolz@stack.nl cc: freebsd-hackers@freebsd.org Subject: Re: memory leak in inflate.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 20:42:09 -0000 --vOmOzSkFvhd7u8Ms Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 15, 2005 at 12:15:11PM -0800, Vijay.Singh@nokia.com wrote: > Thanks. Could someone generate the patch as I dont have the latest > FreeBSD source checked out. Hmm, there seem to be more possible leaks, as the code has been literally copied from /usr/src/gnu/usr.bin/gzip/, including the define of PKZIP_BUG_WORKAROUND. Have you checked all possible problems, or did you just stumble onto this one ? Marc --vOmOzSkFvhd7u8Ms Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCN0ifezjnobFOgrERAsIRAJ9Em8Qx6KnoiLHolX5YuQrKReMALACcCFI/ 59bBkkfIk04rsiXrpYUl45w= =fgqf -----END PGP SIGNATURE----- --vOmOzSkFvhd7u8Ms-- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 20:51:19 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9255416A4CE for ; Tue, 15 Mar 2005 20:51:19 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43DC943D39 for ; Tue, 15 Mar 2005 20:51:19 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mailhost.stack.nl (Postfix) with ESMTP id A11691F2E1; Tue, 15 Mar 2005 21:51:18 +0100 (CET) Received: by snail.stack.nl (Postfix, from userid 333) id 8E9BB2287B; Tue, 15 Mar 2005 21:51:18 +0100 (CET) Date: Tue, 15 Mar 2005 21:51:18 +0100 From: Marc Olzheim To: Vijay.Singh@nokia.com Message-ID: <20050315205118.GD74516@stack.nl> References: <20050315204207.GC74516@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9crTWz/Z+Zyzu20v" Content-Disposition: inline In-Reply-To: <20050315204207.GC74516@stack.nl> X-Operating-System: FreeBSD snail.stack.nl 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.8i cc: marcolz@stack.nl cc: freebsd-hackers@freebsd.org Subject: Re: memory leak in inflate.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 20:51:19 -0000 --9crTWz/Z+Zyzu20v Content-Type: multipart/mixed; boundary="uxuisgdDHaNETlh8" Content-Disposition: inline --uxuisgdDHaNETlh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 15, 2005 at 09:42:07PM +0100, Marc Olzheim wrote: > > Thanks. Could someone generate the patch as I dont have the latest > > FreeBSD source checked out. >=20 > Hmm, there seem to be more possible leaks, as the code has been > literally copied from /usr/src/gnu/usr.bin/gzip/, including the define > of PKZIP_BUG_WORKAROUND. Have you checked all possible problems, or did > you just stumble onto this one ? Ah, never mind, that PKZIP_BUG_WORKAROUND part seems to be ok. Here it is. Marc --uxuisgdDHaNETlh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="huft_free.patch" Content-Transfer-Encoding: quoted-printable --- kern/inflate.c Tue Mar 15 21:46:14 2005 +++ kern/inflate.c Tue Mar 15 21:46:22 2005 @@ -956,14 +956,15 @@ return i; /* incomplete code set */ #endif } + /* decompress until an end-of-block code */ - if (inflate_codes(glbl, tl, td, bl, bd)) - return 1; + i =3D (inflate_codes(glbl, tl, td, bl, bd)) ? 1 : 0; =20 /* free the decoding tables, return */ huft_free(glbl, tl); huft_free(glbl, td); - return 0; + + return i; } =20 /* decompress an inflated block */ --uxuisgdDHaNETlh8-- --9crTWz/Z+Zyzu20v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCN0rGezjnobFOgrERAjVlAKCOwPY3UwY/5TNMta1YEFcmPcUE7gCfalVA ArLl/ad5wmMCkz/ug2NwZFM= =J1T3 -----END PGP SIGNATURE----- --9crTWz/Z+Zyzu20v-- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 22:43:26 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32EC016A4CE for ; Tue, 15 Mar 2005 22:43:25 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7778D43D1F for ; Tue, 15 Mar 2005 22:43:25 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j2FMfnBS021847; Tue, 15 Mar 2005 15:41:49 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 15 Mar 2005 15:41:52 -0700 (MST) Message-Id: <20050315.154152.25159739.imp@bsdimp.com> To: uber.caulker@gmail.com From: "M. Warner Losh" In-Reply-To: <5e52cc0005031419056fdf10c6@mail.gmail.com> References: <5e52cc0005031419056fdf10c6@mail.gmail.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: poll or select for ppi? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 22:43:26 -0000 In message: <5e52cc0005031419056fdf10c6@mail.gmail.com> Matt Kory writes: : Is it possible to use poll or select to detect a change in the status : bits of the parallel port? I tried something like this, and took bits : 5 and 6 of the status register low and nothing seemed to happen. Is : what I am trying to do even possible, or I am supposed to take a : certain bit low to cause a read event? Any help is appreciated. : : int ppi_fd; : char port[] = "/dev/ppi0"; : ppi_fd = open(port, O_RDWR); : : fd_set rfds; : struct timeval tv; : tv.tv_sec = 0; : tv.tv_usec = 100000; : : while(1) { : FD_ZERO( &rfds ); : FD_SET( ppi_fd, &rfds ); : if ( select(1, &rfds, NULL, NULL, &tv) ) { : printf("hi\n"); : } : } With the driver, as written: No. You can't poll(2). You can ask the device often if something has changed yet. However, it would be relatively simple to add a read channel and poll support. I've written several custom drivers that do things based on parallel port interrupts... Such drivers aren't that hard. Warner From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 23:58:38 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3166A16A4CE; Tue, 15 Mar 2005 23:58:38 +0000 (GMT) Received: from kuldipmanak.chamkila.org (node-40240ed2.sjc.onnet.us.uu.net [64.36.14.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85CCF43D49; Tue, 15 Mar 2005 23:58:37 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from mail.chamkila.org (localhost.localdomain [127.0.0.1]) j2FNsQBg002347; Tue, 15 Mar 2005 15:54:26 -0800 Received: from 69.36.228.194 (proxying for 192.168.96.214) (SquirrelMail authenticated user aman); by mail.chamkila.org with HTTP; Tue, 15 Mar 2005 15:54:26 -0800 (PST) Message-ID: <54846.69.36.228.194.1110930866.squirrel@69.36.228.194> In-Reply-To: <1110852155l.3253l.0l@BARTON> References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> <1110852155l.3253l.0l@BARTON> Date: Tue, 15 Mar 2005 15:54:26 -0800 (PST) From: "Amandeep Pannu" To: "Jason Henson" User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-hackers@freebsd.org cc: Amandeep Pannu Subject: Re: Freebsd 5.3 problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 23:58:38 -0000 Hi Jason > On 03/14/05 15:34:59, Amandeep Pannu wrote: >> Hi Kris, >> >> I had this problem before and I changed the MB and the memory and >> today it >> did the same thing it did before. >> memtest doesnt give any errors. >> >> Thanks >> A >> >> > > Memtest86 right? There is another that you run in an os like any other > program. Did you leave memtest86 running over night or the weekend? > How are your temps under load? Do you use a ups? The system is in Co-lo so no power problems. Yes memtest86. I did run for the whole weekend. No errors. I need to check the loads if the system comes up. it just shut down. It gave me this error message. Mar 15 03:52:14 d03 kernel: amr0: bad slot 17 completed I read under many lists that the amr drives dies under heavy loads. But what about the system not going through post and giving RAM R/W failure. I am confused!!:( > > >> > On Mon, Mar 14, 2005 at 12:23:59PM -0800, Amandeep Pannu wrote: >> >> >> >> HI all, >> >> >> >> I am running FreeBSd 5.3-REL >> >> >> >> Today my system simply locked up. There was no error sent to >> console, >> >> to >> >> any logs, nor the monitor screen. It was totally unresponsive to >> >> network, >> >> serial console, or keyboard. After 4 power-cycles, we were unable >> to >> >> get >> >> past the BIOS as it was reporting "RAM R/W error". I have a >> screen >> shot >> >> of this from the serial port console, but it is the same as the >> one >> from >> >> before. If I hit the "F1" >> > >> > Looks like hardware failure. >> > >> > Kris >> > >> > -- >> > In God we Trust -- all others must submit an X.509 certificate. >> > -- Charles Forsythe >> > _______________________________________________ >> > 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" >> > >> >> >> -- >> Amandeep.S >> aman@chamkila.org >> http://aman.chamkila.org >> _______________________________________________ >> 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" >> >> >> >> > > > -- Amandeep.S aman@chamkila.org http://aman.chamkila.org From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 00:03:34 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3462516A4CE for ; Wed, 16 Mar 2005 00:03:34 +0000 (GMT) Received: from kuldipmanak.chamkila.org (node-40240ed2.sjc.onnet.us.uu.net [64.36.14.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9EB943D41 for ; Wed, 16 Mar 2005 00:03:33 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from mail.chamkila.org (localhost.localdomain [127.0.0.1]) j2G02GBg002548; Tue, 15 Mar 2005 16:02:16 -0800 Received: from 69.36.228.194 (proxying for 192.168.96.214) (SquirrelMail authenticated user aman); by mail.chamkila.org with HTTP; Tue, 15 Mar 2005 16:02:16 -0800 (PST) Message-ID: <56241.69.36.228.194.1110931336.squirrel@69.36.228.194> In-Reply-To: <20050314203715.GW91771@hub.freebsd.org> References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> <20050314203715.GW91771@hub.freebsd.org> Date: Tue, 15 Mar 2005 16:02:16 -0800 (PST) From: "Amandeep Pannu" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-hackers@freebsd.org cc: Amandeep Pannu Subject: Re: Freebsd 5.3 hangs under heavy load???? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 00:03:34 -0000 Hi all, I have two Seagate SCSI drives 36GB and 8GB RAM and installed 5.3-REL with PAE and SMP support. Now the problem arises that the system hangs under heavy load and there are no error messages nothing. I have to hard boot it everytime it hangs. Any ideas what is going on. It is a Supermicro MB. 2GB PC2100 DDR266 ECC/Reg Intel Xeon 2.4 GHz 533FSB Thanks in advance. A From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 00:27:58 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FEC916A4CE for ; Wed, 16 Mar 2005 00:27:58 +0000 (GMT) Received: from hermes.hw.ru (hermes.hw.ru [80.68.240.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id A56FF43D46 for ; Wed, 16 Mar 2005 00:27:56 +0000 (GMT) (envelope-from myself@rojer.pp.ru) Received: from [213.141.131.116] (account rojer@rbc.ru HELO [192.168.10.3]) by hermes.hw.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 74442938; Wed, 16 Mar 2005 03:27:55 +0300 Message-ID: <42377D8A.1020905@rojer.pp.ru> Date: Wed, 16 Mar 2005 03:27:54 +0300 From: Rojer User-Agent: Mozilla Thunderbird 1.0.1 (X11/20050307) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Amandeep Pannu References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> <20050314203715.GW91771@hub.freebsd.org> <56241.69.36.228.194.1110931336.squirrel@69.36.228.194> In-Reply-To: <56241.69.36.228.194.1110931336.squirrel@69.36.228.194> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms040201030000020106090701" cc: freebsd-hackers@freebsd.org Subject: Re: Freebsd 5.3 hangs under heavy load???? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 00:27:58 -0000 This is a cryptographically signed message in MIME format. --------------ms040201030000020106090701 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Amandeep Pannu wrote: > Hi all, > > I have two Seagate SCSI drives 36GB and 8GB RAM and installed 5.3-REL with > PAE and SMP support. > Now the problem arises that the system hangs under heavy load and there > are no error messages nothing. I have to hard boot it everytime it hangs. > PAE must have something to do with this. i have similar reports from fellow admins (they run large free mail service): machines with lots (4+ gigs) of memory, 5.3R, SMP and PAE enabled just refused to cooperate, freezing and crashing all the way under load. sadly, having no time to dive into gory details, they just installed Linux on those and all has been going well since that... the point is: PAE and large memory configurations in general need more testing. -- Deomid Ryabkov aka Rojer myself@rojer.pp.ru rojer@sysadmins.ru ICQ: 8025844 --------------ms040201030000020106090701 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJIzCC AuwwggJVoAMCAQICAwwKdjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwMzMxMjIxODA5WhcNMDUwMzMxMjIxODA5 WjBfMRAwDgYDVQQEEwdSeWFia292MQ8wDQYDVQQqEwZEZW9taWQxFzAVBgNVBAMTDkRlb21p ZCBSeWFia292MSEwHwYJKoZIhvcNAQkBFhJteXNlbGZAcm9qZXIucHAucnUwggEiMA0GCSqG SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDBxXgFP/1lZDqp0dzUDzR5IBb7aKki6TD+HMMkRjtP IOcaNHsfoDer9RFrFICoxNQZF86iopYFVYr7msgB9y2dKZTRQQoOA72lFrOyH3sgrztx/3LL axEsihA2cxcrglrIgPEm6FF2aabbKVpSdeslMCDPBr0auAm0QLo8ch9c5j0vuQUBrs8TKU6f 6YZLNO2Sk/fPZP2kfJEkXyZhkU6wq3ER1CHq2qgfNpW2Ni7Kuv/eYI/CV1BGgm37ZPubOyxI LNiRUGT0pv0wocrCIehKqoI1uFPZgGS0ANYTqPJQSdjlSzMGQJjT510PNDJnDfKOvLhcadD+ 6gSL/ovNM/LPAgMBAAGjLzAtMB0GA1UdEQQWMBSBEm15c2VsZkByb2plci5wcC5ydTAMBgNV HRMBAf8EAjAAMA0GCSqGSIb3DQEBBAUAA4GBACunC6DhFX4I6Nvdy/UevjSd3VmKWPRmqwoR l0RXvuI/JVyPO9KHGqxCMpRu7ArJz7d8ShPVs5kynysrB+Nm6/fwWjeaW21+gViojeO9gGP6 Np/LeMIqkqSYMoElq7Feqh/3qp7a/UxuofFtAW9V/2tRunxaPo4/WOxcdcmdcC86MIIC7DCC AlWgAwIBAgIDDAp2MA0GCSqGSIb3DQEBBAUAMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxU aGF3dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwg RnJlZW1haWwgSXNzdWluZyBDQTAeFw0wNDAzMzEyMjE4MDlaFw0wNTAzMzEyMjE4MDlaMF8x EDAOBgNVBAQTB1J5YWJrb3YxDzANBgNVBCoTBkRlb21pZDEXMBUGA1UEAxMORGVvbWlkIFJ5 YWJrb3YxITAfBgkqhkiG9w0BCQEWEm15c2VsZkByb2plci5wcC5ydTCCASIwDQYJKoZIhvcN AQEBBQADggEPADCCAQoCggEBAMHFeAU//WVkOqnR3NQPNHkgFvtoqSLpMP4cwyRGO08g5xo0 ex+gN6v1EWsUgKjE1BkXzqKilgVVivuayAH3LZ0plNFBCg4DvaUWs7IfeyCvO3H/cstrESyK EDZzFyuCWsiA8SboUXZpptspWlJ16yUwIM8GvRq4CbRAujxyH1zmPS+5BQGuzxMpTp/phks0 7ZKT989k/aR8kSRfJmGRTrCrcRHUIeraqB82lbY2Lsq6/95gj8JXUEaCbftk+5s7LEgs2JFQ ZPSm/TChysIh6EqqgjW4U9mAZLQA1hOo8lBJ2OVLMwZAmNPnXQ80MmcN8o68uFxp0P7qBIv+ i80z8s8CAwEAAaMvMC0wHQYDVR0RBBYwFIESbXlzZWxmQHJvamVyLnBwLnJ1MAwGA1UdEwEB /wQCMAAwDQYJKoZIhvcNAQEEBQADgYEAK6cLoOEVfgjo293L9R6+NJ3dWYpY9GarChGXRFe+ 4j8lXI870ocarEIylG7sCsnPt3xKE9WzmTKfKysH42br9/BaN5pbbX6BWKiN472AY/o2n8t4 wiqSpJgygSWrsV6qH/eqntr9TG6h8W0Bb1X/a1G6fFo+jj9Y7Fx1yZ1wLzowggM/MIICqKAD AgECAgENMA0GCSqGSIb3DQEBBQUAMIHRMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVy biBDYXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xGjAYBgNVBAoTEVRoYXd0ZSBDb25zdWx0aW5n MSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9uMSQwIgYDVQQDExtU aGF3dGUgUGVyc29uYWwgRnJlZW1haWwgQ0ExKzApBgkqhkiG9w0BCQEWHHBlcnNvbmFsLWZy ZWVtYWlsQHRoYXd0ZS5jb20wHhcNMDMwNzE3MDAwMDAwWhcNMTMwNzE2MjM1OTU5WjBiMQsw CQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoG A1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwgZ8wDQYJKoZIhvcN AQEBBQADgY0AMIGJAoGBAMSmPFVzVftOucqZWh5owHUEcJ3f6f+jHuy9zfVb8hp2vX8MOmHy v1HOAdTlUAow1wJjWiyJFXCO3cnwK4Vaqj9xVsuvPAsH5/EfkTYkKhPPK9Xzgnc9A74r/rsY Pge/QIACZNenprufZdHFKlSFD0gEf6e20TxhBEAeZBlyYLf7AgMBAAGjgZQwgZEwEgYDVR0T AQH/BAgwBgEB/wIBADBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vY3JsLnRoYXd0ZS5jb20v VGhhd3RlUGVyc29uYWxGcmVlbWFpbENBLmNybDALBgNVHQ8EBAMCAQYwKQYDVR0RBCIwIKQe MBwxGjAYBgNVBAMTEVByaXZhdGVMYWJlbDItMTM4MA0GCSqGSIb3DQEBBQUAA4GBAEiM0VCD 6gsuzA2jZqxnD3+vrL7CF6FDlpSdf0whuPg2H6otnzYvwPQcUCCTcDz9reFhYsPZOhl+hLGZ GwDFGguCdJ4lUJRix9sncVcljd2pnDmOjCBPZV+V2vf3h9bGCE6u9uo05RAaWzVNd+NWIXiC 3CEZNd4ksdMdRv9dX2VPMYIDOzCCAzcCAQEwaTBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMc VGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFs IEZyZWVtYWlsIElzc3VpbmcgQ0ECAwwKdjAJBgUrDgMCGgUAoIIBpzAYBgkqhkiG9w0BCQMx CwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNTAzMTYwMDI3NTRaMCMGCSqGSIb3DQEJ BDEWBBR6u3IrwFqz9i6by2Mnz8soiuetdzBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMH MA4GCCqGSIb3DQMCAgIAgDANBggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIB KDB4BgkrBgEEAYI3EAQxazBpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29u c3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwg SXNzdWluZyBDQQIDDAp2MHoGCyqGSIb3DQEJEAILMWugaTBiMQswCQYDVQQGEwJaQTElMCMG A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBl cnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAwwKdjANBgkqhkiG9w0BAQEFAASCAQBXZQBZ ZvNw688QZBDIaJnEF7t1z/5Oyt6aXbYTHmj38JQ3fRCCUpnyjsap5HT2MX0EXY/DCSesB1zm vr13NVtVJWR76YQsKBEdwHMiW24I/U2soC1g231LesQONR69Ma5MDNf5fuSwdDH9MRI4XuyQ 1wU7SRKAKGhYij1MoyH1MnH4j/RBr07ZG9K+BRs7w4MBzJ2D1A7tFu8xsHd1hMaJnuqfmN/4 1fEvzFp3drZjeds2rEdYkHCmMXDShGkxhqr3at9QgRamQa8gZ2EIxTExHzCLtunDu06hXkCV Jl3Orgw4/XGfjqIxv5rEzMRpUdVkAyMWJtX6zyjKwV1paXVeAAAAAAAA --------------ms040201030000020106090701-- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 20:42:19 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A41B916A4D9 for ; Tue, 15 Mar 2005 20:42:19 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id F240443D3F for ; Tue, 15 Mar 2005 20:42:17 +0000 (GMT) (envelope-from vaida.bogdan@gmail.com) Received: by wproxy.gmail.com with SMTP id 37so9043wra for ; Tue, 15 Mar 2005 12:42:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=EnD0RIFHbMyGFb1+4zz5pa4yFdmPmcQfwTsO1ZHa4G4wHQ6rPuPAWGJ9hN06uoVHS1p380o79ANRPsSPC+CtXOQf6rL3rahhj2f3hM6wAGqkCNoM631DX2sX1aE6V6Ze7Qf1afRDHg0zakXfW2KqA3EXPQnZhk6Jxk1DuAmWHkU= Received: by 10.38.15.37 with SMTP id 37mr1046926rno; Tue, 15 Mar 2005 12:42:15 -0800 (PST) Received: by 10.38.208.63 with HTTP; Tue, 15 Mar 2005 12:42:15 -0800 (PST) Message-ID: <12848a3b05031512426bf7664c@mail.gmail.com> Date: Tue, 15 Mar 2005 22:42:15 +0200 From: vaida bogdan To: Tim Kientzle In-Reply-To: <4233401A.3040403@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <20050311152951.GA90290@freefall.freebsd.org> <4233401A.3040403@freebsd.org> X-Mailman-Approved-At: Wed, 16 Mar 2005 13:18:07 +0000 cc: freebsd-security@freebsd.org cc: "Christian S.J. Peron" cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD trusted execution system: beta testers wanted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vaida bogdan List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 20:42:19 -0000 Hi, could you explain me how this error is related to mac_chkexec? (after enforcing, I execute xchat and get:) /libexec/ld-elf.so.1: /usr/X11R6/lib/libgdk-x11-2.0.so.400: mmap of entire address space failed: Operation not permitted (I set chkexec.enforce to 0, run xchat and enforce the policy again and the error disappears) It didn't tell me which executable it could not run. On Sat, 12 Mar 2005 11:16:42 -0800, Tim Kientzle wrote: > Christian S.J. Peron wrote: > > > > I have written a trusted execution module and would appreciate if anyone > could > > help in testing. This module provides a functionality similar to NetBSD's > > verified exec mechanism. > > Excellent! > > Sounds like something that could provide a > lot of additional protection against > trojans and worms. > > Wish I had time to play with it right now.... > > Tim > > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 07:02:45 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 739CC16A4CE; Wed, 16 Mar 2005 07:02:45 +0000 (GMT) Received: from ctb-mesg4.saix.net (ctb-mesg4.saix.net [196.25.240.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id C865243D39; Wed, 16 Mar 2005 07:02:44 +0000 (GMT) (envelope-from marieta@ins.co.za) Received: from infraserver2003.ivoryjhb.co.za (rrba-146-95-124.telkomadsl.co.za [165.146.95.124]) by ctb-mesg4.saix.net (Postfix) with ESMTP id B5EB0B7A8; Wed, 16 Mar 2005 09:02:39 +0200 (SAST) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 16 Mar 2005 08:55:04 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: <1EFF028AD362DD41AFACB2FED951A1C0491614@infraserver2003.ivoryjhb.co.za> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [kde-freebsd] Resources for contract employment thread-index: AcUpb9gQy5G6SIv9T7CgvX++/le4WwAhGqLw From: "Marieta Kotze" To: "Michael Nottebrock" X-Mailman-Approved-At: Wed, 16 Mar 2005 13:18:07 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-jobs@freebsd.org Subject: RE: [kde-freebsd] Resources for contract employment X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 07:02:45 -0000 HI I'm currently looking for candidates with FreeBSD experience for a long term contract-perm position. Please contact me ASAP, as this is very urgent to be filled. Salary negotiable. Regards, Marieta 011 706 3443 -----Original Message----- From: Michael Nottebrock [mailto:michaelnottebrock@gmx.net]=20 Sent: 15 March 2005 04:38 PM To: kde-freebsd@freebsd.kde.org Cc: Marieta Kotze Subject: Re: [kde-freebsd] Resources for contract employment On Tuesday, 15. March 2005 14:47, Marieta Kotze wrote: > To Whom It May Concern: > > If I'm looking for a contractor with FreeBSD exposure, will you be able to > assist? A good forum for FreeBSD-related job offers and applications are the=20 freebsd-jobs (freebsd-jobs@freebsd.org) and freebsd-hackers=20 (freebsd-hackers@freebsd.org) mailing lists. --=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 12:37:14 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 289B316A4CE; Wed, 16 Mar 2005 12:37:14 +0000 (GMT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAF1A43D5C; Wed, 16 Mar 2005 12:37:12 +0000 (GMT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.13.1/8.13.1) with ESMTP id j2GCg0FZ013613; Wed, 16 Mar 2005 13:42:00 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.13.1/8.13.1/Submit) id j2GCfx5i013612; Wed, 16 Mar 2005 13:41:59 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Wed, 16 Mar 2005 13:41:59 +0100 From: Ruben de Groot To: Danny Braniss Message-ID: <20050316124159.GA13465@ei.bzerk.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Spam-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED, FROM_ENDS_IN_NUMS autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on ei.bzerk.org X-Mailman-Approved-At: Wed, 16 Mar 2005 13:18:07 +0000 cc: hackers@freebsd.org cc: scsi@freebsd.org Subject: Re: iSCSI initiator driver beta version, testers wanted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 12:37:14 -0000 On Tue, Mar 08, 2005 at 09:06:19AM +0200, Danny Braniss typed: > well, i guess all is ok, since im not getting much feedback :-) Actually, I've been on a holliday and wasn't able to do testing until yesterday. When I try to connect to the target (an Equallogic PS200E) the system panics (trace see below). This is 5.4-PRE running under vmware. I had a panic with 5.3-RELEASE as well (but no trace). Anything I can do to help, I have some spare time. greetings, Ruben FreeBSD 5.4-PRERELEASE (DBG) #0: Wed Mar 16 01:28:18 UTC 2005 x226220# kldload iscsi iscsi_kld_start: iscsi start ic_action: called ic_action: func_code=0x4 flags=0x0 status=0x0 target=-1 lun=-1 retry_count=0 ti0 _inq: called ic_init: cam subsystem initialized x226220# iscontrol -v -t 172.17.24.100 iscsi_ioctl: called iscsi_ioctl: dev=4 cmd=1 i_create_session: called 0] i_create_session: sessionID=0 ism_start: called ism_proc: called proc_in: called proc_out: called 0] ism_proc: idone=0 odone=0 iscsi_close: called iscsi_ioctl: called iscsi_ioctl: dev=0 cmd=2 isc_start_receiver: called isc_soc: called so_getbhs: called iscsi_ioctl: called iscsi_ioctl: dev=0 cmd=5 i_setopt: opt.targetAddr='172.17.24.100' iscsi_ioctl: called iscsi_ioctl: dev=0 cmd=10 i_send: called kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x8:0xc063787a stack pointer = 0x10:0xc92a0b3c frame pointer = 0x10:0xc92a0b3c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 450 (iscontrol) [thread pid 450 tid 100068 ] Stopped at turnstile_head+0x6: movl 0(%eax),%eax db> trace Tracing pid 450 tid 100068 td 0xc141dc80 turnstile_head(0,c156e080,c1714ae0,c16d7d00,c92a0b6c) at turnstile_head+0x6 _mtx_unlock_sleep(c1714b30,0,c1712f40,e5) at _mtx_unlock_sleep+0x40 _mtx_unlock_flags(c1714b30,0,c1712f40,e5,5) at _mtx_unlock_flags+0x2e i_send(c16d7d00,c156f200,c141dc80,c1706c00,1) at i_send+0x149 iscsi_ioctl(c16d7d00,8050690a,c156f200,3,c141dc80) at iscsi_ioctl+0x17e spec_ioctl(c92a0c08,c92a0cb4,c0677506,c92a0c08,c08cbc60) at spec_ioctl+0xb5 spec_vnoperate(c92a0c08) at spec_vnoperate+0x13 vn_ioctl(c152b990,8050690a,c156f200,c156e400,c141dc80) at vn_ioctl+0x20a ioctl(c141dc80,c92a0d14,3,c,10296) at ioctl+0x40f syscall(2f,2f,2f,804d000,bfbfec00) at syscall+0x27b Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x280c413b, esp = 0xbfbfeb9c, ebp- db> From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 15:08:12 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC14016A4CE for ; Wed, 16 Mar 2005 15:08:12 +0000 (GMT) Received: from comsys.ntu-kpi.kiev.ua (comsys.ntu-kpi.kiev.ua [195.245.194.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4054043D58 for ; Wed, 16 Mar 2005 15:08:06 +0000 (GMT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) (authenticated bits=0)j2GFAjbj002776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Mar 2005 17:10:46 +0200 (EET) Received: by pm514-9.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1000) id 4520414D; Wed, 16 Mar 2005 17:07:06 +0200 (EET) Date: Wed, 16 Mar 2005 17:07:06 +0200 From: Andrey Simonenko To: Ted Unangst Message-ID: <20050316150706.GA656@pm514-9.comsys.ntu-kpi.kiev.ua> References: <42360141.3080104@coverity.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42360141.3080104@coverity.com> User-Agent: Mutt/1.4.2.1i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, UPPERCASE_25_50 autolearn=ham version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on comsys.ntu-kpi.kiev.ua X-Virus-Scanned: ClamAV 0.82/761/Thu Mar 10 23:01:48 2005 on comsys.ntu-kpi.kiev.ua X-Virus-Status: Clean cc: hackers@freebsd.org Subject: Re: some bugs in the kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 15:08:12 -0000 On Mon, Mar 14, 2005 at 01:25:21PM -0800, Ted Unangst wrote: > > NULL pointer dereference > File: usr/home/tedu/src/sys/pci/if_ti.c > Function: ti_setmulti > malloc return at 1628 is not checked against NULL. Similar errors (lines numbers from 5.3-RELEASE): i386/i386/bios.c 516 devnodebuf = malloc(bigdev + (sizeof(struct pnp_sysdevargs) - sizeof(struct pnp_sysdev)), 517 M_DEVBUF, M_NOWAIT); pci/if_dc.c 1443 m = malloc(sizeof(struct dc_mediainfo), M_DEVBUF, M_NOWAIT | M_ZERO); 1482 m = malloc(sizeof(struct dc_mediainfo), M_DEVBUF, M_NOWAIT | M_ZERO); 1498 m = malloc(sizeof(struct dc_mediainfo), M_DEVBUF, M_NOWAIT | M_ZERO); 1517 sc->dc_srom = malloc(size, M_DEVBUF, M_NOWAIT); 1717 sc->dc_pnic_rx_buf = malloc(DC_RXLEN * 5, M_DEVBUF, M_NOWAIT); pci/if_sk.c 435 sc->sk_vpd_prodname = malloc(res.vr_len + 1, M_DEVBUF, M_NOWAIT); 447 sc->sk_vpd_readonly = malloc(res.vr_len, M_DEVBUF, M_NOWAIT); 1412 port = malloc(sizeof(int), M_DEVBUF, M_NOWAIT); 1417 port = malloc(sizeof(int), M_DEVBUF, M_NOWAIT); From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 17:09:07 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C06816A4CE for ; Wed, 16 Mar 2005 17:09:07 +0000 (GMT) Received: from angui.sh (angui.sh [216.171.167.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 601B943D2F for ; Wed, 16 Mar 2005 17:09:07 +0000 (GMT) (envelope-from wfroning@angui.sh) Received: from angui.sh (localhost [127.0.0.1]) by angui.sh (8.12.9p2/8.12.8) with ESMTP id j2GH8m4Q033877 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Mar 2005 09:08:48 -0800 (PST) (envelope-from wfroning@angui.sh) Received: from localhost (wfroning@localhost) by angui.sh (8.12.9p2/8.12.8/Submit) with ESMTP id j2GH8m9r033874; Wed, 16 Mar 2005 09:08:48 -0800 (PST) (envelope-from wfroning@angui.sh) Date: Wed, 16 Mar 2005 09:08:48 -0800 (PST) From: Will Froning To: Ted Unangst In-Reply-To: <42360141.3080104@coverity.com> Message-ID: <20050316090727.X45818@angui.sh> References: <42360141.3080104@coverity.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.39 cc: hackers@freebsd.org Subject: Re: some bugs in the kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 17:09:07 -0000 On Mon, 14 Mar 2005, Ted Unangst wrote: =>These bugs were found using the Coverity Prevent static analysis tool. => =>Memory Leak =>File: usr/home/tedu/src/sys/geom/geom_bsd.c =>Function: g_bsd_ioctl =>Returning at line 378 leaks the just allocated 'label'. => =>Buffer Overrun =>File: usr/home/tedu/src/sys/dev/hptmv/gui_lib.c =>Function: hpt_default_ioctl =>At line 1262, the loop bound of MAX_ARRAY_PER_VBUS is defined to be =>twice the size of pVDevice (MAX_VDEVICE_PER_VBUS). => =>Buffer Overrun =>File: usr/home/tedu/src/sys/dev/hptmv/entry.c =>Function: SetInquiryData =>At line 2660, loop bound of 20 is greater than size of VendorID. => =>Memory Leak =>File: usr/home/tedu/src/sys/dev/pci/pci.c =>Function: pci_suspend =>If bus_generic_suspend fails at line 1061, 'devlist' is leaked. => =>Use After Free, Memory Corruption =>File: usr/home/tedu/src/sys/dev/mlx/mlx_pci.c =>Function: mlx_pci_attach =>Calling mlx_free on error at line 218 is dangerous, since mlx_attach =>also called it. Eventually this will double free assorted bus resources. => =>NULL pointer dereference =>File: usr/home/tedu/src/sys/pci/if_ti.c =>Function: ti_setmulti =>malloc return at 1628 is not checked against NULL. Just to make sure it is said again. Thanks! Will -- Will Froning Unix Sys. Admin. wfroning@angui.sh From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 21:04:58 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80ED316A4CE for ; Wed, 16 Mar 2005 21:04:58 +0000 (GMT) Received: from kuldipmanak.chamkila.org (node-40240ed2.sjc.onnet.us.uu.net [64.36.14.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AB4E43D2F for ; Wed, 16 Mar 2005 21:04:58 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from mail.chamkila.org (localhost.localdomain [127.0.0.1]) j2GL3ZBg030792; Wed, 16 Mar 2005 13:03:35 -0800 Received: from 69.36.228.194 (proxying for 192.168.96.214) (SquirrelMail authenticated user aman); by mail.chamkila.org with HTTP; Wed, 16 Mar 2005 13:03:35 -0800 (PST) Message-ID: <44838.69.36.228.194.1111007015.squirrel@69.36.228.194> In-Reply-To: <42377D8A.1020905@rojer.pp.ru> References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> <20050314203715.GW91771@hub.freebsd.org> <56241.69.36.228.194.1110931336.squirrel@69.36.228.194> <42377D8A.1020905@rojer.pp.ru> Date: Wed, 16 Mar 2005 13:03:35 -0800 (PST) From: "Amandeep Pannu" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: Amandeep Pannu Subject: Re: Freebsd 5.3 with Broadcom BCM5721 PCI Express GbE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 21:04:58 -0000 Hi all, I am trying to install FreeBSD 5.3 on Tyan 5350 MB with 40GB ATA Maxtor drive. Two issues 1) It doesnt detect the ATA drive but When I boot under safe then it does detect it and goes through installation. 2) It doesnt detect the broadcom interfaces. They are Broadcom BCM5721 PCI Express GbE. Anything from FreeBSD Gurus. Any help would be great. Thanks in advance. A From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 21:11:35 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D7E416A4CE for ; Wed, 16 Mar 2005 21:11:35 +0000 (GMT) Received: from hermes.hw.ru (hermes.hw.ru [80.68.240.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 835B243D1D for ; Wed, 16 Mar 2005 21:11:33 +0000 (GMT) (envelope-from myself@rojer.pp.ru) Received: from [213.141.131.116] (account rojer@rbc.ru HELO [192.168.10.3]) by hermes.hw.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 74542982; Thu, 17 Mar 2005 00:11:32 +0300 Message-ID: <4238A103.5090805@rojer.pp.ru> Date: Thu, 17 Mar 2005 00:11:31 +0300 From: Rojer User-Agent: Mozilla Thunderbird 1.0.1 (X11/20050307) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Amandeep Pannu References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> <20050314203715.GW91771@hub.freebsd.org> <56241.69.36.228.194.1110931336.squirrel@69.36.228.194> <42377D8A.1020905@rojer.pp.ru> <44838.69.36.228.194.1111007015.squirrel@69.36.228.194> In-Reply-To: <44838.69.36.228.194.1111007015.squirrel@69.36.228.194> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms070105060103020505050408" cc: freebsd-hackers@freebsd.org Subject: Re: Freebsd 5.3 with Broadcom BCM5721 PCI Express GbE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 21:11:35 -0000 This is a cryptographically signed message in MIME format. --------------ms070105060103020505050408 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Amandeep Pannu wrote: > 2) It doesnt detect the broadcom interfaces. > > They are > Broadcom BCM5721 PCI Express GbE. the support is in -STABLE already, update to latest RELENG_5. -- Deomid Ryabkov aka Rojer myself@rojer.pp.ru rojer@sysadmins.ru ICQ: 8025844 --------------ms070105060103020505050408 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJIzCC AuwwggJVoAMCAQICAwwKdjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwMzMxMjIxODA5WhcNMDUwMzMxMjIxODA5 WjBfMRAwDgYDVQQEEwdSeWFia292MQ8wDQYDVQQqEwZEZW9taWQxFzAVBgNVBAMTDkRlb21p ZCBSeWFia292MSEwHwYJKoZIhvcNAQkBFhJteXNlbGZAcm9qZXIucHAucnUwggEiMA0GCSqG SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDBxXgFP/1lZDqp0dzUDzR5IBb7aKki6TD+HMMkRjtP IOcaNHsfoDer9RFrFICoxNQZF86iopYFVYr7msgB9y2dKZTRQQoOA72lFrOyH3sgrztx/3LL axEsihA2cxcrglrIgPEm6FF2aabbKVpSdeslMCDPBr0auAm0QLo8ch9c5j0vuQUBrs8TKU6f 6YZLNO2Sk/fPZP2kfJEkXyZhkU6wq3ER1CHq2qgfNpW2Ni7Kuv/eYI/CV1BGgm37ZPubOyxI LNiRUGT0pv0wocrCIehKqoI1uFPZgGS0ANYTqPJQSdjlSzMGQJjT510PNDJnDfKOvLhcadD+ 6gSL/ovNM/LPAgMBAAGjLzAtMB0GA1UdEQQWMBSBEm15c2VsZkByb2plci5wcC5ydTAMBgNV HRMBAf8EAjAAMA0GCSqGSIb3DQEBBAUAA4GBACunC6DhFX4I6Nvdy/UevjSd3VmKWPRmqwoR l0RXvuI/JVyPO9KHGqxCMpRu7ArJz7d8ShPVs5kynysrB+Nm6/fwWjeaW21+gViojeO9gGP6 Np/LeMIqkqSYMoElq7Feqh/3qp7a/UxuofFtAW9V/2tRunxaPo4/WOxcdcmdcC86MIIC7DCC AlWgAwIBAgIDDAp2MA0GCSqGSIb3DQEBBAUAMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxU aGF3dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwg RnJlZW1haWwgSXNzdWluZyBDQTAeFw0wNDAzMzEyMjE4MDlaFw0wNTAzMzEyMjE4MDlaMF8x EDAOBgNVBAQTB1J5YWJrb3YxDzANBgNVBCoTBkRlb21pZDEXMBUGA1UEAxMORGVvbWlkIFJ5 YWJrb3YxITAfBgkqhkiG9w0BCQEWEm15c2VsZkByb2plci5wcC5ydTCCASIwDQYJKoZIhvcN AQEBBQADggEPADCCAQoCggEBAMHFeAU//WVkOqnR3NQPNHkgFvtoqSLpMP4cwyRGO08g5xo0 ex+gN6v1EWsUgKjE1BkXzqKilgVVivuayAH3LZ0plNFBCg4DvaUWs7IfeyCvO3H/cstrESyK EDZzFyuCWsiA8SboUXZpptspWlJ16yUwIM8GvRq4CbRAujxyH1zmPS+5BQGuzxMpTp/phks0 7ZKT989k/aR8kSRfJmGRTrCrcRHUIeraqB82lbY2Lsq6/95gj8JXUEaCbftk+5s7LEgs2JFQ ZPSm/TChysIh6EqqgjW4U9mAZLQA1hOo8lBJ2OVLMwZAmNPnXQ80MmcN8o68uFxp0P7qBIv+ i80z8s8CAwEAAaMvMC0wHQYDVR0RBBYwFIESbXlzZWxmQHJvamVyLnBwLnJ1MAwGA1UdEwEB /wQCMAAwDQYJKoZIhvcNAQEEBQADgYEAK6cLoOEVfgjo293L9R6+NJ3dWYpY9GarChGXRFe+ 4j8lXI870ocarEIylG7sCsnPt3xKE9WzmTKfKysH42br9/BaN5pbbX6BWKiN472AY/o2n8t4 wiqSpJgygSWrsV6qH/eqntr9TG6h8W0Bb1X/a1G6fFo+jj9Y7Fx1yZ1wLzowggM/MIICqKAD AgECAgENMA0GCSqGSIb3DQEBBQUAMIHRMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVy biBDYXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xGjAYBgNVBAoTEVRoYXd0ZSBDb25zdWx0aW5n MSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9uMSQwIgYDVQQDExtU aGF3dGUgUGVyc29uYWwgRnJlZW1haWwgQ0ExKzApBgkqhkiG9w0BCQEWHHBlcnNvbmFsLWZy ZWVtYWlsQHRoYXd0ZS5jb20wHhcNMDMwNzE3MDAwMDAwWhcNMTMwNzE2MjM1OTU5WjBiMQsw CQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoG A1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwgZ8wDQYJKoZIhvcN AQEBBQADgY0AMIGJAoGBAMSmPFVzVftOucqZWh5owHUEcJ3f6f+jHuy9zfVb8hp2vX8MOmHy v1HOAdTlUAow1wJjWiyJFXCO3cnwK4Vaqj9xVsuvPAsH5/EfkTYkKhPPK9Xzgnc9A74r/rsY Pge/QIACZNenprufZdHFKlSFD0gEf6e20TxhBEAeZBlyYLf7AgMBAAGjgZQwgZEwEgYDVR0T AQH/BAgwBgEB/wIBADBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vY3JsLnRoYXd0ZS5jb20v VGhhd3RlUGVyc29uYWxGcmVlbWFpbENBLmNybDALBgNVHQ8EBAMCAQYwKQYDVR0RBCIwIKQe MBwxGjAYBgNVBAMTEVByaXZhdGVMYWJlbDItMTM4MA0GCSqGSIb3DQEBBQUAA4GBAEiM0VCD 6gsuzA2jZqxnD3+vrL7CF6FDlpSdf0whuPg2H6otnzYvwPQcUCCTcDz9reFhYsPZOhl+hLGZ GwDFGguCdJ4lUJRix9sncVcljd2pnDmOjCBPZV+V2vf3h9bGCE6u9uo05RAaWzVNd+NWIXiC 3CEZNd4ksdMdRv9dX2VPMYIDOzCCAzcCAQEwaTBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMc VGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFs IEZyZWVtYWlsIElzc3VpbmcgQ0ECAwwKdjAJBgUrDgMCGgUAoIIBpzAYBgkqhkiG9w0BCQMx CwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNTAzMTYyMTExMzFaMCMGCSqGSIb3DQEJ BDEWBBSCMzP+OgUtbZPgks7N7R7b7A0K5DBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMH MA4GCCqGSIb3DQMCAgIAgDANBggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIB KDB4BgkrBgEEAYI3EAQxazBpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29u c3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwg SXNzdWluZyBDQQIDDAp2MHoGCyqGSIb3DQEJEAILMWugaTBiMQswCQYDVQQGEwJaQTElMCMG A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBl cnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAwwKdjANBgkqhkiG9w0BAQEFAASCAQBnKMei 9zaHXUs4AiUm+l/fDa2f0vYEepXU2FUQF/SHSxxaCAYlTbe3N/om4EfW7tx/FOO50p0BEyQA cxf23WGiwnHycJKVfNfyZ9ZTwkDQVjLBgp2N4TLxO9w37mNp27vYVoU3xfuIXb1jjtELZnHS kGzUmHNSi2umPBL5p/aZ5DUleXrU1tuzp562maeev5w1FS2vCuQV3JSdjwDS/SmSYZD8izhL cXBMscu693eAl4CsWVeNkxKBeOCs2w4f5gg0Hw640kSoEG7PVPUgneUztc9r5VtJ4hkWdNTZ ZMiMwbC52MtLBthIsn6BBD0hkmTtWAPDr3b2EWvlEMuea484AAAAAAAA --------------ms070105060103020505050408-- From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 21:33:17 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D11A16A4CE for ; Wed, 16 Mar 2005 21:33:17 +0000 (GMT) Received: from mxfep02.bredband.com (mxfep02.bredband.com [195.54.107.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23E7043D41 for ; Wed, 16 Mar 2005 21:33:16 +0000 (GMT) (envelope-from scode@scode-whitestar.mine.nu) Received: from scode-whitestar.mine.nu ([83.226.138.147] [83.226.138.147]) by mxfep02.bredband.com with ESMTP <20050316213315.YXQM4482.mxfep02.bredband.com@scode-whitestar.mine.nu>; Wed, 16 Mar 2005 22:33:15 +0100 Received: by scode-whitestar.mine.nu (Postfix, from userid 1001) id B622A17B926; Wed, 16 Mar 2005 22:40:15 +0100 (CET) Date: Wed, 16 Mar 2005 22:40:15 +0100 From: Peter Schuller To: "Michael C. Shultz" Message-ID: <20050316214014.GA88231@scode-whitestar.mine.nu> References: <200503151135.53269.ringworm01@gmail.com> <200503151228.17719.ringworm01@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200503151228.17719.ringworm01@gmail.com> User-Agent: Mutt/1.5.8i cc: freebsd-hackers@freebsd.org cc: Zera William Holladay Subject: Re: threads question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 21:33:17 -0000 >this works perfectly because I moved MGPMrUpgrade into >the same .c file so it would be a static function: > >structProperty* property; >pthread_t threads[NTHREADS]; >pthread_create( &threads[0], NULL, zzMGPMrUpgrade, property ); >When I use MGPMrUpgrade from a shared library the function runs >yet property isn't being passed! What do you mean by it not being passed? Does your function receive a NULL value for the parameter instead of the pointer? (Assuming no dirty tricks, the function would by definition always be passed *some* value, though it may be NULL.) > Hmmm, should I'll try making "property" global then passing a copy of it > to each thread? I think that will guarantee it stays valid. Since you are asking about makint it global - what is it *now*? It would have to be either global, dynamically allocated, or on the stack. If it's on the stack, things are guaranteed to blow up unless the function in question is guaranteed to not terminate untill all threads are done with the data. What is the property pointer being initialized/set to? If it's dynamically allocated you should not have a problem. And I don't see how static vs. dynamic linking of libraries should matter, but perhaps I am overlooking something. -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller ' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 21:52:27 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86BAD16A4CE for ; Wed, 16 Mar 2005 21:52:27 +0000 (GMT) Received: from kuldipmanak.chamkila.org (node-40240ed2.sjc.onnet.us.uu.net [64.36.14.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBEF143D48 for ; Wed, 16 Mar 2005 21:52:26 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from mail.chamkila.org (localhost.localdomain [127.0.0.1]) j2GLp1Bg031904; Wed, 16 Mar 2005 13:51:02 -0800 Received: from 69.36.228.194 (proxying for 192.168.96.214) (SquirrelMail authenticated user aman); by mail.chamkila.org with HTTP; Wed, 16 Mar 2005 13:51:02 -0800 (PST) Message-ID: <53113.69.36.228.194.1111009862.squirrel@69.36.228.194> In-Reply-To: <4238A103.5090805@rojer.pp.ru> References: <20050119103214.A27409@pooker.samsco.org> <37799.69.36.228.194.1109286815.squirrel@69.36.228.194> <421E604F.3080305@samsco.org> <34148.69.36.228.194.1110235564.squirrel@69.36.228.194> <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> <20050314203715.GW91771@hub.freebsd.org> <56241.69.36.228.194.1110931336.squirrel@69.36.228.194> <42377D8A.1020905@rojer.pp.ru> <44838.69.36.228.194.1111007015.squirrel@69.36.228.194> <4238A103.5090805@rojer.pp.ru> Date: Wed, 16 Mar 2005 13:51:02 -0800 (PST) From: "Amandeep Pannu" To: "Rojer" User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-hackers@freebsd.org cc: Amandeep Pannu Subject: Re: Freebsd 5.3 with Broadcom BCM5721 PCI Express GbE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 21:52:27 -0000 Hi Roger, I installed the FreeBSd 5.3-Rel and also FreeBSd 5.2.1, no luck. Now the kernel GENERic file shows bge # 570XX I think these are different BCM5721. Any clues. Thanks A > Amandeep Pannu wrote: > >> 2) It doesnt detect the broadcom interfaces. >> >> They are >> Broadcom BCM5721 PCI Express GbE. > > > the support is in -STABLE already, update to latest RELENG_5. > > -- > Deomid Ryabkov aka Rojer > myself@rojer.pp.ru > rojer@sysadmins.ru > ICQ: 8025844 > -- Amandeep.S aman@chamkila.org http://aman.chamkila.org From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 21:54:52 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4071E16A4CE for ; Wed, 16 Mar 2005 21:54:52 +0000 (GMT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFCD443D2D for ; Wed, 16 Mar 2005 21:54:51 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32])0.04 <0IDG00LJ4SVEJB21@vms046.mailsrvcs.net> for freebsd-hackers@freebsd.org; Wed, 16 Mar 2005 15:54:51 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id 6E8682CE740; Wed, 16 Mar 2005 13:54:49 -0800 (PST) Date: Wed, 16 Mar 2005 13:54:47 -0800 From: "Michael C. Shultz" In-reply-to: <20050316214014.GA88231@scode-whitestar.mine.nu> To: Peter Schuller Message-id: <200503161354.48223.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <200503151228.17719.ringworm01@gmail.com> <20050316214014.GA88231@scode-whitestar.mine.nu> User-Agent: KMail/1.7.2 cc: freebsd-hackers@freebsd.org cc: Zera William Holladay Subject: Re: threads question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 21:54:52 -0000 On Wednesday 16 March 2005 01:40 pm, you wrote: > >this works perfectly because I moved MGPMrUpgrade into > >the same .c file so it would be a static function: > > > >structProperty* property; > >pthread_t threads[NTHREADS]; > >pthread_create( &threads[0], NULL, zzMGPMrUpgrade, property ); > >When I use MGPMrUpgrade from a shared library the function runs > >yet property isn't being passed! > > What do you mean by it not being passed? Does your function receive a > NULL value for the parameter instead of the pointer? (Assuming no > dirty tricks, the function would by definition always be passed > *some* value, though it may be NULL.) I finally figured out what I was doing wrong, it was my lack of understanding threads. here is what I was doing: int main() { int(*fpt)(structProperty*); fpt= ThreadFunct; runFunc( fpt ); } int Funct( int(*fpt)(structProperty*) ) { pthread_t threads[NTHREADS]; structProperty* property pthread_create( &threads[0], NULL, int(*fpt)(structProperty*)ThreadFunct, (void*)property ); } Thats just a rough outline, anyways property was going out of scope while the thread was running, just as Zera and Daniel warned me about. I just moved the declaration into main and switched tool kits to motif from GTK and all is well. Basically I could not pass a function pointer as a call back with paramaters from a GTK button through to actually running the function. That is why I moved the declaration of property down a level in the first place, didn't occur to me how vital scope is when using threads though. Switched to motif and everything passes flawlessly. I wish GTK had either better docs or wasn't broken, not sure what the problem is there, probably my lack of understanding again but I don't care, motif will work for what I need to do. If it wasn't for Zera and Daniel's questions I would have never figured this out! > > > Hmmm, should I'll try making "property" global then passing a copy > > of it to each thread? I think that will guarantee it stays valid. > > Since you are asking about makint it global - what is it *now*? It > would have to be either global, dynamically allocated, or on the > stack. If it's on the stack, things are guaranteed to blow up unless > the function in question is guaranteed to not terminate untill all > threads are done with the data. What is the property pointer being > initialized/set to? > > If it's dynamically allocated you should not have a problem. > > And I don't see how static vs. dynamic linking of libraries should > matter, but perhaps I am overlooking something. I don't get that either, should not have worked either way as far as I can tell. -Mike From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 22:10:57 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86F1616A4CE for ; Wed, 16 Mar 2005 22:10:57 +0000 (GMT) Received: from ms-dienst.rz.rwth-aachen.de (ms-2.rz.RWTH-Aachen.DE [134.130.3.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE72843D3F for ; Wed, 16 Mar 2005 22:10:56 +0000 (GMT) (envelope-from chris@unixpages.org) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0IDG00F2ZTM7Z6@ms-dienst.rz.rwth-aachen.de> for freebsd-hackers@freebsd.org; Wed, 16 Mar 2005 23:10:56 +0100 (MET) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Wed, 16 Mar 2005 23:10:55 +0100 (MET) Received: from haakonia.hitnet.rwth-aachen.de (haakonia.hitnet.RWTH-Aachen.DE [137.226.181.92])j2GMAr5O011577; Wed, 16 Mar 2005 23:10:53 +0100 (MET) Received: from gondor.middleearth (gondor.middleearth [192.168.1.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))(Postfix) with ESMTP id A37172842E; Wed, 16 Mar 2005 23:10:48 +0100 (CET) Received: by gondor.middleearth (Postfix, from userid 1001) id 522132285A; Wed, 16 Mar 2005 23:10:47 +0100 (CET) Date: Wed, 16 Mar 2005 23:10:46 +0100 From: Christian Brueffer In-reply-to: <53113.69.36.228.194.1111009862.squirrel@69.36.228.194> To: Amandeep Pannu Message-id: <20050316221046.GA75292@unixpages.org> MIME-version: 1.0 Content-type: multipart/signed; boundary=GvXjxJ+pjyke8COw; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.0-CURRENT X-PGP-Key: http://people.FreeBSD.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> <20050314203715.GW91771@hub.freebsd.org> <56241.69.36.228.194.1110931336.squirrel@69.36.228.194> <42377D8A.1020905@rojer.pp.ru> <44838.69.36.228.194.1111007015.squirrel@69.36.228.194> <4238A103.5090805@rojer.pp.ru> <53113.69.36.228.194.1111009862.squirrel@69.36.228.194> cc: Rojer cc: freebsd-hackers@freebsd.org Subject: Re: Freebsd 5.3 with Broadcom BCM5721 PCI Express GbE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 22:10:57 -0000 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 16, 2005 at 01:51:02PM -0800, Amandeep Pannu wrote: > Hi Roger, >=20 > I installed the FreeBSd 5.3-Rel and also FreeBSd 5.2.1, no luck. > Now the kernel GENERic file shows bge # 570XX > I think these are different BCM5721. >=20 The comment in GENERIC is not accurate, the bge driver supports 5721 based cards for a couple of month now (the manpage in RELENG_5 is correct). You can either update to RELENG_5 to get a newer driver, or wait for FreeBSD 5.4 (it's not too far away). - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCOK7mbHYXjKDtmC0RAonHAKDvDl0AdWYYcEQTQEj7inAR1bJMiACeIapp XeFGTKYALgiMewqing39PFo= =254E -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw-- From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 16 20:12:44 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DDE916A4CE; Wed, 16 Mar 2005 20:12:44 +0000 (GMT) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF2F343D2D; Wed, 16 Mar 2005 20:12:42 +0000 (GMT) (envelope-from pmc@citylink.dinoex.sub.org) Received: from uucp.dinoex.sub.de (uucp@uucp.dinoex.sub.de [194.45.71.2] (may be forged)) by uucp.dinoex.sub.de (8.13.3/8.13.3) with ESMTP id j2GKC9P5084058; Wed, 16 Mar 2005 21:12:09 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from citylink.dinoex.sub.org (uucp@localhost) j2GKC98C084057; Wed, 16 Mar 2005 21:12:09 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) j2GJEn2U096373; Wed, 16 Mar 2005 20:14:54 +0100 (CET) (envelope-from peter@gate.oper.dinoex.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by gate.oper.dinoex.org (8.13.1/8.13.1) with ESMTP id j2GJD3Lv096274; Wed, 16 Mar 2005 20:13:04 +0100 (CET) (envelope-from peter@gate.oper.dinoex.org) Received: (from peter@localhost) by gate.oper.dinoex.org (8.13.1/8.13.1/Submit) id j2GJD37s096273; Wed, 16 Mar 2005 20:13:03 +0100 (CET) (envelope-from peter) Date: Wed, 16 Mar 2005 20:13:03 +0100 From: Peter Much To: Palle Girgensohn Message-ID: <20050316191303.GA87431@gate.oper.dinoex.org> References: <20050315170656.GA73993@gate.oper.dinoex.org> <9C05F10029508113D296723A@rambutan.pingpong.net> <20050315185224.GA83998@gate.oper.dinoex.org> <20050316104331.GA56139@gate.oper.dinoex.org> <012F732A0FD93F1880662177@rambutan.pingpong.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <012F732A0FD93F1880662177@rambutan.pingpong.net> User-Agent: Mutt/1.4.2.1i X-Milter: Spamilter (Reciever: uucp.dinoex.sub.de; Sender-ip: 194.45.71.2; Sender-helo: uucp.dinoex.sub.de;) X-Mailman-Approved-At: Thu, 17 Mar 2005 13:26:54 +0000 cc: freebsd-hackers@freebsd.org cc: pgsql-interfaces@postgresql.org cc: brett_schwarz@yahoo.com cc: freebsd-questions@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: FreeBSD 5.3: Sharedlibs using sharedlibs (and Tcl) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 20:12:44 -0000 On Wed, Mar 16, 2005 at 03:35:16PM +0100, Palle Girgensohn wrote: ! ! --On onsdag, mars 16, 2005 11.43.31 +0100 Peter Much ! wrote: ! ! >! So, you're saying that pctclsh *can* access, but pgaccess *cannot*? ! >Odd... ! I would expect they'd both use the same lib to connect, no? ! >I'll have to ! > ! >They use the same libraries, yes. But Tcl interpreter seem to need more ! >advice on where to find sub-functions in other libraries. It looks ! >like this: ! > ! >pgtclsh -finds-> libpgtcl.so -finds-> libpq.so -finds-> libkrb5.so ! >pgaccess -loads-> libpgtcl.so -finds-> libpq.so -fails-> libkrb5.so ! ! Uh, OK. I'm not qualified enough with linkers to answer this, I'm afraid. ! Did you try the pgsql-interfaces mailing list? Oh well, same with me. I sent a copy of one of my reports to that list, yes. But only got feedback that it will be evaluated by moderator, as I am not signed on that list. I'm actually no professional psql user - the database is just a small part of my installation, mainly logging the lowlevel error counts from my exabyte drives and providing reports about tape wearout. And the kerberos is just there for fun, as a reference installation. Nevertheless, I would think this is not a matter for the postgres community. Because this would happen the same way with any other application that provides Tcl support and kerberos support (or maybe also with other components of the system, if they are used from Tcl). So it seems either a Tcl problem or a linker/loader problem. Which, I cannot say - maybe both. ! >And then I found that it is enough to place into libpq.so the explicit ! >references to libkrb5 and the other kerberos libs. That is what the ! >"readelf -a" output in my other mail shows. ! ! sounds like a better solution, yes... Shouldn't they always be there? ! Sounds like a bug to me? Thats the question. I just did a little more investigation (like reading manpages) and found out _WHY_ it does work for pgtclsh but not for pgaccess. There is a command "ldd" that shows nested library dependencies for any program. For pgtclsh it shows all the kerberos libs: bash-3.00# ldd /usr/local/bin/pgtclsh /usr/local/bin/pgtclsh: libpgtcl.so.2 => /usr/local/lib/libpgtcl.so.2 (0x28075000) libpq.so.3 => /usr/local/lib/libpq.so.3 (0x2807d000) libtcl84.so.1 => /usr/local/lib/libtcl84.so.1 (0x28097000) libm.so.3 => /lib/libm.so.3 (0x28135000) libkrb5.so.7 => /usr/lib/libkrb5.so.7 (0x2814f000) libasn1.so.7 => /usr/lib/libasn1.so.7 (0x28186000) libcrypto.so.3 => /lib/libcrypto.so.3 (0x281a6000) libroken.so.7 => /usr/lib/libroken.so.7 (0x2829b000) libcrypt.so.2 => /lib/libcrypt.so.2 (0x282a9000) libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x282c1000) libz.so.2 => /lib/libz.so.2 (0x282c3000) libreadline.so.5 => /lib/libreadline.so.5 (0x282d3000) libutil.so.4 => /lib/libutil.so.4 (0x282ff000) libc.so.5 => /lib/libc.so.5 (0x2830b000) libintl.so.6 => /usr/local/lib/libintl.so.6 (0x283e4000) libssl.so.3 => /usr/lib/libssl.so.3 (0x283ed000) libncurses.so.5 => /lib/libncurses.so.5 (0x2841b000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x2845a000) But for libpgtcl.so (this is the first elf binary that pgaccess gets to see) it does not show these kerberos libraries (I use the old libpq.so here, not the one that I have modified): bash-3.00# ldd /usr/local/lib/libpgtcl.so /usr/local/lib/libpgtcl.so: libpq.so.3 => /usr/local/lib/libpq.so.3 (0x2815a000) libtcl84.so.1 => /usr/local/lib/libtcl84.so.1 (0x28174000) libm.so.3 => /lib/libm.so.3 (0x28212000) libintl.so.6 => /usr/local/lib/libintl.so.6 (0x2822c000) libssl.so.3 => /usr/lib/libssl.so.3 (0x28235000) libcrypto.so.3 => /lib/libcrypto.so.3 (0x28263000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28358000) Then the explanation became simple: these kerberos libraries get just LITERALLY LISTED WITHIN THE pgtclsh BINARY! And this is an impossible method for a Tcl script. bash-3.00# readelf -d /usr/local/bin/pgtclsh | grep krb5 0x00000001 (NEEDED) Shared library: [libkrb5.so.7] So now we have a full explanation for the behaviour, but not really a solution. Instead, this looks like a fundamental question about how to load nested elf sharedlibs from interpreter languages. >From my technical viewpoint, the only solution that makes sense would be: every shared library must reference all other shared libraries from which it uses functions. The shared library cannot rely on the executable to do this job, because the executable may be an interpreter script, which neither is able to do this nor would it want to know them all. >From this viewpoint, the linker command that creates libpq.so is defective. So You were right and its a problem for the postgresql developers. But as I am not competent with shared libraries and development systems and such stuff, I would very much appreciate the opinion of somebody with profound knowledge of these things. And anyway, perl should have similar problems. Ok, lets see - which nice mailinglists do we crosspost today? I go with questions and ports, and add hackers. I think we're now deep enough in the rabbithole for them. ;-) And psql-interfaces. PMc From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 15:08:18 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BBEB16A4CE for ; Thu, 17 Mar 2005 15:08:18 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A88D43D1F for ; Thu, 17 Mar 2005 15:08:17 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by rproxy.gmail.com with SMTP id c16so7977rne for ; Thu, 17 Mar 2005 07:08:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=CoTat9BIZ7ziOj285HslrPnU1cVG5fJO5uhbMBz94rOwf2o5bI9mjQAp70YEXw/hsihRvQFpQIanDGaLR1TWecv7kyyvLUxZIwzu7SGjkKUCDZ7nUQDJWLM5bqkjdOOk82IoHdp3dk46jalSZWJNDH8cEz8cqTc/B2Mt8EV5FGU= Received: by 10.38.102.12 with SMTP id z12mr1551327rnb; Thu, 17 Mar 2005 07:08:16 -0800 (PST) Received: by 10.38.13.78 with HTTP; Thu, 17 Mar 2005 07:08:16 -0800 (PST) Message-ID: Date: Thu, 17 Mar 2005 15:08:16 +0000 From: Pietro Cerutti To: freebsd-hackers@freebsd.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <44oedixquh.fsf@be-well.ilk.org> Subject: Fwd: problem due to hostname change X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pietro Cerutti List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 15:08:18 -0000 Hi Hackers, I posted this on freebsd-questions, but couldn't find a solution... Maybe here.... Thank you! Please: don't Cc me, I'm on the list! ---------- Forwarded message ---------- From: Pietro Cerutti Date: Thu, 17 Mar 2005 15:04:45 +0000 Subject: Re: problem due to hostname change To: Lowell Gilbert Cc: FreeBSD On 17 Mar 2005 09:57:26 -0500, Lowell Gilbert wrote: > Pietro Cerutti writes: > > > Hi list, > > my computer is not part of a domain, and so I had set my hostname to > > . > > Now I changed it in rc.conf to : > > > > ~> cat /etc/rc.conf | grep hostname > > hostname="" > > ~> > > > > I rebooted, but my pc is still somewhere configured to be called . > > First of all, when the pc boots, I see this in dmesg: > > > > FreeBSD 5.4-PRERELEASE #10: Wed Mar 9 15:40:46 UTC 2005 > > @:/usr/obj/usr/src/sys/GAHR > > That's not a problem; all it means is that's who built the kernel. It > doesn't get used for *anything* other than printing that message. > > > Then, when I try to start apache, I see this in my > > /var/log/httpd-error.log, and apache won't start: > > > > [Thu Mar 17 13:29:11 2005] [alert] mod_unique_id: unable to > > gethostbyname("") > > You must have put the old hostname into Apache's configuration > explicitly. You will need to change it by hand. The configuration > file is (by default, as installed from the port) > /usr/local/etc/apache/httpd.conf. No, this is not the problem. I searched in httpd.conf but I didn't find anything concerning my . I even deinstalled & deleted the configuration files & reinstalled apache. Don't forget this: FreeBSD 5.4-PRERELEASE #10: Wed Mar 9 15:40:46 UTC 2005 @:/usr/obj/usr/src/sys/GAHR Here I have my too. > > > > > My question is: how can I change my hostname to safely, > > in a way that the is not used anymore in any part of > > the OS? > > Changing rc.conf is enough for anything that was configured > automatically. It should be so, but it actually isn't. If you changed some other configuration by hand, you > will need to change it again by hand. Note that if you had not added > your hostname to httpd.conf, Apache would have used the system > hostname by default (I believe; I haven't actually checked this > recently). I'm sure I didn't set my anywhere else than in rc.conf > > Be well. > However, thank you for your advice, but it didn't solve my problem... -- Pietro Cerutti Beansidhe - SwiSS Death / Thrash Metal Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming or what?" -- Pietro Cerutti Beansidhe - SwiSS Death / Thrash Metal Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming or what?" From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 15:12:36 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8449816A4CE for ; Thu, 17 Mar 2005 15:12:36 +0000 (GMT) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F2A343D2D for ; Thu, 17 Mar 2005 15:12:35 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j2HFCYml015176; Thu, 17 Mar 2005 09:12:34 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <42399E59.5050806@centtech.com> Date: Thu, 17 Mar 2005 09:12:25 -0600 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pietro Cerutti References: <44oedixquh.fsf@be-well.ilk.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/766/Thu Mar 17 06:54:34 2005 on mh1.centtech.com X-Virus-Status: Clean cc: freebsd-hackers@freebsd.org Subject: Re: Fwd: problem due to hostname change X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 15:12:36 -0000 Pietro Cerutti wrote: > Hi Hackers, > I posted this on freebsd-questions, but couldn't find a solution... > > Maybe here.... > > Thank you! > > > Please: don't Cc me, I'm on the list! > > > ---------- Forwarded message ---------- > From: Pietro Cerutti > Date: Thu, 17 Mar 2005 15:04:45 +0000 > Subject: Re: problem due to hostname change > To: Lowell Gilbert > Cc: FreeBSD > > > On 17 Mar 2005 09:57:26 -0500, Lowell Gilbert > wrote: > >>Pietro Cerutti writes: >> >> >>>Hi list, >>>my computer is not part of a domain, and so I had set my hostname to >>>. >>>Now I changed it in rc.conf to : >>> >>>~> cat /etc/rc.conf | grep hostname >>>hostname="" >>>~> >>> >>>I rebooted, but my pc is still somewhere configured to be called . >>>First of all, when the pc boots, I see this in dmesg: >>> >>>FreeBSD 5.4-PRERELEASE #10: Wed Mar 9 15:40:46 UTC 2005 >>> @:/usr/obj/usr/src/sys/GAHR >> >>That's not a problem; all it means is that's who built the kernel. It >>doesn't get used for *anything* other than printing that message. >> >> >>>Then, when I try to start apache, I see this in my >>>/var/log/httpd-error.log, and apache won't start: >>> >>>[Thu Mar 17 13:29:11 2005] [alert] mod_unique_id: unable to >>>gethostbyname("") >> >>You must have put the old hostname into Apache's configuration >>explicitly. You will need to change it by hand. The configuration >>file is (by default, as installed from the port) >>/usr/local/etc/apache/httpd.conf. > > > No, this is not the problem. I searched in httpd.conf but I didn't > find anything concerning my . > > I even deinstalled & deleted the configuration files & reinstalled apache. > > Don't forget this: > FreeBSD 5.4-PRERELEASE #10: Wed Mar 9 15:40:46 UTC 2005 > @:/usr/obj/usr/src/sys/GAHR > > Here I have my too. > > >>>My question is: how can I change my hostname to safely, >>>in a way that the is not used anymore in any part of >>>the OS? >> >>Changing rc.conf is enough for anything that was configured >>automatically. > > > It should be so, but it actually isn't. > > If you changed some other configuration by hand, you > >>will need to change it again by hand. Note that if you had not added >>your hostname to httpd.conf, Apache would have used the system >>hostname by default (I believe; I haven't actually checked this >>recently). > > > I'm sure I didn't set my anywhere else than in rc.conf What about /etc/hosts? Maybe try: grep oldhostname /etc/* Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology I have seen the future and it is just like the present, only longer. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 15:42:31 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56E5316A4CF for ; Thu, 17 Mar 2005 15:42:31 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DD8843D5A for ; Thu, 17 Mar 2005 15:42:30 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by rproxy.gmail.com with SMTP id g11so23057rne for ; Thu, 17 Mar 2005 07:42:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=hdy+UeB03qfVDgdAbhUDAczBS13a5YmSLaPhMQdUVV8LTK9R7Vy9N8RSZjX3EEOlnNd+w+fEFs9kl2oiPbFmNLgqniFNSt3GdqJ4uS8WlRdp+Ta6nizDJtzDMTUdFX+9c2Dec6kd+RMcg5+dJYjsg8h9Sp1I6hwPQ0x7vZGuVuw= Received: by 10.39.1.24 with SMTP id d24mr1573112rni; Thu, 17 Mar 2005 07:42:29 -0800 (PST) Received: by 10.38.13.78 with HTTP; Thu, 17 Mar 2005 07:42:29 -0800 (PST) Message-ID: Date: Thu, 17 Mar 2005 15:42:29 +0000 From: Pietro Cerutti To: FreeBSD , freebsd-hackers@freebsd.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: Subject: Re: problem due to hostname change X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pietro Cerutti List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 15:42:31 -0000 On Thu, 17 Mar 2005 07:38:49 -0800, Ted Mittelstaedt wrote: > > > > -----Original Message----- > > From: owner-freebsd-questions@freebsd.org > > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Pietro Cerutti > > Sent: Thursday, March 17, 2005 7:05 AM > > To: Lowell Gilbert > > Cc: FreeBSD > > Subject: Re: problem due to hostname change > > > > No, this is not the problem. I searched in httpd.conf but I didn't > > find anything concerning my . > > > > When apache starts up if it don't have your hostname set in it's > config file then it issues a system call asking what > the hostname for the IP address is that is on your host. > > whatever it gets back it then uses to setup a default website. If you > change the name of your host in /etc.rc.conf then it better also > have been changed in any DNS servers that your system is using. > > > > > I'm sure I didn't set my anywhere else than in rc.conf > > > > Did you check /etc/hosts > > > Ted > > Thanks Ted, Neo-Vortex and Eric. nothing found with grep on /etc/* , /usr/local/etc* , /var/named/* but I found this: # grep /var/* Binary file /var/db matches Binary file /var/mysql matches Binary file /var/restoresymtable matches # Well I double check once more on my system! Thank you! -- Pietro Cerutti Beansidhe - SwiSS Death / Thrash Metal Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming or what?" From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 16:38:17 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F01616A4CE for ; Thu, 17 Mar 2005 16:38:17 +0000 (GMT) Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72C9C43D48 for ; Thu, 17 Mar 2005 16:38:16 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: (from root@localhost) by hanoi.cronyx.ru (8.13.0/vak/3.0) id j2HGZEOK082571 for freebsd-hackers@freebsd.org.checked; Thu, 17 Mar 2005 19:35:14 +0300 (MSK) (envelope-from rik@cronyx.ru) Received: from [144.206.181.94] (hi.cronyx.ru [144.206.181.94]) by hanoi.cronyx.ru (8.13.0/vak/3.0) with ESMTP id j2HGXmZa082551 for ; Thu, 17 Mar 2005 19:33:49 +0300 (MSK) (envelope-from rik@cronyx.ru) Message-ID: <4239B16E.8080502@cronyx.ru> Date: Thu, 17 Mar 2005 19:33:50 +0300 From: Roman Kurakin User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: style(9) example :-) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 16:38:17 -0000 Hi, I was unable to refrain from posting this :-) int i;main(){for(;i["] Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFFE016A4CE for ; Thu, 17 Mar 2005 17:34:07 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4297843D1F for ; Thu, 17 Mar 2005 17:34:07 +0000 (GMT) (envelope-from opensource.enthousiat@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so238855wri for ; Thu, 17 Mar 2005 09:34:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=PMKkOmF4MY6AIvJ/3mFOCSuNOd9QEl6rMmOEwUXiQptSkDY5CG8hhIFgicmlVPI3+Y+Ygyx96/I2Y576XJVipHFNhPrzRlIKvur0u8qxLJklP6CCTYuUJ5CKHseUQjMRYBEbqj9XmypK7dkfE4Ega4tzhWsL6rbpqbsGkwanbF4= Received: by 10.54.57.25 with SMTP id f25mr1888646wra; Thu, 17 Mar 2005 09:34:06 -0800 (PST) Received: by 10.54.49.28 with HTTP; Thu, 17 Mar 2005 09:34:06 -0800 (PST) Message-ID: <37e13166050317093477de8f7a@mail.gmail.com> Date: Thu, 17 Mar 2005 12:34:06 -0500 From: Aziz KEZZOU To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: How to send a signal from inside the kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Aziz KEZZOU List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 17:34:07 -0000 Hi all, I would like to send a signal (e.g SIGUSR1) to a user process from inside the kernel (kld module). Can any one tell me how to do it ? I tried the following code inspired from sys/kern/kern_sig.c : ============================================================== #include #include int process_pid; struct kill_args { int pid; int signum; }; void send_SIGUSR1() { struct kill_args uap; uap.pid = process_pid; uap.signum = SIGUSR1; kill((struct thread *)0, &uap); } =============================================================== but that causes a page fault in kernel mode (ie. Kernel panic :-) Any help is appreciated, thanks. Aziz From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 18:12:01 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0EC416A4CE for ; Thu, 17 Mar 2005 18:12:01 +0000 (GMT) Received: from mail21.sea5.speakeasy.net (mail21.sea5.speakeasy.net [69.17.117.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7068843D60 for ; Thu, 17 Mar 2005 18:12:01 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 3792 invoked from network); 17 Mar 2005 18:12:00 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail21.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Mar 2005 18:12:00 -0000 Received: from hydrogen.funkthat.com (knwluz@localhost.funkthat.com [127.0.0.1])j2HIC0GH031576; Thu, 17 Mar 2005 10:12:00 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id j2HIC0KD031575; Thu, 17 Mar 2005 10:12:00 -0800 (PST) Date: Thu, 17 Mar 2005 10:12:00 -0800 From: John-Mark Gurney To: Aziz KEZZOU Message-ID: <20050317181200.GK89312@funkthat.com> Mail-Followup-To: Aziz KEZZOU , freebsd-hackers@freebsd.org References: <37e13166050317093477de8f7a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37e13166050317093477de8f7a@mail.gmail.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org Subject: Re: How to send a signal from inside the kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 18:12:01 -0000 Aziz KEZZOU wrote this message on Thu, Mar 17, 2005 at 12:34 -0500: > Hi all, > I would like to send a signal (e.g SIGUSR1) to a user process from > inside the kernel (kld module). > Can any one tell me how to do it ? > I tried the following code inspired from sys/kern/kern_sig.c : > ============================================================== > #include > #include > > int process_pid; > struct kill_args { > int pid; > int signum; > }; > > void send_SIGUSR1() { > struct kill_args uap; > uap.pid = process_pid; > uap.signum = SIGUSR1; > kill((struct thread *)0, &uap); > } > =============================================================== > > but that causes a page fault in kernel mode (ie. Kernel panic :-) > > Any help is appreciated, thanks. Take a look at psignal(9)... You'll need to look up the struct proc for psignal with pfind(9)... and then PROC_UNLOCK the struct proc after you've used psignal... so: struct proc *p; p = pfind(pid); if (p != NULL) { psignal(p, SIGUSR1); PROC_UNLOCK(p); } I haven't tried the code above, but that should do what you want... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 19:55:13 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BDA516A567 for ; Thu, 17 Mar 2005 19:55:13 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99D1E43D2D for ; Thu, 17 Mar 2005 19:55:12 +0000 (GMT) (envelope-from opensource.enthousiat@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so275604wri for ; Thu, 17 Mar 2005 11:55:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=ijG2KJY4oqVyZNSs5ih2jpIS+RfUZRmkeAobnYbWV+02Czdak38uLuvK08ZmpB4WQqTRreDgt7vwvGxmFFV5j0biAdGxB3Nd1V8Y7GAolkFaIje8ccvy7eBQwsV5LNc1R1L5ygSgMHJJ/yzS43v6aEhOqXTruUcUNa9vIczCWcU= Received: by 10.54.57.25 with SMTP id f25mr2004807wra; Thu, 17 Mar 2005 11:55:11 -0800 (PST) Received: by 10.54.49.28 with HTTP; Thu, 17 Mar 2005 11:55:11 -0800 (PST) Message-ID: <37e1316605031711555c47c8ca@mail.gmail.com> Date: Thu, 17 Mar 2005 14:55:11 -0500 From: Aziz KEZZOU To: John-Mark Gurney , Aziz KEZZOU , freebsd-hackers@freebsd.org In-Reply-To: <20050317181200.GK89312@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <37e13166050317093477de8f7a@mail.gmail.com> <20050317181200.GK89312@funkthat.com> Subject: Re: How to send a signal from inside the kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Aziz KEZZOU List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 19:55:13 -0000 > Aziz KEZZOU wrote this message on Thu, Mar 17, 2005 at 12:34 -0500: > > Hi all, > > I would like to send a signal (e.g SIGUSR1) to a user process from > > inside the kernel (kld module). > > Can any one tell me how to do it ? > > I tried the following code inspired from sys/kern/kern_sig.c : > > ============================================================== > > #include > > #include > > > > int process_pid; > > struct kill_args { > > int pid; > > int signum; > > }; > > > > void send_SIGUSR1() { > > struct kill_args uap; > > uap.pid = process_pid; > > uap.signum = SIGUSR1; > > kill((struct thread *)0, &uap); > > } > > =============================================================== > > > > but that causes a page fault in kernel mode (ie. Kernel panic :-) > > > > Any help is appreciated, thanks. > > Take a look at psignal(9)... You'll need to look up the struct proc > for psignal with pfind(9)... and then PROC_UNLOCK the struct proc > after you've used psignal... > > so: > struct proc *p; > > p = pfind(pid); > if (p != NULL) { > psignal(p, SIGUSR1); > PROC_UNLOCK(p); > } > > I haven't tried the code above, but that should do what you want... It works, thanks a lot !! Here are the headers needed in case someone reads this thread: #include /*needed only for NULL, can be removed*/ #include #include #include #include #include Have fun, Aziz From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 20:19:14 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1BAF16A4CE for ; Thu, 17 Mar 2005 20:19:14 +0000 (GMT) Received: from kuldipmanak.chamkila.org (node-40240ed2.sjc.onnet.us.uu.net [64.36.14.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C35343D2D for ; Thu, 17 Mar 2005 20:19:14 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from mail.chamkila.org (localhost.localdomain [127.0.0.1]) j2HKHiBg029987; Thu, 17 Mar 2005 12:17:44 -0800 Received: from 69.36.228.194 (proxying for 192.168.96.214) (SquirrelMail authenticated user aman); by mail.chamkila.org with HTTP; Thu, 17 Mar 2005 12:17:44 -0800 (PST) Message-ID: <53000.69.36.228.194.1111090664.squirrel@69.36.228.194> In-Reply-To: <20050316221046.GA75292@unixpages.org> References: <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> <20050314203715.GW91771@hub.freebsd.org> <56241.69.36.228.194.1110931336.squirrel@69.36.228.194> <42377D8A.1020905@rojer.pp.ru> <44838.69.36.228.194.1111007015.squirrel@69.36.228.194> <4238A103.5090805@rojer.pp.ru> <53113.69.36.228.194.1111009862.squirrel@69.36.228.194> <20050316221046.GA75292@unixpages.org> Date: Thu, 17 Mar 2005 12:17:44 -0800 (PST) From: "Amandeep Pannu" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: Amandeep Pannu Subject: Re: Freebsd 5.0 NICs issue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 20:19:14 -0000 Hi I have a machine running FreeBSD 5.0 , it is actually my Primary DNS server. it has two Nics. em0 and em1 Now the em0 nic is up with 205.229.165.4 netmask 255.255.255.0 When I try to do ifconfig em1 inet 205.229.165.8 netmask 255.255.255.0 up it say File exists. then i read that the netmask should be 255.255.255.255 then i did that the machine then is hooked wiht the ethernet cable in em1 and it starts puring some kernel:arp messages. I have tried doing it from scratch removinf all entriedsfrom /etc/rc.conf and then tried to manuall assign them IP. em0 goes well but again em1 say file exists or those arp messages copme up. Any ideas what is going on. Thanks in advance A From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 21:19:14 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B97B216A4CE for ; Thu, 17 Mar 2005 21:19:14 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id C431743D49 for ; Thu, 17 Mar 2005 21:19:13 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-b224.otenet.gr [212.205.244.232]) j2HLIe6i031680; Thu, 17 Mar 2005 23:18:41 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j2HLJ4Vj001239; Thu, 17 Mar 2005 23:19:04 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j2HLJ39Z001238; Thu, 17 Mar 2005 23:19:03 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Thu, 17 Mar 2005 23:19:03 +0200 From: Giorgos Keramidas To: Roman Kurakin Message-ID: <20050317211903.GA1188@gothmog.gr> References: <4239B16E.8080502@cronyx.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4239B16E.8080502@cronyx.ru> cc: freebsd-hackers@freebsd.org Subject: Re: style(9) example :-) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 21:19:14 -0000 On 2005-03-17 19:33, Roman Kurakin wrote: > Hi, > > I was unable to refrain from posting this :-) > > int i;main(){for(;i["] o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} I've written stuff that's probably a bit harder to read, but in Perl :P % cat filter.pl #/usr/bin/perl while(){chomp;print(join('',(map{my($b,$j,$t,$o)=(65,128,90,ord($_));(( $o-$b)>=0&&($o-$b)<=($t-$b))?eval{$o=(($o-$b)+13)%26+$b;$j=11;}:eval{$b=97;$t= 122;(($b>$o)||($t<$o))?eval{$j=10;}:eval{$o=(($o-$b)+13)%26+$b;$j=1431;};};$_= chr(int(int(($j%2)==(chr($o)==$_))?$o:ord($_)));}(split//,$_)))."\n");} % From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 21:47:59 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2691D16A4CE for ; Thu, 17 Mar 2005 21:47:59 +0000 (GMT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5E5243D55 for ; Thu, 17 Mar 2005 21:47:58 +0000 (GMT) (envelope-from dougb@freebsd.org) Received: from [192.0.35.182] (g35-182.icann.org[192.0.35.182]) by comcast.net (sccrmhc11) with ESMTP id <2005031721475801100s6mkke>; Thu, 17 Mar 2005 21:47:58 +0000 Message-ID: <4239FB0D.4050603@freebsd.org> Date: Thu, 17 Mar 2005 13:47:57 -0800 From: Doug Barton Organization: http://www.FreeBSD.org User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: NO_TCSH leaves crud in /usr/src X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 21:47:59 -0000 This issue has been around a long time, but I keep forgetting to post it. When I enable NO_TCSH in /etc/make.conf, after a build/installworld I get this in /usr/src: ? bin/csh/gethost ? bin/csh/sh.err.h ? bin/csh/tc.const.h They don't seem to hurt anything, but it would be nice to get this fixed. Doug -- This .signature sanitized for your protection From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 21:49:05 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D3A716A4CE for ; Thu, 17 Mar 2005 21:49:05 +0000 (GMT) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id B024543D5C for ; Thu, 17 Mar 2005 21:49:04 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 9158 invoked from network); 17 Mar 2005 21:49:04 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Mar 2005 21:49:04 -0000 Received: from hydrogen.funkthat.com (xgpkda@localhost.funkthat.com [127.0.0.1])j2HLn3GH037002; Thu, 17 Mar 2005 13:49:03 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id j2HLn38R037001; Thu, 17 Mar 2005 13:49:03 -0800 (PST) Date: Thu, 17 Mar 2005 13:49:03 -0800 From: John-Mark Gurney To: Aziz KEZZOU Message-ID: <20050317214903.GL89312@funkthat.com> Mail-Followup-To: Aziz KEZZOU , freebsd-hackers@freebsd.org References: <37e13166050317093477de8f7a@mail.gmail.com> <20050317181200.GK89312@funkthat.com> <37e1316605031711555c47c8ca@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37e1316605031711555c47c8ca@mail.gmail.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org Subject: Re: How to send a signal from inside the kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 21:49:05 -0000 Aziz KEZZOU wrote this message on Thu, Mar 17, 2005 at 14:55 -0500: > > Aziz KEZZOU wrote this message on Thu, Mar 17, 2005 at 12:34 -0500: > > > Hi all, > > > I would like to send a signal (e.g SIGUSR1) to a user process from > > > inside the kernel (kld module). > > > Can any one tell me how to do it ? > > > I tried the following code inspired from sys/kern/kern_sig.c : > > > ============================================================== > > > #include > > > #include > > > > > > int process_pid; > > > struct kill_args { > > > int pid; > > > int signum; > > > }; > > > > > > void send_SIGUSR1() { > > > struct kill_args uap; > > > uap.pid = process_pid; > > > uap.signum = SIGUSR1; > > > kill((struct thread *)0, &uap); > > > } > > > =============================================================== > > > > > > but that causes a page fault in kernel mode (ie. Kernel panic :-) > > > > > > Any help is appreciated, thanks. > > > > Take a look at psignal(9)... You'll need to look up the struct proc > > for psignal with pfind(9)... and then PROC_UNLOCK the struct proc > > after you've used psignal... > > > > so: > > struct proc *p; > > > > p = pfind(pid); > > if (p != NULL) { > > psignal(p, SIGUSR1); > > PROC_UNLOCK(p); > > } > > > > I haven't tried the code above, but that should do what you want... > > It works, thanks a lot !! > Here are the headers needed in case someone reads this thread: > > #include /*needed only for NULL, can be removed*/ This header (unistd.h) shouldn't be included in kernel code... > #include > #include style(9) says: Kernel include files (i.e. sys/*.h) come first; normally, include OR , but not both. It also looks like sys/param.h is suppose to define NULL since it includes _null.h (on -current) or defines it directly (on RELENG_4)... so you could should just include sys/param.h, and ditch sys/types.h and unistd.h and it should work... > #include > #include > #include -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 22:04:28 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0D3216A4CE; Thu, 17 Mar 2005 22:04:28 +0000 (GMT) Received: from pd3mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 930CE43D39; Thu, 17 Mar 2005 22:04:28 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd3mr2so.prod.shaw.ca (pd3mr2so-qfe3.prod.shaw.ca [10.0.141.178]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IDI00423NZ6Y745@l-daemon>; Thu, 17 Mar 2005 15:04:18 -0700 (MST) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd3mr2so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IDI001IFNZ6RXH0@pd3mr2so.prod.shaw.ca>; Thu, 17 Mar 2005 15:04:18 -0700 (MST) Received: from [192.168.0.60] (S0106006067227a4a.vc.shawcable.net [24.87.209.6]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IDI00H3PNZ6B9@l-daemon>; Thu, 17 Mar 2005 15:04:18 -0700 (MST) Date: Thu, 17 Mar 2005 14:04:17 -0800 From: Colin Percival In-reply-to: <4239FB0D.4050603@freebsd.org> To: Doug Barton Message-id: <4239FEE1.3060900@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime References: <4239FB0D.4050603@freebsd.org> User-Agent: Mozilla Thunderbird 1.0 (X11/20050314) cc: freebsd-hackers@freebsd.org Subject: Re: NO_TCSH leaves crud in /usr/src X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 22:04:28 -0000 Doug Barton wrote: > This issue has been around a long time, but I keep forgetting to post > it. When I enable NO_TCSH in /etc/make.conf, after a build/installworld > I get this in /usr/src: > > ? bin/csh/gethost > ? bin/csh/sh.err.h > ? bin/csh/tc.const.h > > They don't seem to hurt anything, but it would be nice to get this fixed. The problem is in src/rescue/Makefile. I'll fix it. Colin Percival From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 22:05:19 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBECF16A4CE for ; Thu, 17 Mar 2005 22:05:19 +0000 (GMT) Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0593543D1F for ; Thu, 17 Mar 2005 22:05:19 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: (from root@localhost) by hanoi.cronyx.ru (8.13.0/vak/3.0) id j2HM2G21085445 for freebsd-hackers@freebsd.org.checked; Fri, 18 Mar 2005 01:02:16 +0300 (MSK) (envelope-from rik@cronyx.ru) Received: from cronyx.ru (localhost.cronyx.ru [127.0.0.1]) by hanoi.cronyx.ru (8.13.0/vak/3.0) with ESMTP id j2HM0HJF085432; Fri, 18 Mar 2005 01:00:17 +0300 (MSK) (envelope-from rik@cronyx.ru) Message-ID: <4239FBAD.1080504@cronyx.ru> Date: Fri, 18 Mar 2005 00:50:37 +0300 From: Roman Kurakin User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.2.1) Gecko/20030426 X-Accept-Language: ru-ru, en MIME-Version: 1.0 To: Giorgos Keramidas References: <4239B16E.8080502@cronyx.ru> <20050317211903.GA1188@gothmog.gr> In-Reply-To: <20050317211903.GA1188@gothmog.gr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: style(9) example :-) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 22:05:19 -0000 Giorgos Keramidas: >On 2005-03-17 19:33, Roman Kurakin wrote: > > >>Hi, >> >>I was unable to refrain from posting this :-) >> >>int i;main(){for(;i["]>o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} >> >> > >I've written stuff that's probably a bit harder to read, but in Perl :P > >% cat filter.pl >#/usr/bin/perl >while(){chomp;print(join('',(map{my($b,$j,$t,$o)=(65,128,90,ord($_));(( >$o-$b)>=0&&($o-$b)<=($t-$b))?eval{$o=(($o-$b)+13)%26+$b;$j=11;}:eval{$b=97;$t= >122;(($b>$o)||($t<$o))?eval{$j=10;}:eval{$o=(($o-$b)+13)%26+$b;$j=1431;};};$_= >chr(int(int(($j%2)==(chr($o)==$_))?$o:ord($_)));}(split//,$_)))."\n");} >% > I saw smth like that, which run rm -rf /. I hope this one word greeting ;-) Probably one such code could be added to fortunes. rik >_______________________________________________ >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 Thu Mar 17 22:10:41 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB33C16A4CE for ; Thu, 17 Mar 2005 22:10:41 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 416C843D54 for ; Thu, 17 Mar 2005 22:10:41 +0000 (GMT) (envelope-from rexroof@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so308561wri for ; Thu, 17 Mar 2005 14:10:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=btU2RqFFjdQiJnPFd9pY14E8G1cz5EcVqK3mPKrRLPhtbPHmICUrrchAeAEUkBK4K2SDoDev101tWNbvjAxmXa72/hIh6Fp1nmdrA9bQMooiq+vS/iiXoqhkfHHJBKnSB2LcLvK2G//K/uRaVsblAXmfGOxlUYH1ArfZjAx7t5g= Received: by 10.54.11.62 with SMTP id 62mr2013443wrk; Thu, 17 Mar 2005 14:10:40 -0800 (PST) Received: by 10.54.43.2 with HTTP; Thu, 17 Mar 2005 14:10:40 -0800 (PST) Message-ID: <6afb69aa0503171410737c035f@mail.gmail.com> Date: Thu, 17 Mar 2005 17:10:40 -0500 From: Rex Roof To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: IP over FireWire and Mac OSX X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Rex Roof List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 22:10:42 -0000 I have a FreeBSD 5.3 i386 machine I installed today, then ran cvsup with tag=RELENG_5_3. then I rebuilt my kernel with these options in: # FireWire support device firewire device sbp device fwe device fwip options DEVICE_POLLING I plugged this machine into my Powermac G4 running OS X 10.3.8, and I assigned IP addresses to the firewire devices on both, so they look like this: the mac: fw0: flags=8863 mtu 4078 inet6 fe80::20a:95ff:fe69:b7d2 prefixlen 64 scopeid 0x5 inet 10.0.1.10 netmask 0xffffff00 broadcast 10.0.1.255 lladdr 00:0a:95:ff:fe:69:b7:d2 media: autoselect status: active supported media: autoselect the FreeBSD box: fwip0: flags=108843 mtu 1500 inet 10.0.1.11 netmask 0xffffff00 broadcast 10.0.1.255 lladdr 0.30.3c.0.0.9.a0.33.a.2.ff.fe.0.0.0.0 Now, pinging one machine from the other seems to work fine. but as soon as I try traceroute or ssh (originating from either side) my mac crashes with the nice screen telling me to hold down the power button. the dmesg output I'll post below, with the messages it produces when my mac crashes and comes back up again. anyone had any luck getting this working? is there something I'm missing? any suggestions would be appreciated. Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.3-RELEASE-p5 #0: Thu Mar 17 17:11:46 UTC 2005 rex@po.wccnet.edu:/usr/src/sys/i386/compile/NEWSHAOLIN Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel Pentium III (930.32-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x68a Stepping = 10 Features=0x383fbff real memory = 266301440 (253 MB) avail memory = 255127552 (243 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xff080000-0xff0fffff,0xf8000000-0xfbffffff irq 9 at device 2.0 on pci0 pcib1: at device 30.0 on pci0 pci1: on pcib1 fwohci0: mem 0xfdfff000-0xfdffffff irq 9 at device 7.0 on pci1 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:30:3c:00:00:09:a0:33 fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwip0: on firewire0 fwip0: Firewire address: 00:30:3c:00:00:09:a0:33 @ 0xfffe00000000, S400, maxrec 2048 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc3, gen=1, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xec80-0xecff mem 0xfdffec00-0xfdffec7f irq 11 at device 12.0 on pci1 miibus0: on xl0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:b0:d0:f1:d8:9e isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 uhci0: port 0xff80-0xff9f irq 11 at device 31.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 31.3 (no driver attached) uhci1: port 0xff60-0xff7f irq 11 at device 31.4 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pci0: at device 31.5 (no driver attached) sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x778-0x77f,0x378-0x37f irq 7 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 pmtimer0 on isa0 orm0: at iomem 0xca000-0xcbfff,0xc0000-0xc9fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x64,0x60 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] Timecounter "TSC" frequency 930319180 Hz quality 800 Timecounters tick every 10.000 msec ad0: 19073MB [38752/16/63] at ata0-master UDMA100 acd0: CDROM at ata1-master PIO4 Mounting root from ufs:/dev/ad0s1a firewire0: New S400 device ID:000a95fffe69b7d2 firewire0: New S400 device ID:000a2700040217fe firewire0: New S400 device ID:000a270002b9ca1e arp: 10.0.1.10 moved from 00:0a:95:ff:fe:69:b7:d2:0c:83:00:0b:00:00:00:00 to 00:0a:95:ff:fe:69:b7:d2:0c:02:00:0b:00:00:00:00 on fwip0 fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=2, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=3, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=4, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=5, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: txd err= 3 miss Ack err fwohci0: txd err= 3 miss Ack err fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=6, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=7, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=9, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=9, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=10, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=11, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) arp: 10.0.1.10 moved from 00:0a:95:ff:fe:69:b7:d2:0c:83:00:0b:00:00:00:00 to 00:0a:95:ff:fe:69:b7:d2:0c:02:00:0b:00:00:00:00 on fwip0 fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=12, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=13, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=14, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=15, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=16, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=17, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=19, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=19, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=20, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc3, gen=21, CYCLEMASTER mode firewire0: 4 nodes, maxhop <= 2, cable IRM = 3 (me) firewire0: bus manager 3 (me) arp: 10.0.1.10 moved from 00:0a:95:ff:fe:69:b7:d2:0c:02:00:0b:00:00:00:00 to 00:0a:95:ff:fe:69:b7:d2:0c:02:00:0c:00:00:00:00 on fwip0 also, my ipod is plugged into the firewire chain. any tips on making the freebsd box ignore the ipod so that I can use it exclusively on the mac? From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 22:28:52 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF4FB16A4CE for ; Thu, 17 Mar 2005 22:28:52 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id E309643D2F for ; Thu, 17 Mar 2005 22:28:51 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-b224.otenet.gr [212.205.244.232]) j2HMSJIA015014; Fri, 18 Mar 2005 00:28:19 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j2HMSgIY001667; Fri, 18 Mar 2005 00:28:42 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j2HMSgEj001666; Fri, 18 Mar 2005 00:28:42 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Fri, 18 Mar 2005 00:28:42 +0200 From: Giorgos Keramidas To: Roman Kurakin Message-ID: <20050317222842.GA1646@gothmog.gr> References: <4239B16E.8080502@cronyx.ru> <20050317211903.GA1188@gothmog.gr> <4239FBAD.1080504@cronyx.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4239FBAD.1080504@cronyx.ru> cc: freebsd-hackers@freebsd.org Subject: Re: style(9) example :-) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 22:28:53 -0000 On 2005-03-18 00:50, Roman Kurakin wrote: >Giorgos Keramidas: >>On 2005-03-17 19:33, Roman Kurakin wrote: >>>I was unable to refrain from posting this :-) >>> >>>int i;main(){for(;i["]>>o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} >> >>I've written stuff that's probably a bit harder to read, but in Perl :P >> >>% cat filter.pl >>#/usr/bin/perl >>while(){chomp;print(join('',(map{my($b,$j,$t,$o)=(65,128,90,ord($_));(( >>$o-$b)>=0&&($o-$b)<=($t-$b))?eval{$o=(($o-$b)+13)%26+$b;$j=11;}:eval{$b=97;$t= >>122;(($b>$o)||($t<$o))?eval{$j=10;}:eval{$o=(($o-$b)+13)%26+$b;$j=1431;};};$_= >>chr(int(int(($j%2)==(chr($o)==$_))?$o:ord($_)));}(split//,$_)))."\n");} >>% > > I saw smth like that, which run rm -rf /. I hope this one word greeting ;-) > Probably one such code could be added to fortunes. This one is a rot13 filter. But no need to run it. It's was fun writing, but very very useless. Other than as an example of how ugly Perl can be, I guess... From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 22:48:00 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EFAE16A4CE for ; Thu, 17 Mar 2005 22:48:00 +0000 (GMT) Received: from kuldipmanak.chamkila.org (node-40240ed2.sjc.onnet.us.uu.net [64.36.14.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id A46A443D1F for ; Thu, 17 Mar 2005 22:47:59 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from mail.chamkila.org (localhost.localdomain [127.0.0.1]) j2HMkYBg000962; Thu, 17 Mar 2005 14:46:34 -0800 Received: from 69.36.228.194 (proxying for 192.168.96.214) (SquirrelMail authenticated user aman); by mail.chamkila.org with HTTP; Thu, 17 Mar 2005 14:46:34 -0800 (PST) Message-ID: <51799.69.36.228.194.1111099594.squirrel@69.36.228.194> In-Reply-To: <53000.69.36.228.194.1111090664.squirrel@69.36.228.194> References: <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <32883.69.36.228.194.1110831839.squirrel@69.36.228.194> <20050314202905.GT91771@hub.freebsd.org> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> <20050314203715.GW91771@hub.freebsd.org> <56241.69.36.228.194.1110931336.squirrel@69.36.228.194> <42377D8A.1020905@rojer.pp.ru> <44838.69.36.228.194.1111007015.squirrel@69.36.228.194> <4238A103.5090805@rojer.pp.ru> <53113.69.36.228.194.1111009862.squirrel@69.36.228.194> <20050316221046.GA75292@unixpages.org> <53000.69.36.228.194.1111090664.squirrel@69.36.228.194> Date: Thu, 17 Mar 2005 14:46:34 -0800 (PST) From: "Amandeep Pannu" To: freebsd-hackers@freebsd.org Cc: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: Re: Freebsd 5.0 NICs issue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 22:48:00 -0000 Hi Guys, Anything on this. Any help would be great. Thanks A > Hi > > I have a machine running FreeBSD 5.0 , it is actually my Primary DNS > server. > it has two Nics. > em0 and em1 > Now the em0 nic is up with 205.229.165.4 netmask 255.255.255.0 > > When I try to do > ifconfig em1 inet 205.229.165.8 netmask 255.255.255.0 up > it say File exists. > then i read that the netmask should be 255.255.255.255 then i did that the > machine then is hooked wiht the ethernet cable in em1 and it starts puring > some > kernel:arp messages. > I have tried doing it from scratch removinf all entriedsfrom /etc/rc.conf > and then tried to manuall assign them IP. em0 goes well but again em1 say > file exists or those arp messages copme up. > > Any ideas what is going on. > > Thanks in advance > A > _______________________________________________ > 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" > -- Amandeep.S aman@chamkila.org http://aman.chamkila.org From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 00:16:28 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97E9E16A4CE for ; Fri, 18 Mar 2005 00:16:28 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B33643D39 for ; Fri, 18 Mar 2005 00:16:27 +0000 (GMT) (envelope-from max@love2party.net) Received: from pD9530E80.dip.t-dialin.net[217.83.14.128] (helo=donor.laier.local) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKwh2-1DC5A82zyG-00036f; Fri, 18 Mar 2005 01:16:24 +0100 From: Max Laier To: Aziz KEZZOU Date: Fri, 18 Mar 2005 01:16:01 +0100 User-Agent: KMail/1.7.2 References: <37e13166050317093477de8f7a@mail.gmail.com> <20050317181200.GK89312@funkthat.com> <37e1316605031711555c47c8ca@mail.gmail.com> In-Reply-To: <37e1316605031711555c47c8ca@mail.gmail.com> MIME-Version: 1.0 Message-Id: <200503180116.08265.max@love2party.net> Content-Type: multipart/signed; boundary="nextPart1247001.2QLradZ8p8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 cc: freebsd-hackers@freebsd.org Subject: Re: How to send a signal from inside the kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 00:16:28 -0000 --nextPart1247001.2QLradZ8p8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 17 March 2005 20:55, Aziz KEZZOU wrote: > Here are the headers needed in case someone reads this thread: > > #include /*needed only for NULL, can be removed*/ > #include > #include As a community service: Style(9) instructs to include either = OR=20 but not both. The latter includes which define= s=20 what you are already guessing. > #include > #include > #include =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 --nextPart1247001.2QLradZ8p8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCOh3IXyyEoT62BG0RAqYeAJ9AVCHrUrJtAqSOOySOde0I/oTk2wCffPrV J/T6Aw/TvZBqrzjRWmrpRUM= =BA89 -----END PGP SIGNATURE----- --nextPart1247001.2QLradZ8p8-- From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 01:36:16 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA4E616A4CE for ; Fri, 18 Mar 2005 01:36:16 +0000 (GMT) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 210D443D55 for ; Fri, 18 Mar 2005 01:36:15 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 25A2485664; Fri, 18 Mar 2005 12:06:12 +1030 (CST) Date: Fri, 18 Mar 2005 12:06:12 +1030 From: Greg 'groggy' Lehey To: Roman Kurakin Message-ID: <20050318013612.GO65340@wantadilla.lemis.com> References: <4239B16E.8080502@cronyx.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="N5iGxCIPT7YMRg16" Content-Disposition: inline In-Reply-To: <4239B16E.8080502@cronyx.ru> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-hackers@freebsd.org Subject: Re: style(9) example :-) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 01:36:17 -0000 --N5iGxCIPT7YMRg16 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thursday, 17 March 2005 at 19:33:50 +0300, Roman Kurakin wrote: > Hi, > > I was unable to refrain from posting this :-) > > int i;main(){for(;i["] o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} There used to be a whole culture of this sort of thing. My favourite one is an anagram generator: #include =20 long a [4],b[ 4],c[4] ,d[0400],e=3D1; typedef struct f{long g ,h,i[4] ,j;struct f*k;}f;f g,* l[4096 ]; char h[256],*m,k=3D3; long n (o, p,q)long*o,*p,*q;{ long r =3D4,s,i=3D0;for(;r--;s=3Di^ *o^*p, i=3Di&*p|(i|*p)&~*o++,*q ++=3Ds,p ++);return i;}t(i,p)long*p ;{*c=3Dd [i],n(a,c,b),n(p,b,p);}u(j)f*j;{j->h =3D(j->g =3Dj->i[0]|j->i[1]|j->i[2]|j->i[3])&4095;}v( j,s)f* j; {int i; for(j->k->k&&v(j->k, ' '),fseek( stdin, j->j, 0);i=3Dgetchar(),putchar(i-'\n'?i:s),i- '\n';);}w(o,r,j,x,p)f*o,*j;long p;{f q;int=20 s,i=3Do->h;q.k=3Do;r>i?j=3Dl[r=3Di]:r>1, s|=3Ds >>2,s|=3Ds>>4,s |=3Ds>>8 ,j=3Dl[r =3D((r&i |s)&~(s>>1))-1&i]):0;--x;for (;x&&!(p&i);p>>=3D1);for(;!x&&j;n(o->i,j->i,q. i),u(&q),q.g||(q.j=3Dj->j,v(&q,'\n')),j=3Dj->k);for(;x;j=3Dx ?j->k:0){for(;!j&&((r=3D(r&i)-1&i)-i&&(r&p)?2:(x=3D0));j=3Dl[r]);! x||(j->g&~o->g)||n (o->i,j->i,q.i)||( u(&q), q.j=3Dj ->j,q.g?w(&q ,r,j->k,x ,p):v(&q, '\n')); }}y(){f j;char *z,*p; for(;m ? j.j=3D ftell( stdin) ,7,(m=3D gets(m ))||w( &g,315 *13,l[ 4095] ,k,64* 64)&0: 0;n(g .i,j.i, b)||(u (&j),j. k=3Dl[j.h],l[j.h]=3D &j,y())){for(z=3D p=3Dh;*z&&( d[*z++]||(p=3D0)););for(z=3Dp?n(j.i ,j.i,j.i)+h:""; *z;t(*z++,j.i));}}main(o,p)char** p; {for(;m =3D *++p;)for(;*m- '-'?*m:(k=3D -atoi(m))&0;d[*m]||(d[*m ]=3De,e<<=3D1),t(*m++,g.i)); u(& g),m=3Dh ,y();} To run it, you need a dictionary such as /usr/share/dict/web2. For example: gson free software foundation < /usr/share/dict/web2 gson obfuscated c contest < /usr/share/dict/web2 gson unix international < /usr/share/dict/web2 gson george bush < /usr/share/dict/web2 gson bill clinton < /usr/share/dict/web2 gson ross perot < /usr/share/dict/web2 gson paul e tsongas < /usr/share/dict/web2 Greg -- See complete headers for address and phone numbers. --N5iGxCIPT7YMRg16 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCOjCMIubykFB6QiMRAi/ZAKChSm/I6J9YhnpRZuwNNFiV3gxndwCfeL2Z GvdncGA/yLcgizj7XVXNIzI= =gfd7 -----END PGP SIGNATURE----- --N5iGxCIPT7YMRg16-- From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 01:39:42 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1045716A4CE for ; Fri, 18 Mar 2005 01:39:42 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F85543D2D for ; Fri, 18 Mar 2005 01:39:41 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so734268rnf for ; Thu, 17 Mar 2005 17:39:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=WvlrPZGBnGjeExWMjwDAsRbLfPmva4mOsHKYRezj5d0/5u6P/EIpuuuUfSyIwpDcZuuVE0Gi2WSXVBs+Uz+OBLc+SEvblUqW9vpjiQI1mhY3+dc6N8+7Fcn02exXepeO03FKomjvbwT1JNzSGqDW0B8vpwyXeG/WUF2XUn2TOIQ= Received: by 10.38.75.78 with SMTP id x78mr2288646rna; Thu, 17 Mar 2005 17:39:41 -0800 (PST) Received: by 10.38.209.22 with HTTP; Thu, 17 Mar 2005 17:39:40 -0800 (PST) Message-ID: <84dead720503171739aa1ad0e@mail.gmail.com> Date: Fri, 18 Mar 2005 01:39:40 +0000 From: Joseph Koshy To: Aziz KEZZOU In-Reply-To: <37e1316605031711555c47c8ca@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <37e13166050317093477de8f7a@mail.gmail.com> <20050317181200.GK89312@funkthat.com> <37e1316605031711555c47c8ca@mail.gmail.com> cc: freebsd-hackers@freebsd.org cc: John-Mark Gurney Subject: Re: How to send a signal from inside the kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joseph Koshy List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 01:39:42 -0000 > Here are the headers needed in case someone reads this thread: > > #include /*needed only for NULL, can be removed*/ > #include > #include > #include > #include > #include According to the manual page for psignal(9) in -current, you only need and . You need to hold the PROC lock for the target process before invoking psignal(). -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 01:56:26 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BC4016A4CE for ; Fri, 18 Mar 2005 01:56:26 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61B5043D2F for ; Fri, 18 Mar 2005 01:56:25 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id a36so725154rnf for ; Thu, 17 Mar 2005 17:56:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=UegTs9yOaw0EQ6rWbZNBZOAdydWP87vMRIREjOPEskUKY3W8lFTauJuAir4rD2MUyANBfxuA9Kn7dcEKpSVaKC94IWCF9vhmN4kawxemB/oH8lJcWCk6mBmka/G+SCSBN8q5kQvSR6M3YfTZfRF1+kZ8Bd7Qs5S4tlRoIG2a2Go= Received: by 10.38.66.45 with SMTP id o45mr2303756rna; Thu, 17 Mar 2005 17:56:24 -0800 (PST) Received: by 10.38.209.22 with HTTP; Thu, 17 Mar 2005 17:56:24 -0800 (PST) Message-ID: <84dead720503171756d17a83f@mail.gmail.com> Date: Fri, 18 Mar 2005 01:56:24 +0000 From: Joseph Koshy To: Amandeep Pannu In-Reply-To: <53000.69.36.228.194.1111090664.squirrel@69.36.228.194> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <34997.69.36.228.194.1110832499.squirrel@69.36.228.194> <20050314203715.GW91771@hub.freebsd.org> <56241.69.36.228.194.1110931336.squirrel@69.36.228.194> <42377D8A.1020905@rojer.pp.ru> <44838.69.36.228.194.1111007015.squirrel@69.36.228.194> <4238A103.5090805@rojer.pp.ru> <53113.69.36.228.194.1111009862.squirrel@69.36.228.194> <20050316221046.GA75292@unixpages.org> <53000.69.36.228.194.1111090664.squirrel@69.36.228.194> cc: freebsd-hackers@freebsd.org Subject: Re: Freebsd 5.0 NICs issue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joseph Koshy List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 01:56:26 -0000 > ifconfig em1 inet 205.229.165.8 netmask 255.255.255.0 up ifconfig em1 alias ALIAS-ADDRESSS netmask NETMASK -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 05:53:54 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DCA116A4CE for ; Fri, 18 Mar 2005 05:53:54 +0000 (GMT) Received: from VARK.MIT.EDU (VARK.MIT.EDU [18.95.3.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1891C43D39 for ; Fri, 18 Mar 2005 05:53:54 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.MIT.EDU (localhost [127.0.0.1]) by VARK.MIT.EDU (8.13.3/8.13.1) with ESMTP id j2I5rlcD040826; Fri, 18 Mar 2005 00:53:47 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.MIT.EDU (8.13.3/8.13.1/Submit) id j2I5rlIh040825; Fri, 18 Mar 2005 00:53:47 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Fri, 18 Mar 2005 00:53:47 -0500 From: David Schultz To: Ted Unangst Message-ID: <20050318055347.GA40787@VARK.MIT.EDU> Mail-Followup-To: Ted Unangst , hackers@FreeBSD.ORG References: <42360141.3080104@coverity.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42360141.3080104@coverity.com> cc: hackers@FreeBSD.ORG Subject: Re: some bugs in the kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 05:53:54 -0000 On Mon, Mar 14, 2005, Ted Unangst wrote: > These bugs were found using the Coverity Prevent static analysis tool. [...] Thanks for reporting these! It's great that your tools have been finding all these obscure bugs before users do. All of these should be fixed now, except for the if_ti bug, which I've forwarded to wpaul@. pjd 2005-03-16 20:48:13 UTC FreeBSD src repository Modified files: sys/geom geom_bsd.c Log: Plug memory leak. Submitted by: Ted Unangst Found by: Coverity Prevent analysis tool Approved by: phk MFC after: 3 days Revision Changes Path 1.73 +1 -2 src/sys/geom/geom_bsd.c das 2005-03-18 05:43:34 UTC FreeBSD src repository Modified files: sys/dev/hptmv gui_lib.c Log: Don't read past the end of pVDevice[]. (Previously, we would iterate twice as many times as there were entries in the array.) Spotted by: Ted Unangst using the Coverity Prevent static analysis tool Reviewed by: scottl Revision Changes Path 1.4 +1 -1 src/sys/dev/hptmv/gui_lib.c das 2005-03-18 05:43:31 UTC FreeBSD src repository Modified files: sys/dev/hptmv entry.c Log: Don't write past the end of the VendorId field (and into the ProductId field). Spotted by: Ted Unangst using the Coverity Prevent static analysis tool Reviewed by: scottl Revision Changes Path 1.7 +1 -1 src/sys/dev/hptmv/entry.c imp 2005-03-15 22:53:31 UTC FreeBSD src repository Modified files: sys/dev/pci pci.c Log: If bus_generic_susped returns an error, devlist is not freed. Free it. Submitted by: Ted Unangst (using the Coverity Prevent analysis tool) Revision Changes Path 1.281 +3 -1 src/sys/dev/pci/pci.c das 2005-03-18 05:43:37 UTC FreeBSD src repository Modified files: sys/dev/mlx mlx_pci.c Log: If mlx_attach() returns an error, don't free sc again. Spotted by: Ted Unangst using the Coverity Prevent static analysis tool Reviewed by: scottl Revision Changes Path 1.21 +1 -3 src/sys/dev/mlx/mlx_pci.c From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 06:17:41 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F90E16A4CE for ; Fri, 18 Mar 2005 06:17:41 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6801943D2F for ; Fri, 18 Mar 2005 06:17:40 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j2I6HQ8K046155; Fri, 18 Mar 2005 16:47:27 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 18 Mar 2005 16:47:26 +1030 User-Agent: KMail/1.7.92 References: <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <20050316221046.GA75292@unixpages.org> <53000.69.36.228.194.1111090664.squirrel@69.36.228.194> In-Reply-To: <53000.69.36.228.194.1111090664.squirrel@69.36.228.194> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart10194845.Q7myBI6W7A"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503181647.26346.doconnor@gsoft.com.au> X-Spam-Score: -5.7 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Amandeep Pannu Subject: Re: Freebsd 5.0 NICs issue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 06:17:41 -0000 --nextPart10194845.Q7myBI6W7A Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 18 Mar 2005 06:47, Amandeep Pannu wrote: > Now the em0 nic is up with 205.229.165.4 netmask 255.255.255.0 > ifconfig em1 inet 205.229.165.8 netmask 255.255.255.0 up You can't have 2 NIC's on the same subnet (you can't have 2 IPs on any NIC = in=20 the same subnet). Why do you want to do this? If you want an alias you only need 1 NIC and yo= u=20 do.. ifconfig em0 inet 205.229.165.4 netmask 255.255.255.0 ifconfig em0 alias inet 205.229.165.8 netmask 255.255.255.255 What is the second NIC going to be used for? =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart10194845.Q7myBI6W7A Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCOnJ25ZPcIHs/zowRAmQBAJ9n4O9dEGmC7cpCrBspYSsyh9KwjwCcCAiR hqLoukGxauz5IwgdozHWIqo= =dd+H -----END PGP SIGNATURE----- --nextPart10194845.Q7myBI6W7A-- From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 09:15:45 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E36C616A4CE; Fri, 18 Mar 2005 09:15:45 +0000 (GMT) Received: from mindfields.energyhq.es.eu.org (73.Red-213-97-200.pooles.rima-tde.net [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2879843D41; Fri, 18 Mar 2005 09:15:36 +0000 (GMT) (envelope-from flynn@energyhq.es.eu.org) Received: from scienide.energyhq.es.eu.org (scienide.energyhq.es.eu.org [IPv6:2001:470:1f01:198:210:4bff:fe3d:e256]) by mindfields.energyhq.es.eu.org (Postfix) with SMTP id 7279D35811; Fri, 18 Mar 2005 10:15:34 +0100 (CET) Date: Fri, 18 Mar 2005 10:15:31 +0100 From: Miguel Mendez To: Greg 'groggy' Lehey Message-Id: <20050318101531.7172ef9f.flynn@energyhq.es.eu.org> In-Reply-To: <20050318013612.GO65340@wantadilla.lemis.com> References: <4239B16E.8080502@cronyx.ru> <20050318013612.GO65340@wantadilla.lemis.com> X-Mailer: Sylpheed version 1.9.5 (GTK+ 2.6.4; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__18_Mar_2005_10_15_31_+0100_AQ.3N_h1L_I4UGjE" cc: freebsd-hackers@freebsd.org cc: rik@cronyx.ru Subject: Re: style(9) example :-) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 09:15:46 -0000 --Signature=_Fri__18_Mar_2005_10_15_31_+0100_AQ.3N_h1L_I4UGjE Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 18 Mar 2005 12:06:12 +1030 Greg 'groggy' Lehey wrote: > On Thursday, 17 March 2005 at 19:33:50 +0300, Roman Kurakin wrote: > > Hi, > > > > I was unable to refrain from posting this :-) > > > > int i;main(){for(;i["] > o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} >=20 > There used to be a whole culture of this sort of thing. My favourite > one is an anagram generator: The IOCCC (http://www.ioccc.org/) is still alive. Some of the 2004 winners are quite impressive. I tend to prefer obfuscated C over perl, although you can easily make perl look like line noise :) Cheers, --=20 Miguel Mendez http://www.energyhq.es.eu.org PGP Key: 0xDC8514F1 --Signature=_Fri__18_Mar_2005_10_15_31_+0100_AQ.3N_h1L_I4UGjE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCOpw2nLctrNyFFPERAgFIAJ9G5fnf82zGZ+fPfmcb8bO4n4qciACcCQfR pAH0necyTcfxY8V3Vbx/WiM= =kRKI -----END PGP SIGNATURE----- --Signature=_Fri__18_Mar_2005_10_15_31_+0100_AQ.3N_h1L_I4UGjE-- From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 14:25:16 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6179D16A4CE for ; Fri, 18 Mar 2005 14:25:16 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27B7A43D1F for ; Fri, 18 Mar 2005 14:25:16 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with SMTP id D1B7B46B06; Fri, 18 Mar 2005 09:25:15 -0500 (EST) Date: Fri, 18 Mar 2005 14:22:33 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: John-Mark Gurney In-Reply-To: <20050317181200.GK89312@funkthat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Aziz KEZZOU cc: freebsd-hackers@freebsd.org Subject: Re: How to send a signal from inside the kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 14:25:16 -0000 On Thu, 17 Mar 2005, John-Mark Gurney wrote: > > but that causes a page fault in kernel mode (ie. Kernel panic :-) > > > > Any help is appreciated, thanks. > > Take a look at psignal(9)... You'll need to look up the struct proc for > psignal with pfind(9)... and then PROC_UNLOCK the struct proc after > you've used psignal... Depending on the circumstances, it may also be appropriate to add an access control check in the form: error = p_cansignal(td, p); if (error) { PROC_UNLOCK(p); return (error); } Where 'td' is the requesting thread, and 'p' is the target process. Robert N M Watson > > so: > struct proc *p; > > p = pfind(pid); > if (p != NULL) { > psignal(p, SIGUSR1); > PROC_UNLOCK(p); > } > > I haven't tried the code above, but that should do what you want... > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > _______________________________________________ > 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 Thu Mar 17 15:53:21 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6BCB16A4CE; Thu, 17 Mar 2005 15:53:21 +0000 (GMT) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34B1943D58; Thu, 17 Mar 2005 15:53:21 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from tedwin2k (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) j2HFrQb05336; Thu, 17 Mar 2005 07:53:26 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Pietro Cerutti" , "FreeBSD" , Date: Thu, 17 Mar 2005 07:53:16 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 In-Reply-To: Importance: Normal X-Mailman-Approved-At: Fri, 18 Mar 2005 14:43:05 +0000 Subject: RE: problem due to hostname change X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 15:53:21 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Pietro Cerutti > Sent: Thursday, March 17, 2005 7:42 AM > To: FreeBSD; freebsd-hackers@freebsd.org > Subject: Re: problem due to hostname change > > > > Well I double check once more on my system! > Unless your system is the dns server you need to do as I suggested and fix the DNS!! Ted From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 15:15:04 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8603E16A4CE for ; Thu, 17 Mar 2005 15:15:04 +0000 (GMT) Received: from Neo-Vortex.net (203-217-87-46.dyn.iinet.net.au [203.217.87.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2E2443D31 for ; Thu, 17 Mar 2005 15:15:00 +0000 (GMT) (envelope-from root@Neo-Vortex.net) Received: from localhost.Neo-Vortex.got-root.cc (Neo-Vortex@localhost.Neo-Vortex.got-root.cc [127.0.0.1]) by Neo-Vortex.net (8.13.1/8.12.10) with ESMTP id j2HFEwGV080967; Fri, 18 Mar 2005 01:14:58 +1000 (EST) (envelope-from root@Neo-Vortex.net) Date: Fri, 18 Mar 2005 01:14:58 +1000 (EST) From: Neo-Vortex To: Pietro Cerutti In-Reply-To: Message-ID: <20050318011250.C80938@Neo-Vortex.net> References: <44oedixquh.fsf@be-well.ilk.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Fri, 18 Mar 2005 14:43:38 +0000 cc: freebsd-hackers@freebsd.org Subject: Re: Fwd: problem due to hostname change X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 15:15:04 -0000 On Thu, 17 Mar 2005, Pietro Cerutti wrote: > Hi Hackers, > I posted this on freebsd-questions, but couldn't find a solution... > > Maybe here.... > > Thank you! > > > Please: don't Cc me, I'm on the list! > > > ---------- Forwarded message ---------- > From: Pietro Cerutti > Date: Thu, 17 Mar 2005 15:04:45 +0000 > Subject: Re: problem due to hostname change > To: Lowell Gilbert > Cc: FreeBSD > > > On 17 Mar 2005 09:57:26 -0500, Lowell Gilbert > wrote: > > Pietro Cerutti writes: > > > > > Hi list, > > > my computer is not part of a domain, and so I had set my hostname to > > > . > > > Now I changed it in rc.conf to : > > > > > > ~> cat /etc/rc.conf | grep hostname > > > hostname="" > > > ~> > > > > > > I rebooted, but my pc is still somewhere configured to be called . > > > First of all, when the pc boots, I see this in dmesg: > > > > > > FreeBSD 5.4-PRERELEASE #10: Wed Mar 9 15:40:46 UTC 2005 > > > @:/usr/obj/usr/src/sys/GAHR > > > > That's not a problem; all it means is that's who built the kernel. It > > doesn't get used for *anything* other than printing that message. > > > > > Then, when I try to start apache, I see this in my > > > /var/log/httpd-error.log, and apache won't start: > > > > > > [Thu Mar 17 13:29:11 2005] [alert] mod_unique_id: unable to > > > gethostbyname("") grep -ir "" /etc /usr/local/etc (mabe even for /var/named too...) that might shed some light as to where its coming from... as for the bootup the user@oldhostname is just that you compiled the kernel as that, it affects nothing > > You must have put the old hostname into Apache's configuration > > explicitly. You will need to change it by hand. The configuration > > file is (by default, as installed from the port) > > /usr/local/etc/apache/httpd.conf. > > No, this is not the problem. I searched in httpd.conf but I didn't > find anything concerning my . > > I even deinstalled & deleted the configuration files & reinstalled apache. > > Don't forget this: > FreeBSD 5.4-PRERELEASE #10: Wed Mar 9 15:40:46 UTC 2005 > @:/usr/obj/usr/src/sys/GAHR > > Here I have my too. > > > > > > > > > My question is: how can I change my hostname to safely, > > > in a way that the is not used anymore in any part of > > > the OS? > > > > Changing rc.conf is enough for anything that was configured > > automatically. > > It should be so, but it actually isn't. > > If you changed some other configuration by hand, you > > will need to change it again by hand. Note that if you had not added > > your hostname to httpd.conf, Apache would have used the system > > hostname by default (I believe; I haven't actually checked this > > recently). > > I'm sure I didn't set my anywhere else than in rc.conf > > > > > Be well. > > > > However, thank you for your advice, but it didn't solve my problem... > > > -- > Pietro Cerutti > > > > Beansidhe - SwiSS Death / Thrash Metal > > > Windows: "Where do you want to go today?" > Linux: "Where do you want to go tomorrow?" > FreeBSD: "Are you guys coming or what?" > > > -- > Pietro Cerutti > > > > Beansidhe - SwiSS Death / Thrash Metal > > > Windows: "Where do you want to go today?" > Linux: "Where do you want to go tomorrow?" > FreeBSD: "Are you guys coming or what?" > _______________________________________________ > 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 Fri Mar 18 16:06:33 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B15C16A4CE for ; Fri, 18 Mar 2005 16:06:33 +0000 (GMT) Received: from smp500.sitetronics.com (sitetronics.com [82.192.77.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21E9C43D46 for ; Fri, 18 Mar 2005 16:06:33 +0000 (GMT) (envelope-from dodell@offmyserver.com) Received: from localhost.sitetronics.com ([127.0.0.1] helo=smp500.sitetronics.com) by smp500.sitetronics.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50 (FreeBSD)) id 1DCJya-000IwU-V1 for hackers@freebsd.org; Fri, 18 Mar 2005 17:05:29 +0100 Received: (from dodell@localhost) by smp500.sitetronics.com (8.12.11/8.12.11/Submit) id j2IG5SDX072817 for hackers@freebsd.org; Fri, 18 Mar 2005 17:05:28 +0100 (CET) (envelope-from dodell@offmyserver.com) X-Authentication-Warning: smp500.sitetronics.com: dodell set sender to dodell@offmyserver.com using -f Date: Fri, 18 Mar 2005 17:05:28 +0100 From: "Devon H. O'Dell " To: hackers@freebsd.org Message-ID: <20050318160528.GQ51688@smp500.sitetronics.com> Mail-Followup-To: hackers@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdEQJo40s7ofW8iR" Content-Disposition: inline User-Agent: Mutt/1.5.8i Subject: Ziatech 5503 watchdog driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 16:06:33 -0000 --sdEQJo40s7ofW8iR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey, I'm busy writing a Ziatech 5503 watchdog driver for FreeBSD (and porting all the watchdog stuff to DragonFly BSD) and Plan 9. For my driver, I have no way to identify that the system has the driver, so I wanted to make it conditional on options ZT5503 existing in the kernel configuration file. I have a couple of related questions: 1) Where in the tree should my zt5503wd.c file be placed? 2) Regarding watchdog.h; this device supports other times than those provided from between 250MS to 256S. Hope nobody minds this changing :). 3) To make sure I understand how this works: o The device is compiled in / loaded o watchdogd is used to tell the system to start the timer o I get a bunch of flags in my eventhandler function's 2nd argument that I can then use to write to my device's registers with the proper information The first and third questions are the most important, I think. --Devon --sdEQJo40s7ofW8iR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCOvxISkf3jVXOdl0RAhJgAJ9jfPZWGFcjRqKQIY2ISi2Wh+Q/OwCgoFGm XwP5SC5Wix/51xnOsW51qxk= =0b+w -----END PGP SIGNATURE----- --sdEQJo40s7ofW8iR-- From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 16:31:42 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D13F316A4F2 for ; Fri, 18 Mar 2005 16:31:40 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A9EE43D62 for ; Fri, 18 Mar 2005 16:31:40 +0000 (GMT) (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 1DCKNv-0007CL-BK for hackers@freebsd.org; Fri, 18 Mar 2005 18:31:39 +0200 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 18 Mar 2005 18:31:39 +0200 From: Danny Braniss Message-ID: Subject: X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 16:31:42 -0000 im writing an iSCSI initiator, which is 'almost' beta, but now im getting into trouble. to exercise the system im doing: cd / rsh some-host -n dump 0f - /somefilesystem | restore rf - this o- works fine with no tags on UP/SMP hosts o- works fine with tags and UP o- gets stuck with tags and SMP the restore is usualy waiting on biord. so my guess is some timing problem, or some resource stagnation, but can't see anything suspicious. the system is responsive, for a while then it gets stuck solid in nfs not respondig ... the system is diskless :-) so any ideas on how to back track this problem? the system is running 5.4-PRERELEASE, but was showing the same with 5.3 the network nic is Intel(R) PRO/1000 Network Connection, Version - 1.7.35 and the cpu is a dual Intel(R) Xeon(TM) CPU 3.06GHz thanks, danny From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 17:36:06 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CDF916A4CE for ; Fri, 18 Mar 2005 17:36:06 +0000 (GMT) Received: from kuldipmanak.chamkila.org (node-40240ed2.sjc.onnet.us.uu.net [64.36.14.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2527143D4C for ; Fri, 18 Mar 2005 17:36:06 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from mail.chamkila.org (localhost.localdomain [127.0.0.1]) j2IHYPBg025615; Fri, 18 Mar 2005 09:34:27 -0800 Received: from 69.36.228.194 (proxying for 192.168.96.214) (SquirrelMail authenticated user aman); by mail.chamkila.org with HTTP; Fri, 18 Mar 2005 09:34:27 -0800 (PST) Message-ID: <41763.69.36.228.194.1111167267.squirrel@69.36.228.194> In-Reply-To: <200503181647.26346.doconnor@gsoft.com.au> References: <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <20050316221046.GA75292@unixpages.org> <53000.69.36.228.194.1111090664.squirrel@69.36.228.194> <200503181647.26346.doconnor@gsoft.com.au> Date: Fri, 18 Mar 2005 09:34:27 -0800 (PST) From: "Amandeep Pannu" To: "Daniel O'Connor" User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-hackers@freebsd.org cc: Amandeep Pannu Subject: Re: Freebsd 5.0 NICs issue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 17:36:06 -0000 Hi daniel, Josseph in this mailing list responded that I can do ifconfig em1 alias inet 205.229.165.8 netmask 255.255.255.255 Can I? I need the other NIC for some internal operations. > On Fri, 18 Mar 2005 06:47, Amandeep Pannu wrote: >> Now the em0 nic is up with 205.229.165.4 netmask 255.255.255.0 >> ifconfig em1 inet 205.229.165.8 netmask 255.255.255.0 up > > You can't have 2 NIC's on the same subnet (you can't have 2 IPs on any NIC > in > the same subnet). > > Why do you want to do this? If you want an alias you only need 1 NIC and > you > do.. > > ifconfig em0 inet 205.229.165.4 netmask 255.255.255.0 > ifconfig em0 alias inet 205.229.165.8 netmask 255.255.255.255 > > What is the second NIC going to be used for? > > -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > -- Amandeep.S aman@chamkila.org http://aman.chamkila.org From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 22:14:26 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A5DF16A4CE for ; Fri, 18 Mar 2005 22:14:26 +0000 (GMT) Received: from mail.mundomateo.com (static-24-56-193-117.chrlmi.cablespeed.com [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C310E43D2F for ; Fri, 18 Mar 2005 22:14:25 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from [10.0.81.14] (ws14.mundomateo.com [10.0.81.14]) by mail.mundomateo.com (Postfix) with ESMTP id 6828760A7 for ; Fri, 18 Mar 2005 17:14:22 -0500 (EST) Message-ID: <423B52BA.6000605@digitalstratum.com> Date: Fri, 18 Mar 2005 17:14:18 -0500 From: Matthew Hagerty Organization: Digital Stratum User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Best way to force a process preempt (for troubleshooting) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: matthew@digitalstratum.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 22:14:26 -0000 Greetings, I'm trying to test for the possibility of interleaved data when two more more processes are writing to a pipe and more than PIPE_BUF bytes need to be written. How can I make a situation where this scenario can be caused reliably so I can make my test case, then apply my patch and make sure the changes worked? Additionally, in one case the processes are created from fork() and in another case they are threads (not sure if this makes any difference to the scheduler.) Any insight would be greatly appreciated. Thank you, Matthew From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 22:57:29 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7FB816A4CE for ; Fri, 18 Mar 2005 22:57:29 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 367D543D1F for ; Fri, 18 Mar 2005 22:57:29 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j2IMtrpt068544; Fri, 18 Mar 2005 15:55:54 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 18 Mar 2005 15:55:53 -0700 (MST) Message-Id: <20050318.155553.41699848.imp@bsdimp.com> To: dodell@offmyserver.com From: Warner Losh In-Reply-To: <20050318160528.GQ51688@smp500.sitetronics.com> References: <20050318160528.GQ51688@smp500.sitetronics.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: Ziatech 5503 watchdog driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 22:57:29 -0000 > I'm busy writing a Ziatech 5503 watchdog driver for FreeBSD (and > porting all the watchdog stuff to DragonFly BSD) and Plan 9. For my > driver, I have no way to identify that the system has the driver, so > I wanted to make it conditional on > > options ZT5503 That's not a good enough reason to make it an option, it should really be a device. Users that want it can add it to their kernel config. In fact, they'd have to add it either way, so why make it weird for them. Put this device on the ISA bus, give it an identify routine that always adds it (this isn't GENERIC safe, but since there's no way to know the device is there, you are stuck with that). > existing in the kernel configuration file. I have a couple of > related questions: > > 1) Where in the tree should my zt5503wd.c file be placed? usually these thigns go in dev/foo/foo.c. However FreeBSD and DragonFly have differeing layouts. FreeBSD has a modules subtree to build modules, while DF has it in the dev tree. The dev tree is also partitioned so it would be in dev/misc/foo/foo.c. > 2) Regarding watchdog.h; this device supports other times than those > provided from between 250MS to 256S. Hope nobody minds this changing > :). Nope. :-) > 3) To make sure I understand how this works: > o The device is compiled in / loaded You'll need to make it a real device if you want loading to work. The alternative is to make it a pseudo-device, but that's more hassle than it is worth since you need to access resources. An option definitely won't work. > o watchdogd is used to tell the system to start the timer > o I get a bunch of flags in my eventhandler function's 2nd > argument that I can then use to write to my device's > registers with the proper information These don't look like questions... Warner From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 00:41:47 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF6B516A4CE for ; Sat, 19 Mar 2005 00:41:47 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A291A43D41 for ; Sat, 19 Mar 2005 00:41:46 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j2J0fa57074194; Sat, 19 Mar 2005 11:11:37 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "Amandeep Pannu" Date: Sat, 19 Mar 2005 11:11:19 +1030 User-Agent: KMail/1.7.92 References: <44497.69.36.228.194.1110474073.squirrel@69.36.228.194> <200503181647.26346.doconnor@gsoft.com.au> <41763.69.36.228.194.1111167267.squirrel@69.36.228.194> In-Reply-To: <41763.69.36.228.194.1111167267.squirrel@69.36.228.194> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1776094.bU1MFIGdQr"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503191111.27191.doconnor@gsoft.com.au> X-Spam-Score: -5.7 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: freebsd-hackers@freebsd.org Subject: Re: Freebsd 5.0 NICs issue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 00:41:47 -0000 --nextPart1776094.bU1MFIGdQr Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sat, 19 Mar 2005 04:04, Amandeep Pannu wrote: > ifconfig em1 alias inet 205.229.165.8 netmask 255.255.255.255 > > Can I? Not sure, I would expect you'd get complaints from ARP because both NIC's a= re=20 on the same segment. > I need the other NIC for some internal operations. Errm.. Why do they need to be on the same subnet? Are they connected to the= =20 same ethernet segment? Are you trying to do bridging? ie more details please :) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1776094.bU1MFIGdQr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD4DBQBCO3U35ZPcIHs/zowRArapAJi/IUrJ380O0rLnQ0Od5beSIAsKAJ9TZjDa pfhI/Wf8eiqCweuAzqWT3g== =hMS4 -----END PGP SIGNATURE----- --nextPart1776094.bU1MFIGdQr-- From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 02:19:32 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77F1316A4CE; Sat, 19 Mar 2005 02:19:32 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 692AE43D5F; Sat, 19 Mar 2005 02:19:31 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j2J2JEJg075125; Sat, 19 Mar 2005 12:49:15 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Sat, 19 Mar 2005 12:49:03 +1030 User-Agent: KMail/1.7.92 References: <20050318160528.GQ51688@smp500.sitetronics.com> <20050318.155553.41699848.imp@bsdimp.com> In-Reply-To: <20050318.155553.41699848.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart185200817.2foXXOFxe3"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503191249.10188.doconnor@gsoft.com.au> X-Spam-Score: -5.1 () IN_REP_TO,MIME_LONG_LINE_QP,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: hackers@freebsd.org cc: dodell@offmyserver.com Subject: Re: Ziatech 5503 watchdog driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 02:19:32 -0000 --nextPart185200817.2foXXOFxe3 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sat, 19 Mar 2005 09:25, Warner Losh wrote: > That's not a good enough reason to make it an option, it should really > be a device. Users that want it can add it to their kernel config. > In fact, they'd have to add it either way, so why make it weird for > them. > > Put this device on the ISA bus, give it an identify routine that > always adds it (this isn't GENERIC safe, but since there's no way to > know the device is there, you are stuck with that). A good example of this (which I shamelessly stole for work :) is in if_ep=20 (although you only need the stuff from "child =3D .." to "bus_set_resource.= =2E"). =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart185200817.2foXXOFxe3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD4DBQBCO4we5ZPcIHs/zowRAuLPAJ9tXdw4FRzEJLPAJ7vao9iMfnC2bACYgf5m SemDAFyZ5nlAOOX73SG1Kg== =iLxR -----END PGP SIGNATURE----- --nextPart185200817.2foXXOFxe3-- From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 02:19:32 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77F1316A4CE; Sat, 19 Mar 2005 02:19:32 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 692AE43D5F; Sat, 19 Mar 2005 02:19:31 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j2J2JEJg075125; Sat, 19 Mar 2005 12:49:15 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Sat, 19 Mar 2005 12:49:03 +1030 User-Agent: KMail/1.7.92 References: <20050318160528.GQ51688@smp500.sitetronics.com> <20050318.155553.41699848.imp@bsdimp.com> In-Reply-To: <20050318.155553.41699848.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart185200817.2foXXOFxe3"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503191249.10188.doconnor@gsoft.com.au> X-Spam-Score: -5.1 () IN_REP_TO,MIME_LONG_LINE_QP,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: hackers@freebsd.org cc: dodell@offmyserver.com Subject: Re: Ziatech 5503 watchdog driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 02:19:32 -0000 --nextPart185200817.2foXXOFxe3 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sat, 19 Mar 2005 09:25, Warner Losh wrote: > That's not a good enough reason to make it an option, it should really > be a device. Users that want it can add it to their kernel config. > In fact, they'd have to add it either way, so why make it weird for > them. > > Put this device on the ISA bus, give it an identify routine that > always adds it (this isn't GENERIC safe, but since there's no way to > know the device is there, you are stuck with that). A good example of this (which I shamelessly stole for work :) is in if_ep=20 (although you only need the stuff from "child =3D .." to "bus_set_resource.= =2E"). =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart185200817.2foXXOFxe3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD4DBQBCO4we5ZPcIHs/zowRAuLPAJ9tXdw4FRzEJLPAJ7vao9iMfnC2bACYgf5m SemDAFyZ5nlAOOX73SG1Kg== =iLxR -----END PGP SIGNATURE----- --nextPart185200817.2foXXOFxe3-- From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 08:03:23 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C23416A4CE for ; Sat, 19 Mar 2005 08:03:23 +0000 (GMT) Received: from smp500.sitetronics.com (sitetronics.com [82.192.77.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id A18FB43D48 for ; Sat, 19 Mar 2005 08:03:22 +0000 (GMT) (envelope-from dodell@offmyserver.com) Received: from localhost.sitetronics.com ([127.0.0.1] helo=smp500.sitetronics.com) by smp500.sitetronics.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50 (FreeBSD)) id 1DCYuW-000M1Y-9R for freebsd-hackers@freebsd.org; Sat, 19 Mar 2005 09:02:16 +0100 Received: (from dodell@localhost) by smp500.sitetronics.com (8.12.11/8.12.11/Submit) id j2J82FXv084663 for freebsd-hackers@freebsd.org; Sat, 19 Mar 2005 09:02:15 +0100 (CET) (envelope-from dodell@offmyserver.com) X-Authentication-Warning: smp500.sitetronics.com: dodell set sender to dodell@offmyserver.com using -f Date: Sat, 19 Mar 2005 09:02:15 +0100 From: "Devon H. O'Dell " To: freebsd-hackers@freebsd.org Message-ID: <20050319080215.GX51688@smp500.sitetronics.com> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20050318160528.GQ51688@smp500.sitetronics.com> <20050318.155553.41699848.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="//h4sZKAxcnndsN6" Content-Disposition: inline In-Reply-To: <20050318.155553.41699848.imp@bsdimp.com> User-Agent: Mutt/1.5.8i Subject: Re: Ziatech 5503 watchdog driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 08:03:23 -0000 --//h4sZKAxcnndsN6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 18, 2005 at 03:55:53PM -0700, Warner Losh wrote: > > I'm busy writing a Ziatech 5503 watchdog driver for FreeBSD (and > > porting all the watchdog stuff to DragonFly BSD) and Plan 9. For my > > driver, I have no way to identify that the system has the driver, so > > I wanted to make it conditional on Rather, I have no way to identify that the system has the device :). > > options ZT5503 >=20 > That's not a good enough reason to make it an option, it should really > be a device. Users that want it can add it to their kernel config. > In fact, they'd have to add it either way, so why make it weird for > them. >=20 > Put this device on the ISA bus, give it an identify routine that > always adds it (this isn't GENERIC safe, but since there's no way to > know the device is there, you are stuck with that). OK. I don't know a hell of a lot about how the ISA bus works, though I suppose that I remember that things using the old SB 16 cards (Wolfenstein, anyone?) would simply probe various I/O ports. Unfortunately, in my case, there are really no board specific I/O registers that will give me information I can detect (or so it seems =66rom the manufacturer's manuals), though I am going to write a couple of tests today to read some of these registers and see if there is any useful information contained within them which I might use to probe. Assuming no useful information exists, is it enough to let the device attach regardless if the user has device zt5503 in the configuration file? Maxime suggested that I use device hints to gather the port and such. Where should I put these hints? NOTES? If I understand correctly, to hook this up into the build, I will still have a line in files which will look something like: dev/ziatech/zt5503.c optional zt5503 Hm, Ziatech is now Performance Technologies. Should that perhaps be dev/pt then instead? > > existing in the kernel configuration file. I have a couple of > > related questions: > >=20 > > 1) Where in the tree should my zt5503wd.c file be placed? >=20 > usually these thigns go in dev/foo/foo.c. However FreeBSD and > DragonFly have differeing layouts. FreeBSD has a modules subtree to > build modules, while DF has it in the dev tree. The dev tree is also > partitioned so it would be in dev/misc/foo/foo.c. Yeah, I figured I'd ask Matt or Joerg where it'd best go there :). I Think the preferred location was dev/misc/foo as you suggest. > > 2) Regarding watchdog.h; this device supports other times than those > > provided from between 250MS to 256S. Hope nobody minds this changing > > :). >=20 > Nope. :-) Ok then :) > > 3) To make sure I understand how this works: > > o The device is compiled in / loaded >=20 > You'll need to make it a real device if you want loading to work. The > alternative is to make it a pseudo-device, but that's more hassle than > it is worth since you need to access resources. An option definitely > won't work. Another good reason to not write it as such. > > o watchdogd is used to tell the system to start the timer > > o I get a bunch of flags in my eventhandler function's 2nd > > argument that I can then use to write to my device's > > registers with the proper information >=20 > These don't look like questions... They're not stated as such; I've only taken a brief look around the=20 watchdog functionality and I just wanted to confirm that this is how the stuff works so I don't end up goofing it up :). >=20 > Warner Thanks for the help! --Devon --//h4sZKAxcnndsN6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCO9yHSkf3jVXOdl0RAgWeAJ9Xj/fNAFWyxapuEYFe5huf+rx1EQCeNGcq +pEol+Pc5c+XfWBYknPRflI= =kwXO -----END PGP SIGNATURE----- --//h4sZKAxcnndsN6-- From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 08:44:49 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 109DE16A4CF for ; Sat, 19 Mar 2005 08:44:49 +0000 (GMT) Received: from smp500.sitetronics.com (sitetronics.com [82.192.77.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80B9F43D39 for ; Sat, 19 Mar 2005 08:44:48 +0000 (GMT) (envelope-from dodell@offmyserver.com) Received: from localhost.sitetronics.com ([127.0.0.1] helo=smp500.sitetronics.com) by smp500.sitetronics.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50 (FreeBSD)) id 1DCZYc-000MCB-7c for freebsd-hackers@freebsd.org; Sat, 19 Mar 2005 09:43:42 +0100 Received: (from dodell@localhost) by smp500.sitetronics.com (8.12.11/8.12.11/Submit) id j2J8hf6v085322 for freebsd-hackers@freebsd.org; Sat, 19 Mar 2005 09:43:41 +0100 (CET) (envelope-from dodell@offmyserver.com) X-Authentication-Warning: smp500.sitetronics.com: dodell set sender to dodell@offmyserver.com using -f Date: Sat, 19 Mar 2005 09:43:41 +0100 From: "Devon H. O'Dell " To: freebsd-hackers@freebsd.org Message-ID: <20050319084341.GY51688@smp500.sitetronics.com> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20050318160528.GQ51688@smp500.sitetronics.com> <20050318.155553.41699848.imp@bsdimp.com> <20050319080215.GX51688@smp500.sitetronics.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HywJcj55HbA57jnN" Content-Disposition: inline In-Reply-To: <20050319080215.GX51688@smp500.sitetronics.com> User-Agent: Mutt/1.5.8i Subject: Re: Ziatech 5503 watchdog driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 08:44:49 -0000 --HywJcj55HbA57jnN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 19, 2005 at 09:02:15AM +0100, Devon H. O'Dell wrote: > On Fri, Mar 18, 2005 at 03:55:53PM -0700, Warner Losh wrote: > > > I'm busy writing a Ziatech 5503 watchdog driver for FreeBSD (and > > > porting all the watchdog stuff to DragonFly BSD) and Plan 9. For my > > > driver, I have no way to identify that the system has the driver, so > > > I wanted to make it conditional on >=20 > Rather, I have no way to identify that the system has the device :). AHA! But I have finally found something that will make my life a little easier, I think. I just noticed a read only register with a default value of 0x80 and tested it. It returns 0x80. Is this enough to test on / probe for? --Devon --HywJcj55HbA57jnN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCO+Y9Skf3jVXOdl0RAt1RAJ0ScxFVl6TJIGaBANm7pcn9Wfpn8QCglhS8 ffoG+7LevRAj60xhV5IquWc= =z+IZ -----END PGP SIGNATURE----- --HywJcj55HbA57jnN-- From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 09:05:10 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A01316A4CE for ; Sat, 19 Mar 2005 09:05:10 +0000 (GMT) Received: from smp500.sitetronics.com (sitetronics.com [82.192.77.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC8FF43D2D for ; Sat, 19 Mar 2005 09:05:09 +0000 (GMT) (envelope-from dodell@offmyserver.com) Received: from localhost.sitetronics.com ([127.0.0.1] helo=smp500.sitetronics.com) by smp500.sitetronics.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50 (FreeBSD)) id 1DCZsJ-000MEZ-E1 for freebsd-hackers@freebsd.org; Sat, 19 Mar 2005 10:04:03 +0100 Received: (from dodell@localhost) by smp500.sitetronics.com (8.12.11/8.12.11/Submit) id j2J942H9085470 for freebsd-hackers@freebsd.org; Sat, 19 Mar 2005 10:04:02 +0100 (CET) (envelope-from dodell@offmyserver.com) X-Authentication-Warning: smp500.sitetronics.com: dodell set sender to dodell@offmyserver.com using -f Date: Sat, 19 Mar 2005 10:04:02 +0100 From: "Devon H. O'Dell " To: freebsd-hackers@freebsd.org Message-ID: <20050319090402.GZ51688@smp500.sitetronics.com> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20050318160528.GQ51688@smp500.sitetronics.com> <20050318.155553.41699848.imp@bsdimp.com> <20050319080215.GX51688@smp500.sitetronics.com> <20050319084341.GY51688@smp500.sitetronics.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gSSGYPGSs0dvYOj7" Content-Disposition: inline In-Reply-To: <20050319084341.GY51688@smp500.sitetronics.com> User-Agent: Mutt/1.5.8i Subject: Re: Ziatech 5503 watchdog driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 09:05:10 -0000 --gSSGYPGSs0dvYOj7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 19, 2005 at 09:43:41AM +0100, Devon H. O'Dell wrote: > On Sat, Mar 19, 2005 at 09:02:15AM +0100, Devon H. O'Dell wrote: > > On Fri, Mar 18, 2005 at 03:55:53PM -0700, Warner Losh wrote: > > > > I'm busy writing a Ziatech 5503 watchdog driver for FreeBSD (and > > > > porting all the watchdog stuff to DragonFly BSD) and Plan 9. For my > > > > driver, I have no way to identify that the system has the driver, so > > > > I wanted to make it conditional on > >=20 > > Rather, I have no way to identify that the system has the device :). >=20 > AHA! But I have finally found something that will make my life a > little easier, I think. I just noticed a read only register with a > default value of 0x80 and tested it. It returns 0x80. Is this enough > to test on / probe for? >=20 > --Devon Sorry, hate replying to myself. Turns out the value here is variable. Assuming I cannot find anything to identify the system, can I simply attach the driver if it is enabled in the configuration file? --Devon --gSSGYPGSs0dvYOj7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCO+sCSkf3jVXOdl0RApTjAJ9deGmGf+0YWz2ZEXDHaNtnxQVP4wCePi55 yQpu65BMwOl4hFqxpgTHerw= =pyqm -----END PGP SIGNATURE----- --gSSGYPGSs0dvYOj7-- From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 09:45:40 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 100D716A4CE for ; Sat, 19 Mar 2005 09:45:40 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C9C443D48 for ; Sat, 19 Mar 2005 09:45:37 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j2J9jVl8079263; Sat, 19 Mar 2005 20:15:32 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Sat, 19 Mar 2005 20:15:29 +1030 User-Agent: KMail/1.7.92 References: <20050318160528.GQ51688@smp500.sitetronics.com> <20050319084341.GY51688@smp500.sitetronics.com> <20050319090402.GZ51688@smp500.sitetronics.com> In-Reply-To: <20050319090402.GZ51688@smp500.sitetronics.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3597225.2rK5Xqc3ut"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503192015.30225.doconnor@gsoft.com.au> X-Spam-Score: -5.4 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: "Devon H. O'Dell " Subject: Re: Ziatech 5503 watchdog driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 09:45:40 -0000 --nextPart3597225.2rK5Xqc3ut Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sat, 19 Mar 2005 19:34, Devon H. O'Dell wrote: > Assuming I cannot find anything to identify the system, can I simply > attach the driver if it is enabled in the configuration file? You use the identify routine to create an instance of the device at a certa= in=20 location. There are quite a number of examples in the tree. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart3597225.2rK5Xqc3ut Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCO/S65ZPcIHs/zowRAinlAJ9A5PlQvcOQA9C3K1njq9bsmGNG8wCeOXpu lIMwduNyA2CZEF/GJbPOpp8= =KaIX -----END PGP SIGNATURE----- --nextPart3597225.2rK5Xqc3ut-- From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 10:56:13 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6269316A4CE; Sat, 19 Mar 2005 10:56:13 +0000 (GMT) Received: from outgoing.redshift.com (outgoing.redshift.com [207.177.231.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 405B443D48; Sat, 19 Mar 2005 10:56:13 +0000 (GMT) (envelope-from ray@redshift.com) Received: from workstation (216-228-19-21.dsl.redshift.com [216.228.19.21]) by outgoing.redshift.com (Postfix) with SMTP id 76FFB970AF; Sat, 19 Mar 2005 02:56:12 -0800 (PST) Message-Id: <3.0.1.32.20050319025617.00a909c0@pop.redshift.com> X-Mailer: na X-Sender: redshift.com Date: Sat, 19 Mar 2005 02:56:17 -0800 To: hackers@freebsd.org, freebsd-scsi@freebsd.org, freebsd-amd64@freebsd.org From: ray@redshift.com In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Support for Tyan Thunder K8SR w/ Adaptec 7902 under AMD64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 10:56:13 -0000 Hi List(s), I ran into some issues with FreeBSD 5.3 crashing on heavy read/writes while using a Tyan Thunder K8SR motherboard with SCSI support. Here is a screen shot of the lock up: http://www.redshift.com/~ray/amd/ I wrote to Tyan and one of their tech's replied with the note below: "I've looked on the Adaptec website and I can't find any "listing that states that the Adaptec 7902 supports any "version of FreeBSD. We haven't test this OS with any of "the boards that have this chipset so we could not "make any comments about what you are seeing directly." I returned the server to our hardware vendor and they said that it was a defective motherboard and that they were able to load up 40 other machines with FreeBSD 5.3 fine. They are sending another server to me for testing. In the meantime, I was trying to confirm the Adaptec 7902 chipset used on the Tyan board is fully supported in FreeBSD AMD64. Does anyone know off hand? I checked i386 and did not see anything directly stating 7902. Unfortunately, I do not have an AMD machine here at the moment, so I can't check the Kernel config file. Does anyone know off hand? Thanks! Ray From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 12:06:48 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2018416A4CE; Sat, 19 Mar 2005 12:06:48 +0000 (GMT) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BB2A43D49; Sat, 19 Mar 2005 12:06:44 +0000 (GMT) (envelope-from bra@fsn.hu) Received: from localhost (localhost [127.0.0.1]) by people.fsn.hu (Postfix) with ESMTP id C22688444A; Sat, 19 Mar 2005 13:06:39 +0100 (CET) Received: from people.fsn.hu ([127.0.0.1]) by localhost (people.fsn.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09559-02; Sat, 19 Mar 2005 13:06:30 +0100 (CET) Received: from [172.16.129.72] (japan.axelero.com [195.228.243.99]) by people.fsn.hu (Postfix) with ESMTP id 60DA884434; Sat, 19 Mar 2005 13:06:30 +0100 (CET) Message-ID: <423C15C5.6040902@fsn.hu> Date: Sat, 19 Mar 2005 13:06:29 +0100 From: Attila Nagy User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at fsn.hu cc: netchild@FreeBSD.org Subject: 5-STABLE kernel build with icc broken X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 12:06:48 -0000 Hello, It seems to me that building kernel with icc is currently broken, at least in 5-STABLE. Could somebody investigate this? grep ^C /etc/make.conf CC=icc CXX=icpc icc -V Intel(R) C Compiler for 32-bit applications, Version 8.1 Build 20041118Z Package ID: l_cc_pc_8.1.026 Copyright (C) 1985-2004 Intel Corporation. All rights reserved. FOR NON-COMMERCIAL USE ONLY make buildkernel KERNCONF=GENERIC [...] -------------------------------------------------------------- >>> stage 3.2: building everything -------------------------------------------------------------- cd /usr/obj/usr/src/sys/GENERIC; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=i386MACHINE=i386 CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr/src/i386/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/i386/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/i386/legacy/usr/share/tmac _SHLIBDIRPREFIX=/usr/obj/usr/src/i386 INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin make KERNEL=kernel all -DNO_MODULES_OBJ icc -c -x assembler-with-cpp -DLOCORE -O -X -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -nolib_inline -restrict /usr/src/sys/i386/i386/locore.s :4:1: warning: "__SIZE_TYPE__" redefined :6:1: warning: this is the location of the previous definition :5:1: warning: "__WCHAR_TYPE__" redefined :8:1: warning: this is the location of the previous definition :10:1: warning: "__GNUC__" redefined :3:1: warning: this is the location of the previous definition :11:1: warning: "__GNUC_MINOR__" redefined :4:1: warning: this is the location of the previous definition :12:1: warning: "__GNUC_PATCHLEVEL__" redefined :5:1: warning: this is the location of the previous definition :15:1: warning: "__GXX_ABI_VERSION" redefined :10:1: warning: this is the location of the previous definition /tmp/iccbinuMzQeKs: Assembler messages: /tmp/iccbinuMzQeKs:491: Error: suffix or operands invalid for `shr' /tmp/iccbinuMzQeKs:491: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:499: Error: suffix or operands invalid for `shr' /tmp/iccbinuMzQeKs:500: Error: suffix or operands invalid for `shr' /tmp/iccbinuMzQeKs:500: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:528: Error: suffix or operands invalid for `shr' /tmp/iccbinuMzQeKs:529: Error: suffix or operands invalid for `shr' /tmp/iccbinuMzQeKs:529: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:532: Error: suffix or operands invalid for `shr' /tmp/iccbinuMzQeKs:532: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:537: Error: suffix or operands invalid for `shr' /tmp/iccbinuMzQeKs:537: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:542: Error: suffix or operands invalid for `shr' /tmp/iccbinuMzQeKs:542: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:547: Error: suffix or operands invalid for `shr' /tmp/iccbinuMzQeKs:547: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:553: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:559: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:563: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:574: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:581: Error: suffix or operands invalid for `shr' /tmp/iccbinuMzQeKs:583: Error: suffix or operands invalid for `shl' /tmp/iccbinuMzQeKs:596: Error: suffix or operands invalid for `shl' *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Thank you! -- Attila Nagy e-mail: Attila.Nagy@fsn.hu Adopt a directory on our free software phone @work: +361 371 3536 server! http://www.fsn.hu/?f=brick cell.: +3630 306 6758 From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 12:25:04 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5861816A4CE for ; Sat, 19 Mar 2005 12:25:04 +0000 (GMT) Received: from mail22.syd.optusnet.com.au (mail22.syd.optusnet.com.au [211.29.133.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1F3643D49 for ; Sat, 19 Mar 2005 12:25:03 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) j2JCP13D025034 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 19 Mar 2005 23:25:02 +1100 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])j2JCP17l036001; Sat, 19 Mar 2005 23:25:01 +1100 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)j2JCP0c7035997; Sat, 19 Mar 2005 23:25:00 +1100 (EST) (envelope-from pjeremy) Date: Sat, 19 Mar 2005 23:25:00 +1100 From: Peter Jeremy To: ray@redshift.com Message-ID: <20050319122500.GD30813@cirb503493.alcatel.com.au> References: <3.0.1.32.20050319025617.00a909c0@pop.redshift.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3.0.1.32.20050319025617.00a909c0@pop.redshift.com> User-Agent: Mutt/1.4.2i cc: hackers@freebsd.org Subject: Re: Support for Tyan Thunder K8SR w/ Adaptec 7902 under AMD64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 12:25:04 -0000 [please don't cross-post] On Sat, 2005-Mar-19 02:56:17 -0800, ray@redshift.com wrote: > In the meantime, I was trying to confirm the Adaptec 7902 chipset used on the >Tyan board is fully supported in FreeBSD AMD64. Does anyone know off hand? ahd(4) states it supports the AIC7902 and is included in the amd64 GENERIC. I don't have either and so can't comment on how well they work together. See also http://www.freebsd.org/releases/5.3R/hardware-amd64.html#DISK > Unfortunately, I >do not have an AMD machine here at the moment, so I can't check the Kernel >config file. The kernel sources include all variants so you could look in /sys/amd64/conf/GENERIC. -- Peter Jeremy From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 22:13:17 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9694716A4CE for ; Fri, 18 Mar 2005 22:13:17 +0000 (GMT) Received: from mail.mundomateo.com (static-24-56-193-117.chrlmi.cablespeed.com [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 374D243D2D for ; Fri, 18 Mar 2005 22:13:17 +0000 (GMT) (envelope-from matthew@mundomateo.com) Received: from [10.0.81.14] (ws14.mundomateo.com [10.0.81.14]) by mail.mundomateo.com (Postfix) with ESMTP id C680A60A7 for ; Fri, 18 Mar 2005 17:13:15 -0500 (EST) Message-ID: <423B5277.90304@mundomateo.com> Date: Fri, 18 Mar 2005 17:13:11 -0500 From: Matthew Hagerty User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 19 Mar 2005 13:59:47 +0000 Subject: Best way to force a process preempt (for troubleshooting) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: matthew@mundomateo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 22:13:17 -0000 Greetings, I'm trying to test for the possibility of interleaved data when two more more processes are writing to a pipe and more than PIPE_BUF bytes need to be written. How can I make a situation where this scenario can be caused reliably so I can make my test case, then apply my patch and make sure the changes worked? Additionally, in one case the processes are created from fork() and in another case they are threads (not sure if this makes any difference to the scheduler.) Any insight would be greatly appreciated. Thank you, Matthew From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 14:53:37 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3B8F16A4CE for ; Sat, 19 Mar 2005 14:53:36 +0000 (GMT) Received: from kraid.nerim.net (smtp-106-saturday.nerim.net [62.4.16.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13EFB43D55 for ; Sat, 19 Mar 2005 14:53:36 +0000 (GMT) (envelope-from e-masson@kisoft-services.com) Received: from srvbsdnanssv.interne.kisoft-services.com (kisoft.net1.nerim.net [62.212.107.51]) by kraid.nerim.net (Postfix) with ESMTP id 7FF10426D8 for ; Sat, 19 Mar 2005 15:53:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1])9ECDDC3C2 for ; Sat, 19 Mar 2005 15:53:32 +0100 (CET) Received: from srvbsdnanssv.interne.kisoft-services.com ([127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 46227-10 for ; Sat, 19 Mar 2005 15:53:29 +0100 (CET) Received: by srvbsdnanssv.interne.kisoft-services.com (Postfix, from userid 1001) id 1F3ADC364; Sat, 19 Mar 2005 15:53:29 +0100 (CET) To: Mailing List FreeBSD Hackers From: Eric Masson X-Operating-System: FreeBSD 5.4-PRERELEASE i386 Date: Sat, 19 Mar 2005 15:53:29 +0100 Message-ID: <86acozg00m.fsf@srvbsdnanssv.interne.kisoft-services.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at interne.kisoft-services.com Subject: Xen support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 14:53:37 -0000 Hello, Everybody here probably knows about Xen, the virtualization layer from Cambridge University (Uk) : http://www.cl.cam.ac.uk/Research/SRG/netos/xen/ Is there any hope to see Kip Macy's work on Xen Support merged in the main tree anytime soon ? http://sourceforge.net/mailarchive/forum.php?thread_id=6793311&forum_id=35600 Regards Éric Masson -- Subject: Re: procmail NK> comment créer un filtre (...) Menu -> Edition -> Filtres de courrier -> Nouveau. -+- G in: GNU - WISIWYSS (What I See Is What You Should See) -+- From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 19:32:35 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C294D16A4CE for ; Sat, 19 Mar 2005 19:32:35 +0000 (GMT) Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E71343D54 for ; Sat, 19 Mar 2005 19:32:35 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: (from root@localhost) by hanoi.cronyx.ru (8.13.0/vak/3.0) id j2JJTTFv009872 for freebsd-hackers@freebsd.org.checked; Sat, 19 Mar 2005 22:29:29 +0300 (MSK) (envelope-from rik@cronyx.ru) Received: from cronyx.ru (localhost.cronyx.ru [127.0.0.1]) by hanoi.cronyx.ru (8.13.0/vak/3.0) with ESMTP id j2JJRVFf009836; Sat, 19 Mar 2005 22:27:31 +0300 (MSK) (envelope-from rik@cronyx.ru) Message-ID: <423C7AE1.6080109@cronyx.ru> Date: Sat, 19 Mar 2005 22:17:53 +0300 From: Roman Kurakin User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.2.1) Gecko/20030426 X-Accept-Language: ru-ru, en MIME-Version: 1.0 To: Miguel Mendez References: <4239B16E.8080502@cronyx.ru> <20050318013612.GO65340@wantadilla.lemis.com> <20050318101531.7172ef9f.flynn@energyhq.es.eu.org> In-Reply-To: <20050318101531.7172ef9f.flynn@energyhq.es.eu.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Greg 'groggy' Lehey cc: freebsd-hackers@freebsd.org Subject: Re: style(9) example :-) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 19:32:35 -0000 Miguel Mendez: >On Fri, 18 Mar 2005 12:06:12 +1030 >Greg 'groggy' Lehey wrote: > > > >>On Thursday, 17 March 2005 at 19:33:50 +0300, Roman Kurakin wrote: >> >> >>>Hi, >>> >>>I was unable to refrain from posting this :-) >>> >>>int i;main(){for(;i["]>>o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} >>> >>> >>There used to be a whole culture of this sort of thing. My favourite >>one is an anagram generator: >> >> > >The IOCCC (http://www.ioccc.org/) is still alive. Some of the 2004 >winners are quite impressive. I tend to prefer obfuscated C over perl, >although you can easily make perl look like line noise :) > I always tell to my pupils that they can win there with the code they produce on lessons. :-) rik > >Cheers, > > From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 19:33:39 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADC5F16A4CE for ; Sat, 19 Mar 2005 19:33:39 +0000 (GMT) Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A11943D39 for ; Sat, 19 Mar 2005 19:33:39 +0000 (GMT) (envelope-from kmacy@netapp.com) Received: from frejya.corp.netapp.com (10.57.157.119) by mx2.netapp.com with ESMTP; 19 Mar 2005 11:33:39 -0800 X-IronPort-AV: i="3.91,104,1110182400"; d="scan'208"; a="182744792:sNHT16172204" Received: from siml3.eng.netapp.com (siml3-fe.eng.netapp.com [10.56.9.153]) j2JJXd2D007579 for ; Sat, 19 Mar 2005 11:33:39 -0800 (PST) Date: Sat, 19 Mar 2005 11:33:39 -0800 (PST) From: Kip Macy X-X-Sender: kmacy@siml3.eng.netapp.com To: Mailing List FreeBSD Hackers In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Subject: RE: Xen support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 19:33:39 -0000 Repost. Outlook posts a different e-mail address from the one I subscribed with. > In all fairness I'd like to say that Nate put me in touch with someone to > commit the work. At about the same time I discovered a rather annoying bug > (since fixed), and I haven't followed back up. > > For those who would like to try it out I just submitted a sparse tree patch > against the development branch (xeno-unstable.bk), that I believe will be > committed shortly. It and a kernel can be found at: > > http://www.fsmware.com/xenofreebsd/5.3/050317/ > > You'll find some very basic instructions for booting a FreeBSD guest on xen > one level up. > > To avoid premature enthusiasm I'd like to point out that FreeBSD is currently > only supported as an unprivileged guest. DOM0 support is not that much work, > it simply isn't a priority at the moment. > > -Kip > > -----Original Message----- > From: Eric Masson [mailto:e-masson@kisoft-services.com] > Sent: Saturday, March 19, 2005 6:53 AM > To: Mailing List FreeBSD Hackers > Subject: Xen support > > Hello, > > Everybody here probably knows about Xen, the virtualization layer from > Cambridge University (Uk) : > http://www.cl.cam.ac.uk/Research/SRG/netos/xen/ > > Is there any hope to see Kip Macy's work on Xen Support merged in the > main tree anytime soon ? > http://sourceforge.net/mailarchive/forum.php?thread_id=6793311&forum_id=35600 > > Regards > > Éric Masson > > -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 19:44:31 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4AA016A4CE for ; Sat, 19 Mar 2005 19:44:31 +0000 (GMT) Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 175C643D2D for ; Sat, 19 Mar 2005 19:44:31 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: (from root@localhost) by hanoi.cronyx.ru (8.13.0/vak/3.0) id j2JJfTOj009990 for freebsd-hackers@freebsd.org.checked; Sat, 19 Mar 2005 22:41:29 +0300 (MSK) (envelope-from rik@cronyx.ru) Received: from cronyx.ru (localhost.cronyx.ru [127.0.0.1]) by hanoi.cronyx.ru (8.13.0/vak/3.0) with ESMTP id j2JJcWge009973; Sat, 19 Mar 2005 22:38:33 +0300 (MSK) (envelope-from rik@cronyx.ru) Message-ID: <423C7D76.2050501@cronyx.ru> Date: Sat, 19 Mar 2005 22:28:54 +0300 From: Roman Kurakin User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.2.1) Gecko/20030426 X-Accept-Language: ru-ru, en MIME-Version: 1.0 To: nahthan subramanian References: <20050309214444.99019.qmail@web50209.mail.yahoo.com> In-Reply-To: <20050309214444.99019.qmail@web50209.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD on IBM BladeCenter? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 19:44:32 -0000 Have you tried FreeBSD 6.Current? Also try to boot in safe mode. Best regards, Roman Kurakin nahthan subramanian: >Hi there, > > Any success stories out there of getting FreeBSD running on IBM BladeCenter hardware? >It's not officially supported. It's designed to run Linux/*doze. > >Here's a document of my attempts: > >--------------------------- > >Hardware Information >general: http://www-1.ibm.com/servers/eserver/bladecenter/ > chassis: http://tinyurl.com/4gcbw > blade: http://tinyurl.com/6js9m >HS20 blade machine type: 8843 >HS20 blade model number: 11U >Chassis model number: 8677-3XU >Chassis machine type: 8843 >Chassis model number: 11U >basic blade config: >Dual Intel Xeon 3.0Ghz > hyper threading and EM64T support >4096MB memory >---------------- >FreeBSD Installation media tried: >tried with freebsd 5.3 i386 from floppy & CD >tried with freebsd 4.ii i386 from floppy & CD >-- >tried with BIOS 1.2 on blade. >tried with BIOS 1.0 on blade. >-- >tried with an extrenal USB keyboard connected, and without. >-- >tried with hyperthreading disabled in BIOS. >tried with CPU cache enabled/disabled in BIOS. >tried with CPU write back cache enabled/disabled in BIOS. >tried with CPU prefetch queue enabled/disabled in BIOS. >tried with CPU Execute Disable bit enabled/disabled in BIOS. >-- >tried with ACPI enabled/disabled from the installation prompt. > >nothing. > >Here are the crashes and error messages: >------- >FreeBSD 5.3 boot from CD/floppy crash/panic: > >atapci0: port 0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at drvice 31.1 on pci0 > >fatal trap 12: page fault while in kernel mode >fault virtual address = 0x5 >fault code = supervisor read, page not present >instruction pointer = 0x8:0xc06200d0 >stack pointer = 0x10:0xc1021914 >frame pointer = 0x10:0xc1021914 >code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 >processor eflags = interrupt enabled, resume, IPOL=0 >current process = 0 (swapper) >trap number = 12 >panic: page fault >uptime: 1s >shutting down ACPI >stray IRQ 11 >Automatic reboot in 15 seconds - press a key on the console to abort >Rebooting... >Keyboard reset did not work, attempting CPU shutdown >------------------------------------------------------------------------------ >FreeBSD 5.2.1 booting from CD, hangs on boot: > >acpi0: on motherboard >pcibios: BIOS version 2.10 >acpi_bus_number: can't get _ADR >acpi_bus_number: can't get _ADR >acpi_bus_number: can't get _ADR >acpi_bus_number: can't get _ADR >acpi_bus_number: can't get _ADR >acpi_bus_number: can't get _ADR >acpi0: Power Button (fixed) >Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 >(...hangs here forever... machine completely locks up...) >------------------------------------------------------------------------------ >FreeBSD 4.11, booting from CD: > >Uncompressing ... done >BTX loader 1.00 BTX version is 1.01 >Console: internal video/keyboard >BIOS drive C: is disk0 >BIOS 629/3275513kB available memory >FreeBSD/i386 bootstrap loader, Revision 0.8 >(root@perseus.cse.buffalo.edu, Fri Jan 21 15:42:07 GMT 2005) >Can't work out which disk we're booting from. >Guessed BIOS device 0x0 not found by probes, defaulting to disk0: >Hit [Enter] to boot immediately, or any other key for command prompt. >Booting [kernel]... >can't load 'kernel' >can't load 'kernel.old' >Type '?' for a list of commands, 'help' for more detailed help. >ok >------------- >FreeBSD 4.11, booting from floppy: >Uncompressing ... done >BTX loader 1.00 BTX version is 1.01 >Console: internal video/keyboard >BIOS drive C: is disk0 >BIOS 629/3275513kB available memory >FreeBSD/i386 bootstrap loader, Revision 0.8 >(root@perseus.cse.buffalo.edu, Fri Jan 21 15:42:07 GMT 2005) >/kernel text=0x289d91 data=0x30170+0x32d04 zf_read: fill error >elf_loadexec: archsw.readin failed >can't load module '/kernel': input/output error >- >Hit [Enter] to boot immediately, or any other key for command prompt. >booting [kernel]... >/kernel text=0x289d91 data=0x30170+0x32d04 zf_read: fill error >elf_loadexec: archsw.readin failed >can't load 'kernel' >can't load 'kernel.old' >Type '?' for a list of commands, 'help' for more detailed help. >ok >---------------------------- > >I can't think of much else to try for now. Any clues? Thanks. > >-Nate > > >--------------------------------- >Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web >_______________________________________________ >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 Sat Mar 19 21:04:33 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6407516A4D0 for ; Sat, 19 Mar 2005 21:04:33 +0000 (GMT) Received: from kraid.nerim.net (smtp-106-saturday.nerim.net [62.4.16.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0BC043D54 for ; Sat, 19 Mar 2005 21:04:31 +0000 (GMT) (envelope-from e-masson@kisoft-services.com) Received: from srvbsdnanssv.interne.kisoft-services.com (kisoft.net1.nerim.net [62.212.107.51]) by kraid.nerim.net (Postfix) with ESMTP id C6B32418CB; Sat, 19 Mar 2005 22:04:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1])F39ACC4C8; Sat, 19 Mar 2005 22:04:28 +0100 (CET) Received: from srvbsdnanssv.interne.kisoft-services.com ([127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 48029-01; Sat, 19 Mar 2005 22:04:25 +0100 (CET) Received: by srvbsdnanssv.interne.kisoft-services.com (Postfix, from userid 1001) id 22855C12B; Sat, 19 Mar 2005 22:04:25 +0100 (CET) To: "Macy, Kip" From: Eric Masson In-Reply-To: (Kip Macy's message of "Sat, 19 Mar 2005 11:13:41 -0800") References: X-Operating-System: FreeBSD 5.4-PRERELEASE i386 Date: Sat, 19 Mar 2005 22:04:25 +0100 Message-ID: <86mzsze49y.fsf@srvbsdnanssv.interne.kisoft-services.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at interne.kisoft-services.com cc: Mailing List FreeBSD Hackers Subject: Re: Xen support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 21:04:33 -0000 "Macy, Kip" writes: Hello Kip, > In all fairness I'd like to say that Nate put me in touch with someone > to commit the work. At about the same time I discovered a rather > annoying bug (since fixed), and I haven't followed back up. Ok, > For those who would like to try it out I just submitted a sparse tree > patch against the development branch (xeno-unstable.bk), that I > believe will be committed shortly. Great. > It and a kernel can be found at: > http://www.fsmware.com/xenofreebsd/5.3/050317/ > You'll find some very basic instructions for booting a FreeBSD guest > on xen one level up. Ok, I'll give it a shot asap > To avoid premature enthusiasm I'd like to point out that FreeBSD is > currently only supported as an unprivileged guest. DOM0 support is not > that much work, it simply isn't a priority at the moment. Ok, not really annoying, Manuel Bouyer is working on domain0 support for NetBSD, so I won't have to install some linux on the box ;) As my girlfriend would like me to keep the bare minimum number of machines here, Xen is the way to run Net/Free/DFly and maybe some dreadful Debian on a single amd64 machine. Regarding this kind of setup, do you know if Xen could support amd64 in domain0 and mix amd64/ia32 kernels/userlands in other domains ? Regards. Éric Masson -- SP: Aux dernière nouvelles, MOSXS est "due... in the next few weeks". EL: La bonne nouvelle, est que vu la tournure des événements, on va EL: bientôt être sûr que MacOS X Server est bien compatible an 2000 ;-) -+- EL in Guide du Macounet Pervers : Le bug Y30K nous guête -+- From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 21:12:05 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D354A16A4CE for ; Sat, 19 Mar 2005 21:12:05 +0000 (GMT) Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82E4E43D46 for ; Sat, 19 Mar 2005 21:12:05 +0000 (GMT) (envelope-from kmacy@netapp.com) Received: from frejya.corp.netapp.com (10.57.157.119) by mx2.netapp.com with ESMTP; 19 Mar 2005 13:12:07 -0800 X-IronPort-AV: i="3.91,104,1110182400"; d="scan'208"; a="182749320:sNHT15401256" Received: from siml3.eng.netapp.com (siml3-fe.eng.netapp.com [10.56.9.153]) j2JLC52D016513; Sat, 19 Mar 2005 13:12:05 -0800 (PST) Date: Sat, 19 Mar 2005 13:12:05 -0800 (PST) From: Kip Macy X-X-Sender: kmacy@siml3.eng.netapp.com To: Eric Masson In-Reply-To: <86mzsze49y.fsf@srvbsdnanssv.interne.kisoft-services.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Mailing List FreeBSD Hackers Subject: Re: Xen support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 21:12:06 -0000 > Ok, not really annoying, Manuel Bouyer is working on domain0 support for > NetBSD, so I won't have to install some linux on the box ;) So I've heard. I haven't tried it out yet. > As my girlfriend would like me to keep the bare minimum number of > machines here, Xen is the way to run Net/Free/DFly and maybe some > dreadful Debian on a single amd64 machine. LOL. There isn't any DFly support currently. Starting from the FreeBSD port, it wouldn't be hard to add. > Regarding this kind of setup, do you know if Xen could support amd64 in > domain0 and mix amd64/ia32 kernels/userlands in other domains ? There currently is only compatibility-mode support for applications not guests. I'm not under the impression that x86_64 support is that stable yet. Otherwise I would've started on x86_64 FreeBSD support. Please try it out and let me know off-list how well it works. -Kip From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 23:27:03 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8BF716A4CE; Sat, 19 Mar 2005 23:27:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8083A43D2F; Sat, 19 Mar 2005 23:27:03 +0000 (GMT) (envelope-from csjp@FreeBSD.org) Received: from freefall.freebsd.org (csjp@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2JNR33f053272; Sat, 19 Mar 2005 23:27:03 GMT (envelope-from csjp@freefall.freebsd.org) Received: (from csjp@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2JNR3jd053271; Sat, 19 Mar 2005 23:27:03 GMT (envelope-from csjp) Date: Sat, 19 Mar 2005 23:27:03 +0000 From: "Christian S.J. Peron" To: freebsd-hackers@FreeBSD.org Message-ID: <20050319232703.GA53181@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i cc: freebsd-security@FreeBSD.org Subject: RE: FreeBSD trusted execution system: beta testers wanted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 23:27:03 -0000 All Thanks for all the input. I have updated the code as per some of the comments which came in around testing. The following changes were made: -modify setfhash/getfhash to use the filename of the pathname portion. this will un break set/getfhash if it was invoked using ./ or the complete pathname. -the kernel implementation of setfhash was a bad idea. It used to use the utimes syscall. This especially caused problems with various port or source builds on NFS file systems exiting with EIO or various other errors. I replaced the kernel implementation with a sysctl, and modified the setfhash utility to use this instead. -add additional printf's to tell people where/why things went wrong. It should be noted that these printfs are only executed if the module is compiled with DEBUG set. (See the Makefile). -change Makefiles and file locations to be more consistent with the system build practices. NOTE: IF YOU HAVE ALREADY PATCHED YOUR KERNEL SKIP THE KERNEL PATCH/REBUILD cd /usr/src/sys fetch http://www.freebsd.org/~csjp/mac/mac_vnode_mmap.1106783302.diff patch < mac_vnode_mmap.1106783302.diff # REBUILD YOUR KERNEL cd /usr/src/sys/modules mkdir /usr/src/sys/modules/mac_chkexec cd /usr/src/sys/modules/mac_chkexec fetch http://www.freebsd.org/~csjp/mac/Makefile cd /usr/src/usr.sbin fetch http://www.freebsd.org/~csjp/mac/getfhash.1111165779.shar sh getfhash.1111165779.shar cd getfhash make make install make clean cd /usr/src/sys/security fetch http://www.freebsd.org/~csjp/mac/mac_chkexec.1111165827.shar sh mac_chkexec.1111165827.shar cd /usr/src/sys/modules/mac_chkexec make make install make clean -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer