From owner-freebsd-hackers Tue Jan 1 1:31:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id C16BF37B427 for ; Tue, 1 Jan 2002 01:31:08 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g019V7l38106; Tue, 1 Jan 2002 02:31:07 -0700 (MST) (envelope-from imp@village.org) Received: from localhost (localhost [127.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g019V6F02472; Tue, 1 Jan 2002 02:31:06 -0700 (MST) (envelope-from imp@village.org) Date: Tue, 01 Jan 2002 02:30:54 -0700 (MST) Message-Id: <20020101.023054.77323162.imp@village.org> To: dillon@apollo.backplane.com Cc: dg@root.com, freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD performing worse than Linux? From: "M. Warner Losh" In-Reply-To: <200201010636.g016aLC37133@apollo.backplane.com> References: <200201010043.g010h0i36281@apollo.backplane.com> <20011231221601.A54679@nexus.root.com> <200201010636.g016aLC37133@apollo.backplane.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <200201010636.g016aLC37133@apollo.backplane.com> Matthew Dillon writes: : I think that has been fixed. Try it. It doesn't lag for me. The : turn-around echo of the keystroke should be pushed out instantly. Yes. Keep in mind that you only need to enable this when you have unacked data. Otherwise, NODELAY doesn't buy you anything. I routinely go over non-NODELAY links and haven't seen a huge problem except when modems were involved that liked to freak out. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 5:23:24 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 49AF637B439 for ; Tue, 1 Jan 2002 05:23:17 -0800 (PST) Received: from pool0063.cvx40-bradley.dialup.earthlink.net ([216.244.42.63] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16LOse-000251-00; Tue, 01 Jan 2002 05:23:00 -0800 Message-ID: <3C31B833.FF98C07@mindspring.com> Date: Tue, 01 Jan 2002 05:22:59 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Louis A. Mamakos" Cc: Matthew Dillon , Julian Elischer , Mike Silbersack , Josef Karthauser , Tomas Svensson , freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD performing worse than Linux? References: <200112312327.fBVNRt719835@whizzo.transsys.com> <200201010043.g010h0i36281@apollo.backplane.com> <3C311AC9.99B5FC9C@mindspring.com> <200201010246.g012ko721041@whizzo.transsys.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Louis A. Mamakos" wrote: > > Disabling Nagle's algorithm for no good reason has very poor > scaling behavior. This is what happens when TCP_NODELAY is > enabled on a socket. Disabling Nagle's algorithm for a good reason would still result in the observed failure, however. > If you look at the work function for most network elements, the part > that runs out of gas first is per-packet forwarding performance. Sure, > you need to have adequate bus bandwidth to move stuff through a box, > but it's performing per-packet forwarding operations and policy which > is the resource that's most difficult to make more of. I think this is > true for toy routers based on PC platform as well as high-end boxes like > the Cisco 12000 series. Juniper managed adequate forwarding performance > using specialized ASIC implementions in the forwarding path. Of this > statement, I'm sure; in my day job at UUNET, I talk to all the major > backbone router vendors, and forwarding performance (and also > reasonable routing protocol implementions) is a show-stopper > requirement they labor mightily over. PCI is sufficient to keep a Gigabit interface saturated, even without going to jumbograms. I have personally saturated such an interface. PCI-X will scale to 8 Gigabits. > So here was have a mechanism with wonderful properties - it's a > trivial yet clever implementation of a self tuning mechanism to > prevent tinygrams from being generated by a TCP without all manner > of complicated timers. It give great performance on LAN and other > high-speed interconnects where remote echo type applications are > demanding, yet over long delay paths where remote echo is gonna suck > no matter what you do, it automatically aggregates packets. As a bandwidth provider, UUNET is more concerned with aggregate throughput; this means it cares more about the moving average of packets getting through than it does about *my* packets getting through. When it comes to a conflict of interest, you will understand my preferences are for my own interests... 8-). > Nagle's algorithm and Van Jacobson's slow-start algorithm allowed the > Internet to survive over congested paths. And they did so with > a bunch of self-tuning behavior independent of the bandwidth*delay > product of the path the connection was running over. It was and is > amazing stuff. Yes, I'm well aware of bandwidth delay product calculations; it's the primary mechanism behind the rate halving algorithm I keep pointing to (Hoe, Jacobson). 8-). It's also the primary limitation on connection speed (remember that it was my FreeBSD machine that was able to get to 1.6M connections, with standard sockets). > Likewise, the original problem in this thread is likely caused by some > part of the USB Ethernet implementation having inadequate per-packet > resources. It's probably not about the number of bytes, but the number of > transactions. You see here a modern reimplementation of essentially the same > problem that the 3COM 3C501 ISA ethernet card had 15 years ago - back to > back packets were consistantly dropped because of the poor per-packet > buffering implementation. It was absolutely repeatable. Clearly. I think that's well established, since no one has squawked about the FreeBSD USB driver or the PC USB hardware being slower than the dongle USB hardware... > Sure, it's "legal" to generate streams of tinygrams and not use Nagle's > algorithm to aggregate the sender's traffic, but it's just plain rude > and on low bandwidth links, it sucks because of all the extra 40 byte > headers you're carrying around. I understand this. But Nagle is not the only mechanism which would fix the problem. Given that it's *intentionally* possible *and permitted* to turn Nagle off (via TCP_NODELAY), it makes sense to look at another mechanism that is not succeptible to being turned off. > I'm sure TCP_NODELAY got added because it sounds REALLY C00L to make > the interactive thing go better. But clearly people don't understand > the impact of turning on the cleverly named option and how it probably > doesn't really improve things. I'm pretty sure it got added to address interactive response on intrinsically small packets; telnet was probably the number one reason, but interactive responsiveness of small requests over TCP, such as non-pipelined HTTP requests, SMTP server responses, FTP control channel traffic, and other protocols benefit significantly from turning Nagle off. Nagle almost suggests it, in the original paper. Since OpenSSH incredibly bloats payload, it's much less necessary to get performance as it would be out of Telnet, though you will likely see least common multiples of the MTU cause occasionaly burstiness. Probably in this case, it would make sense to increase the decay rate of the timer based on the amount of data that is pending, relative to the MTU: defeat Nagle when the pipe is full, and partially defeat it down to, say, the pipe being half full. Thus large streams not ending on MTU boundaries would not suffer under Nagle. Remember also that Matt recently shot Reno for performance reasons, when compared to Linux, when he should probably have simply cranked initial window size to 3 (Jacobson) and added piggy-back ACKs (Mogul). While I'm sure the shooting is actually temporary, and eventually it will end up back on, once the performance issue is addressed correctly, realize that there is heavy pressure in the form of benchmarks to deal with, where speed is more important. In fact, until Windows 2000 (which has a BSDI ported stack that cost them ~$3M in fees), the Microsoft stacks routinely violated the RFCs on connection closing using RSTs to avoid the FIN_WAIT_2 issue, while at the same time potentially leaving the peer stuck forever (since RSTs are not retransmitted); you still have to set a registry entry to get correct behaviour, even today. I think with much faster links becoming common (802.11e is 5GHz over the air [Apple Trademark "GigaWire"]), we will see the MSL drop significantly; we already have problems with sequence number recycling with the random jump forward for "security" purposes to avoid session take-over -- even though we all know that end-to-end doctorine means that security is not correctly handled, if implemented at that layer. 2MSL is already incredibly huge, compared to the cycle time for 32bit sequence numbers on a 1Gbit link. I really like the self-clocking in the rate halving algorithm, but I guess that's pretty obvious by now. 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 5:27:51 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 2118D37B43A for ; Tue, 1 Jan 2002 05:27:46 -0800 (PST) Received: from pool0063.cvx40-bradley.dialup.earthlink.net ([216.244.42.63] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16LOx8-0003tU-00; Tue, 01 Jan 2002 05:27:39 -0800 Message-ID: <3C31B94A.15BDD42F@mindspring.com> Date: Tue, 01 Jan 2002 05:27:38 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "M. Warner Losh" Cc: dillon@apollo.backplane.com, dg@root.com, freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD performing worse than Linux? References: <200201010043.g010h0i36281@apollo.backplane.com> <20011231221601.A54679@nexus.root.com> <200201010636.g016aLC37133@apollo.backplane.com> <20020101.023054.77323162.imp@village.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "M. Warner Losh" wrote: > In message: <200201010636.g016aLC37133@apollo.backplane.com> > Matthew Dillon writes: > : I think that has been fixed. Try it. It doesn't lag for me. The > : turn-around echo of the keystroke should be pushed out instantly. > > Yes. Keep in mind that you only need to enable this when you have > unacked data. Otherwise, NODELAY doesn't buy you anything. > > I routinely go over non-NODELAY links and haven't seen a huge problem > except when modems were involved that liked to freak out. My experience agrees with David's. It makes sense to set TCP_NODELAY on the client, still, if the payload is still small enough after encryption. On the server side, it makes less sense. The server side TCP_NODELAY is the problem in this case, since it is the client, not the server, which is on the slow side of a USB dongle, FWIW. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 6:31: 4 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from artemis.drwilco.net (artemis.drwilco.net [209.167.6.62]) by hub.freebsd.org (Postfix) with ESMTP id 0F3FB37B42F for ; Tue, 1 Jan 2002 06:31:00 -0800 (PST) Received: from ceres.drwilco.net (docwilco.xs4all.nl [213.84.68.230]) by artemis.drwilco.net (8.11.6/8.11.6) with ESMTP id g01EUqR36334 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO) for ; Tue, 1 Jan 2002 09:30:55 -0500 (EST) (envelope-from drwilco@drwilco.net) Message-Id: <5.1.0.14.0.20020101153934.01de0038@mail.drwilco.net> X-Sender: lists@mail.drwilco.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 01 Jan 2002 15:39:41 +0100 To: freebsd-hackers@freebsd.org From: "Rogier R. Mulhuijzen" Subject: Re: Running out of bufferspace Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >[ root@hera:~ ] # truss mount -t smbfs //drwilco@ceres/D$ /ceres/d_drive/ >readlink("/etc/malloc.conf",0xbfbffa94,63) ERR#2 'No such file or >directory' --SNIP-- >fork() = 3331 (0xd03) >smbfs: can't get server address: syserr = No buffer space available >SIGNAL 20 >wait4(0xd03,0xbfbff088,0x0,0x0) = 3331 (0xd03) >exit(0x1) process exit, rval = 256 This of course is useless, since mount fork()s and mount_smbfs does the real stuff which isn't visible.... So here's the real deal. (After using my device once and not running out of bufferspace on that run) [ root@hera:~ ] # truss mount_smbfs //drwilco@ceres/C$ /ceres/c_drive/ ---SNIP--- ioctl(3,SIOCGIFADDR,0x8051440) = 0 (0x0) ioctl(3,SIOCGIFNETMASK,0x8051440) = 0 (0x0) ioctl(3,SIOCGIFFLAGS,0x8051460) ERR#6 'Device not configured' ioctl(3,SIOCGIFFLAGS,0x8051480) ERR#6 'Device not configured' ioctl(3,SIOCGIFFLAGS,0x80514a0) ERR#6 'Device not configured' ioctl(3,SIOCGIFFLAGS,0x80514c0) ERR#6 'Device not configured' ioctl(3,SIOCGIFFLAGS,0x80514e0) ERR#6 'Device not configured' close(3) = 0 (0x0) socket(0x2,0x2,0x0) = 3 (0x3) setsockopt(0x3,0xffff,0x20,0xbfbfeef8,0x4) = 0 (0x0) bind(0x3,{ AF_INET 192.168.0.1:0 },16) = 0 (0x0) sendto(0x3,0x8050010,0x32,0x0,0x804f024,0x10) = 50 (0x32) select(0x4,0xbfbfee8c,0xbfbfee0c,0xbfbfed8c,0xbfbfed74) = 0 (0x0) sendto(0x3,0x8050010,0x32,0x0,0x804f024,0x10) = 50 (0x32) select(0x4,0xbfbfee8c,0xbfbfee0c,0xbfbfed8c,0xbfbfed74) = 0 (0x0) sendto(0x3,0x8050010,0x32,0x0,0x804f024,0x10) = 50 (0x32) select(0x4,0xbfbfee8c,0xbfbfee0c,0xbfbfed8c,0xbfbfed74) = 0 (0x0) sendto(0x3,0x8050010,0x32,0x0,0x804f024,0x10) = 50 (0x32) select(0x4,0xbfbfee8c,0xbfbfee0c,0xbfbfed8c,0xbfbfed74) = 0 (0x0) close(3) = 0 (0x0) socket(0x2,0x2,0x0) = 3 (0x3) setsockopt(0x3,0xffff,0x20,0xbfbfeef8,0x4) = 0 (0x0) bind(0x3,{ AF_INET 192.168.0.1:0 },16) = 0 (0x0) sendto(0x3,0x8050010,0x32,0x0,0x804f024,0x10) = 50 (0x32) select(0x4,0xbfbfee8c,0xbfbfee0c,0xbfbfed8c,0xbfbfed74) = 0 (0x0) sendto(0x3,0x8050010,0x32,0x0,0x804f024,0x10) ERR#55 'No buffer space available' close(3) = 0 (0x0) mount_smbfs: write(2,0xbfbfe884,13) = 13 (0xd) can't get server addresswrite(2,0xbfbfe8a4,24) = 24 (0x18) : syserr = No buffer space available write(2,0xbfbfe874,37) = 37 (0x25) sigprocmask(0x1,0x2805cbe0,0xbfbff0ac) = 0 (0x0) sigprocmask(0x3,0x2805cbf0,0x0) = 0 (0x0) exit(0x1) process exit, rval = 256 So again... which buffer(s) could this be, and how do I check its/their status? Doc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 8:42:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from imo-m09.mx.aol.com (imo-m09.mx.aol.com [64.12.136.164]) by hub.freebsd.org (Postfix) with ESMTP id 835F637B41E for ; Tue, 1 Jan 2002 08:42:19 -0800 (PST) Received: from TD790@aol.com by imo-m09.mx.aol.com (mail_out_v31_r1.9.) id n.17a.19ef4b4 (3973); Tue, 1 Jan 2002 11:42:07 -0500 (EST) From: TD790@aol.com Message-ID: <17a.19ef4b4.296340df@aol.com> Date: Tue, 1 Jan 2002 11:42:07 EST Subject: Re: Running out of bufferspace To: drwilco@drwilco.net Cc: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: AOL 5.0 for Windows sub 138 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a message dated 12/31/01 11:52:47 PM Eastern Standard Time, drwilco@drwilco.net writes: > Thing is, my mbufs are fine, peak is 1/3rd of max. I also use sowriteable() > to check if it's safe to send, and sbspace() tells me I have the full 128K > sndbuf that I configured available. > > So I have 2 questions... > 1) which buffers are there that I can run out of here and where can I check > their status? > 2) Should I free() the uio I get from userspace after I have passed it to > the sosend? > Just note that "no buffers" often means that the queue is full, not that you are out of system buffers. You may be chasing a ghost. Dennis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 10:28:46 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 7D5A737B41E for ; Tue, 1 Jan 2002 10:28:44 -0800 (PST) Received: from caddis.yogotech.com (caddis.yogotech.com [206.127.123.130]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id LAA00832; Tue, 1 Jan 2002 11:28:08 -0700 (MST) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g01IS6354034; Tue, 1 Jan 2002 11:28:06 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15409.65462.3316.638713@caddis.yogotech.com> Date: Tue, 1 Jan 2002 11:28:06 -0700 To: Terry Lambert Cc: "Louis A. Mamakos" , Matthew Dillon , Julian Elischer , Mike Silbersack , Josef Karthauser , Tomas Svensson , freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD performing worse than Linux? In-Reply-To: <3C31B833.FF98C07@mindspring.com> References: <200112312327.fBVNRt719835@whizzo.transsys.com> <200201010043.g010h0i36281@apollo.backplane.com> <3C311AC9.99B5FC9C@mindspring.com> <200201010246.g012ko721041@whizzo.transsys.com> <3C31B833.FF98C07@mindspring.com> X-Mailer: VM 6.96 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Remember also that Matt recently shot Reno for performance > reasons Actually, it was turned back on less than 72 hours later, when he found/fixed a bug in NewReno. It was only off for a little bit, and only in -stable. , when compared to Linux, when he should probably have > simply cranked initial window size to 3 (Jacobson) and added > piggy-back ACKs (Mogul). See above. You need to pay more attention to what's going on. :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 11:14:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ws4-4.us4.outblaze.com (205-158-62-105.outblaze.com [205.158.62.105]) by hub.freebsd.org (Postfix) with SMTP id 9DCD037B429 for ; Tue, 1 Jan 2002 11:14:56 -0800 (PST) Received: (qmail 17625 invoked by uid 1001); 1 Jan 2002 19:14:56 -0000 Message-ID: <20020101191456.17623.qmail@linuxmail.org> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from ws4-4.us4.outblaze.com for [80.63.107.108] via web-mailer on Wed, 02 Jan 2002 03:14:56 +0800 From: "Rafter Man" To: freebsd-hackers@FreeBSD.org Date: Wed, 02 Jan 2002 03:14:56 +0800 Subject: The Hurd Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi About a month ago, I wrote this mailing-list asking if the FreeBSD developers had analysed and learned from the Solaris and Linux kernel. I got some good answers (thank you), but now I have one more question. From the 27/12 too the 29/12 I was at the CCC congress and attended a lecture called "Unix Redesigned". It was Neal H Walfield who talked about The Hurd: http://www.gnu.org/software/hurd http://www.debian.org/ports/hurd So my question is: Will FreeBSD take a good look at the Hurd? I know the last Hurd release was in 1997, but within this year a new release will be made. I don't expect FreeBSD to rewrite the whole kernel, but just too use some of the things or make a combination. Fx now users can have more id's and deamons run as "null". I know that this will take a lot of work, but I don't have the programming knowledge too make these changes myself, but when I am finished with my computer education I will financially support FreeBSD and ofcourse write some programs. Until then all I can do is make FreeBSD aware of other alternativs and thereby insuring that FreeBSD is in front (some of the hurds way of doing things are the way of the future, but overall FreeBSD is still better, but can learn a few thing from the hurd). Best regards Rafter PS: If a more badly written version of this mail have already been send, then i apologize for that. -- Get your free email from www.linuxmail.org Powered by Outblaze To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 11:33:42 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by hub.freebsd.org (Postfix) with ESMTP id 0BAF937B41B; Tue, 1 Jan 2002 11:33:36 -0800 (PST) Received: from fwd03.sul.t-online.de by mailout03.sul.t-online.de with smtp id 16LUfE-0005Yr-0D; Tue, 01 Jan 2002 20:33:32 +0100 Received: from Gatekeeper.FreeBSD.org (520047440004-0001@[217.227.250.3]) by fmrl03.sul.t-online.com with esmtp id 16LUf9-2CVxMuC; Tue, 1 Jan 2002 20:33:27 +0100 Received: from StefanEsser.FreeBSD.org (StefanEsser [10.0.0.1]) by Gatekeeper.FreeBSD.org (Postfix) with ESMTP id B156C5F14; Tue, 1 Jan 2002 20:33:51 +0100 (CET) Received: by StefanEsser.FreeBSD.org (Postfix, from userid 200) id 519A12805; Tue, 1 Jan 2002 20:36:15 +0100 (CET) Date: Tue, 1 Jan 2002 20:36:14 +0100 From: Stefan Esser To: Michael Scheidell Cc: hackers@FreeBSD.org, deraison@cvs.nessus.org, Stefan Esser Subject: Re: Re: Re: userland program panics freebsd 4.3 Message-ID: <20020101203614.A11265@StefanEsser.FreeBSD.org> Reply-To: Stefan Esser Mail-Followup-To: Stefan Esser , Michael Scheidell , hackers@FreeBSD.org, deraison@cvs.nessus.org References: <20011231165828.D2301@StefanEsser.FreeBSD.org> <200112311631.fBVGVtZ45017@scanner.secnap.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200112311631.fBVGVtZ45017@scanner.secnap.net> User-Agent: Mutt/1.3.21i X-Sender: 520047440004-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2001-12-31 11:31 -0500, Michael Scheidell wrote: > > (The second method, used only if there is no PROCFS, is to call > > kill(PID, 0), which will check if a signal could be delivered. > > That method should probably be prefered to the reading of procfs > > anyway, since the latter takes 5 system calls instead of a single > > one in the case of kill() ...) > > would this patch fix it on the nessus side?, and it SEEMS to be faster. > also, several 'core dumps' listed on nessusd.messages werein fact programs > that also were listed as finished. > @@ -898,6 +898,9 @@ > if(!pid) > return 0; > > +#ifndef FREEBSD > +## panics FREEBSD 4.3 and 4.4, might be fixed in FREEBSD 4.5 > + > /* > * First method : attempt to open /proc/ > * (we first check that we can open /proc/ourpid because > @@ -917,6 +920,7 @@ > else return 0; > } > > +#endif Yes, this will fix the port. But I'm not sure, whether the code that will be used instead of reading /proc/ could not be improved: /* * Second method, we attempt to use kill. But first, we * wait() for the process, just in case it's a zombie. */ for(i=0,ret=1;(i<100) && (ret > 0);i++) ret = waitpid(pid, NULL, WNOHANG); return kill(pid, 0) == 0; Instead of the for loop, I'd rather have: while(waitpid(pid, NULL, WNOHANG) == EINTR) /* do nothing */; return kill(pid, 0) == 0; That way only a return code of EINTR will casue a retry of waitpid(), while all other values rather indicate that waitpid() can not succeed, no matter it is called with the same parameter set. In fact, I'm not sure that the waitpid() call is required at all, since there are places where children are being waited for ... (And, looking at uses of waitpid(), I think some other loops should also be changed as shown above, see for example wait_for_children() in file nessusd/pluginlaunch.c). My suggested patch to nessusd/utils.c (combining the #ifndef __FreeBSD__ and my change to the waitpid() loop, diff against nessus-1.1.11): --- nessusd/utils.c~ Mon Dec 17 16:11:42 2001 +++ nessusd/utils.c Tue Jan 1 19:48:27 2002 @@ -887,10 +887,10 @@ process_alive(pid) pid_t pid; { +#ifndef __FreeBSD__ char procname[255]; DIR * dir; - int ret; - int i; +#endif /* * Invalid argument @@ -898,6 +898,7 @@ if(!pid) return 0; +#ifndef __FreeBSD__ /* * First method : attempt to open /proc/ * (we first check that we can open /proc/ourpid because @@ -916,13 +917,14 @@ } else return 0; } +#endif /* * Second method, we attempt to use kill. But first, we * wait() for the process, just in case it's a zombie. */ - for(i=0,ret=1;(i<100) && (ret > 0);i++) - ret = waitpid(pid, NULL, WNOHANG); + while(waitpid(pid, NULL, WNOHANG) == EINTR) + /* do nothing */; return kill(pid, 0) == 0; } (Note: This code has not been tested in a large network, but just in my home LAN consisting of two machines ...) Regards, STefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 11:58:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by hub.freebsd.org (Postfix) with ESMTP id 25C5D37B423; Tue, 1 Jan 2002 11:58:47 -0800 (PST) Received: from host217-36-17-56.in-addr.btopenworld.com ([217.36.17.56] helo=jrochester.org) by protactinium.btinternet.com with esmtp (Exim 3.22 #8) id 16LV3d-0004tA-00; Tue, 01 Jan 2002 19:58:45 +0000 Message-ID: <3C32150C.7000504@jrochester.org> Date: Tue, 01 Jan 2002 19:59:08 +0000 From: John Rochester User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011128 X-Accept-Language: en-us MIME-Version: 1.0 To: Stefan Esser Cc: hackers@FreeBSD.ORG Subject: Re: userland program panics freebsd 4.3 References: <20011231165828.D2301@StefanEsser.FreeBSD.org> <200112311631.fBVGVtZ45017@scanner.secnap.net> <20020101203614.A11265@StefanEsser.FreeBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Stefan Esser wrote: >Instead of the for loop, I'd rather have: > > while(waitpid(pid, NULL, WNOHANG) == EINTR) > This should be while (waitpid(pid, NULL, WNOHANG) < 0 && errno == EINTR) > > /* do nothing */; > > return kill(pid, 0) == 0; > -- John Rochester Software Architect, Merus Software Ltd. Tel: +44 7870 174690 http://merus.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 12:31:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from energyhq.homeip.net (213-97-200-73.uc.nombres.ttd.es [213.97.200.73]) by hub.freebsd.org (Postfix) with ESMTP id ECB7A37B421 for ; Tue, 1 Jan 2002 12:31:33 -0800 (PST) Received: from there (swordfish.energyhq.org [192.168.0.1]) by energyhq.homeip.net (Postfix) with SMTP id 65F0723EC1; Tue, 1 Jan 2002 21:31:35 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" From: Miguel Mendez Organization: Energy HQ To: "Rafter Man" , freebsd-hackers@FreeBSD.org Subject: Re: The Hurd Date: Tue, 1 Jan 2002 21:31:34 +0100 X-Mailer: KMail [version 1.3.2] References: <20020101191456.17623.qmail@linuxmail.org> In-Reply-To: <20020101191456.17623.qmail@linuxmail.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020101203135.65F0723EC1@energyhq.homeip.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday 01 January 2002 20:14, Rafter Man wrote: > So my question is: Will FreeBSD take a good look at the Hurd? I tried the Hurd in 1999 and wasn't very impressed, just downloaded the H2 ISO but haven't tried it yet. The only thing that makes the Hurd look like Unix is the POSIX compat layer. The advantages of a microkernel vs (pseudo) monolothic are well known, as well as disadvantages. Of course I can't speak for the FreeBSD developers but IMHO there's very little, if anything, that can be taken from Hurd and imported into FreeBSD (or Unix in general). Yes, you can ran a BSD server on top of Mach (MacOS X) but it's not the same as Hurd does. I would find it far more interesting to take some Plan9 ideas than the ones that could be taken from Hurd. It seems like the only reason that project is alive is to satisfy RMS' ego :-) Err, did I say that? Nervermind. Cheers, -- Miguel Mendez - flynn@energyhq.homeip.net EnergyHQ :: http://energyhq.homeip.net FreeBSD - The power to serve! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 12:47:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id E124437B420 for ; Tue, 1 Jan 2002 12:47:54 -0800 (PST) Received: (from olli@localhost) by lurza.secnetix.de (8.11.6/8.11.6) id g01KltU16425; Tue, 1 Jan 2002 21:47:55 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Date: Tue, 1 Jan 2002 21:47:55 +0100 (CET) Message-Id: <200201012047.g01KltU16425@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG Reply-To: freebsd-hackers@FreeBSD.ORG Subject: Re: The Hurd In-Reply-To: <20020101191456.17623.qmail@linuxmail.org> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.4-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Sorry for jumping in here. I'm not really a FreeBSD developer, but I've been following the project for quite a long time. Rafter Man wrote: > [Whether FreeBSD does or will take ideas and features > from Hurd] I think the FreeBSD developers are well aware of useful things in many other operating systems. In today's world, you cannot successfully write a general-purpose operating system without looking at the other players. This includes the guys from the UNIX camp (Solaris, Linux), but also others, even Windows. (If everything else fails, Windows can at least be used as an example of how to _not_ do things.) If Hurd has something useful to share, then why not? Wether a certain feature will be adopted depends on a lot of things, though. First of all, there has to be someone willing to learn and spend time writing code. This is probably the biggest problem for a free open-source project: manpower. And I don't mean people who want to "code something up for fun", but people who are willing to work hard and do things that are not necessarily fun, such as reading dusty papers, learn how to use existing interfaces, reading and adhering to style guides that don't match your own style, writing documentation (manpages) etc. Just out of curiosity: Which particular features of Hurd would you like to see incorporated in FreeBSD? If you can name them, they could be discussed, and maybe someone even picks them up and actually does something. Another possibility is to file a PR (feature request), but you should only do that if you're really sure that FreeBSD does not already have the feature in question or something equivalent. > Fx now users can have more id's and deamons run as "null". I'm sorry I don't quite understand. If you mean that the number of processes that a user is allowed to run can be limited: You can already do that in FreeBSD. You might want to read the login.conf(5) manpage, and particularly the "resource limits" section. Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 12:54:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gateway.max-t.com (229.124.18.216.gt-est.net [216.18.124.229]) by hub.freebsd.org (Postfix) with ESMTP id 9CCEA37B417 for ; Tue, 1 Jan 2002 12:54:30 -0800 (PST) Received: from [192.168.1.146] (helo=vangogh.max-t.internal) by gateway.max-t.com with esmtp (Exim 3.32 #3) id 16LVwb-0007IR-00; Tue, 01 Jan 2002 15:55:33 -0500 Date: Tue, 1 Jan 2002 15:50:10 -0500 (EST) From: "Ashutosh S. Rajekar" To: Rafter Man Cc: Subject: Re: The Hurd In-Reply-To: <20020101191456.17623.qmail@linuxmail.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Please wrap your postings at 72 characters. Hurd, as I know, derived some of it's code from the Mach program. And so does FreeBSD with it's VM (and I don't know what else). I don't see why FreeBSD should support Hurd, etc. Hurd is a micro-kernel based system, and quite a significant portion of the code would need to be rewritten to make portions of FreeBSD and Hurd to be intermixed. Leave aside performance improvements and stability issues. I also cannot see the logic in continuation of the Hurd - we don't want more OSes or kernels or bells and whistles - we just want better stuff; ones that will keep pace with the improvements in hardware capabilities. Like FreeBSD and Linux. Also, licensing is an issue - majority of the the Hurd source code carries the GPL (and the CMU and Utah licenses too, if I'm not wrong). GPL conflicts with FreeBSD's artistic license. And finally, IIRC, there is already a project called xMach, which is AFAIK a derivative of both FreeBSD and Mach (somebody please correct me). On Wed, 2 Jan 2002, Rafter Man wrote: > Hi > > About a month ago, I wrote this mailing-list asking if the FreeBSD developers had analysed and learned from the Solaris and Linux kernel. I got some good answers (thank you), but now I have one more question. > >From the 27/12 too the 29/12 I was at the CCC congress and attended a lecture called "Unix Redesigned". It was Neal H Walfield who talked about The Hurd: > http://www.gnu.org/software/hurd > http://www.debian.org/ports/hurd > So my question is: Will FreeBSD take a good look at the Hurd? > I know the last Hurd release was in 1997, but within this year a new release will be made. > I don't expect FreeBSD to rewrite the whole kernel, but just too use some of the things or make a combination. Fx now users can have more id's and deamons run as "null". > I know that this will take a lot of work, but I don't have the programming knowledge too make these changes myself, but when I am finished with my computer education I will financially support FreeBSD and ofcourse write some programs. Until then all I can do is make FreeBSD aware of other alternativs and thereby insuring that FreeBSD is in front (some of the hurds way of doing things are the way of the future, but overall FreeBSD is still better, but can learn a few thing from the hurd). > > Best regards > Rafter > > PS: If a more badly written version of this mail have already been send, then i apologize for that. > -- -ASR --------------------------------------------------------------------- ("`-''-/").___..--''"`-._ (\ Maximum Throughput Inc. `6_ 6 ) `-. ( ).`-.__.`) Montreal, Canada. (_Y_.)' ._ ) `._ `. ``-..-' mailto: asr@max-t.com _..`--'_..-_/ /--'_.' ,' http://www.rajekar.org (il),-'' (li),' ((!.-' http://www.max-t.com --------------------------------------------------------------------- You will be recognized and honored as a community leader. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 13:20: 9 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from artemis.drwilco.net (artemis.drwilco.net [209.167.6.62]) by hub.freebsd.org (Postfix) with ESMTP id 99BEA37B431 for ; Tue, 1 Jan 2002 13:19:51 -0800 (PST) Received: from ceres.drwilco.net (docwilco.xs4all.nl [213.84.68.230]) by artemis.drwilco.net (8.11.6/8.11.6) with ESMTP id g01LJgR76710 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO); Tue, 1 Jan 2002 16:19:45 -0500 (EST) (envelope-from drwilco@drwilco.net) Message-Id: <5.1.0.14.0.20020101222654.01f413f0@mail.drwilco.net> X-Sender: lists@mail.drwilco.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 01 Jan 2002 22:28:31 +0100 To: TD790@aol.com From: "Rogier R. Mulhuijzen" Subject: Re: Running out of bufferspace Cc: hackers@FreeBSD.ORG In-Reply-To: <17a.19ef4b4.296340df@aol.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 11:42 1-1-2002 -0500, TD790@aol.com wrote: >Just note that "no buffers" often means that the queue is full, not that you >are out of system buffers. You may be chasing a ghost. Well a queue should be cleaned shouldn't it? The mount_smbfs fails even hours after I run the stresstest on my device. And which queue exactly are we talking about, and where/how do I check its status? Thanx, Doc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 13:32:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from harrier.prod.itd.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by hub.freebsd.org (Postfix) with ESMTP id 3264737B425 for ; Tue, 1 Jan 2002 13:32:35 -0800 (PST) Received: from pool0644.cvx22-bradley.dialup.earthlink.net ([209.179.200.134] helo=mindspring.com) by harrier.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16LWWN-0005xo-00; Tue, 01 Jan 2002 13:32:32 -0800 Message-ID: <3C322AD8.FF22D765@mindspring.com> Date: Tue, 01 Jan 2002 13:32:08 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Rafter Man Cc: freebsd-hackers@FreeBSD.org Subject: Re: The Hurd References: <20020101191456.17623.qmail@linuxmail.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Rafter Man wrote: > [ ... ] but now I have one more question. > From the 27/12 too the 29/12 I was at the CCC congress and attended > a lecture called "Unix Redesigned". It was Neal H Walfield who talked > about The Hurd: [ ... ] > So my question is: Will FreeBSD take a good look at the Hurd? Your focus appears to be on security, so you should really look at the POSIX 1e effors currently underway in the FreeBSD community. However, I'll try to be more general... Hurd is a multiserver running on top of MACH. FreeBSD already has an unencumbered single server version that runs on top of MACH, and MAC OS X is already a multiserver implementation. As a general comment, MACH is a dead horse. The problem is that it contains significantly more protection domain crossing than it should in order to communicate between OS components, and for each crossing, you pay a hefty penalty. During develeopement, it would be useful to have the ability to seperate the component you are developing into its own address space, but really, Chorus is a better model. Though 4G RAM machines are increasingly common, statistical memory protection approaches are still quite valid for doing this type of work on 64 bit architectures: even with a full 4G of RAM, program only have a 1 in 4 billion chance of finding a valid byte of memory through random accident. So despite the fact that I am quite impressed with MAC OS X, it is really somewhat of a blind alley, according to current work in CS. I think a much better project to learn from would be "Choices": http://choices.cs.uiuc.edu/ There are also several lesser known capabilities-based OS projects (the license on them is commercially restricted), and they are capable of dealing with the Capabilities Security Model bootstrap process, and are self checkpointing to the extent that you could "have your dog kick out the plug, plug the machine in again, and be up and running where you were in a matter of seconds". At one point in time, John Dyson, the original author of the FreeBSD unified VM and buffer cache code (not to belittle the excellent work done by Matt, Alfred, and others) was talking about a project to write a drop-in-replacement SMP kernel that was designed for SMP from the ground up. I personally never joined this effort, because John wanted to "cop out" on doing kernel preemption, which is necessary for hard real time, and for high granularity SMP and node migration of processes (for example, in a NUMA cluster, rather than an Intel model SMP system). I think that many of us are aware and up to date on the most recent research. In fact, I would say that there are a fair number of us who believe that FreeBSD is about a decade and a half or more behind the state of the art; but since there is not an infinite amount of time, and we have day jobs, we can't "fix everything" over night. There are some lessons that can be taken from HURD, but there are other projects and products which have already taken those lessons, and pushed them much farther than HURD has considered pushing them. It is much better to learn from them, instead, rather than learning the same lessons from HURD directly, and reinventing the wheel as a result. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 13:42:21 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from espresso.q9media.com (espresso.q9media.com [216.254.138.122]) by hub.freebsd.org (Postfix) with ESMTP id 6F1B437B428 for ; Tue, 1 Jan 2002 13:42:18 -0800 (PST) Received: (from mike@localhost) by espresso.q9media.com (8.11.6/8.11.6) id g01Ldvx65021; Tue, 1 Jan 2002 16:39:57 -0500 (EST) (envelope-from mike) Date: Tue, 1 Jan 2002 16:39:57 -0500 From: Mike Barcroft To: "Ashutosh S. Rajekar" Cc: Rafter Man , freebsd-hackers@FreeBSD.ORG Subject: Re: The Hurd Message-ID: <20020101163957.B64468@espresso.q9media.com> References: <20020101191456.17623.qmail@linuxmail.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from asr@max-t.com on Tue, Jan 01, 2002 at 03:50:10PM -0500 Organization: The FreeBSD Project Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ashutosh S. Rajekar writes: [...] > GPL conflicts with FreeBSD's artistic license. [...] FreeBSD is actually licensed under a much less restrictive license, the BSD license. See any source file out of src/gnu for details. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 13:46:48 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id CCE7137B41B for ; Tue, 1 Jan 2002 13:46:44 -0800 (PST) Received: from pool0644.cvx22-bradley.dialup.earthlink.net ([209.179.200.134] helo=mindspring.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16LWjz-0007jB-00; Tue, 01 Jan 2002 13:46:35 -0800 Message-ID: <3C322E3E.4B4948E8@mindspring.com> Date: Tue, 01 Jan 2002 13:46:38 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Rafter Man , freebsd-hackers@FreeBSD.org Subject: Re: The Hurd References: <20020101191456.17623.qmail@linuxmail.org> <3C322AD8.FF22D765@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: [ ... ] PS: See also: http://www.eros-os.org/ http://icl.cs.utk.edu/publications/tech_reports/2000/ut-cs-00-445.pdf http://www2.tunes.org/Review/OSes.html -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jan 1 13:56:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from spitfire.velocet.net (spitfire.velocet.net [216.138.223.227]) by hub.freebsd.org (Postfix) with ESMTP id DBF1F37B419 for ; Tue, 1 Jan 2002 13:56:39 -0800 (PST) Received: from nomad.tor.lets.net (H74.C220.tor.velocet.net [216.138.220.74]) by spitfire.velocet.net (Postfix) with SMTP id C81AE44AA02 for ; Tue, 1 Jan 2002 16:56:37 -0500 (EST) Received: (qmail 80927 invoked by uid 1001); 1 Jan 2002 21:51:06 -0000 Date: Tue, 1 Jan 2002 16:51:06 -0500 From: Steve Shorter To: freebsd-hackers@freebsd.org Subject: kernel panic on boot with 4G RAM Message-ID: <20020101165106.A80908@nomad.lets.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Howdy! I need an NFS server with 4G ram. When I boot a 4.5-PRE kernel it panics during the boot process, not always at the same place though. My first instinct is bad hardware because of the lack of consistency in panic location, however I was wondering if there were some issues with kernel tuning for machines with large memory that I should be aware of. This machine boots OK with 3G or less. Here is a trace and panic with kernel config etc... So... hardware or kernel config or kernel bug??? Your help is greatly appreciated. -steve 12: page fault while in kernel mode fault virtual address = 0x45d3 fault code = supervisor write, page not present instruction pointer = 0x8:0xc01f5688 stack pointer = 0x10:0xefaf7e84 frame pointer = 0x10:0xefaf7e88 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 6 (sh) interrupt mask = net bio cam kernel: type 12 trap, code=0 Stopped at vm_page_unqueue_nowakeup+0x40: decl 0(%eax) db> trace vm_page_unqueue_nowakeup(c179ce84,e77245e0,e7727e80,80bb000,efaf9000) at vm_page_unqueue_nowakeup+0x40 vm_fault(e7727e80,80bb000,3,8,e77245e0) at vm_fault+0x236 trap_pfault(efaf7fa8,1,80bbc4c,0,80bc1d8) at trap_pfault+0x96 trap(2f,2f,2f,80c1000,80bc1d8) at trap+0x1d3 calltrap() at calltrap+0x11 --- trap 0xc, eip = 0x8050dfa, esp = 0xbfbffbdc, ebp = 0xbfbffc04 --- and another panic: vm_page_remove(): page not found in hash Debugger("panic") Stopped at Debugger+0x34: movb $0,in_Debugger.426 db> trace Debugger(c022419b) at Debugger+0x34 panic(c0237de0,c17a64c0,efb03e20,c01f5bf4,c17a64c0) at panic+0x70 vm_page_remove(c17a64c0,c17a64c0) at vm_page_remove+0x73 vm_page_free_toq(c17a64c0) at vm_page_free_toq+0x90 vm_object_collapse(c026cf00) at vm_object_collapse+0x198 vm_object_deallocate(c026c900) at vm_object_deallocate+0x170 vm_map_entry_delete(e7727d00,c0265d10,e7727d00,bfc00000,0) at vm_map_entry_delete+0x33 vm_map_delete(e7727d00,0,bfc00000,e7727d00,1) at vm_map_delete+0x171 vm_map_remove(e7727d00,0,bfc00000,e7727d6c,0,bfc00000) at vm_map_remove+0x6a exit1(e77242a0,0,efb03fa0,c020e1da,e77242a0) at exit1+0x220 exit1(e77242a0,efb03f80,ffffffff,0,8072968) at exit1 syscall2(2f,2f,2f,8072968,0) at syscall2+0x166 Xint0x80_syscall() at Xint0x80_syscall+0x25 These are boot up messages Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.5-PRERELEASE #0: Mon Dec 31 13:33:03 EST 2001 root@homer.lets.net:/usr/local/4.5/src/sys/compile/NFS Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 797475848 Hz CPU: Pentium III/Pentium III Xeon/Celeron (797.48-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x387fbff real memory = 4227858432 (4128768K bytes) avail memory = 4120342528 (4023772K bytes) Preloaded elf kernel "kernel.4.5.test" at 0xc02bc000. Pentium Pro MTRR support enabled Using $PIR table, 10 entries at 0xc00f51e0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pci0: at 1.0 irq 0 fxp0: port 0xd400-0xd43f mem 0xfe900000-0xfe9fffff,0xfeafe000-0xfeafefff irq 10 at device 4.0 on pci0 fxp0: Ethernet address 00:e0:81:01:bf:ca inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: port 0xd000-0xd03f mem 0xfe700000-0xfe7fffff,0xfeafd000-0xfeafdfff irq 9 at device 5.0 on pci0 fxp1: Ethernet address 00:e0:81:01:bf:cb inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 15.0 on pci0 isa0: on isab0 pci0: at 15.1 pci0: at 15.2 irq 0 pcib1: on motherboard pci1: on pcib1 sym0: <1010-33> port 0xe400-0xe4ff mem 0xfebd8000-0xfebd9fff,0xfebe0000-0xfebe03ff irq 15 at device 6.0 on pci1 sym0: Symbios NVRAM, ID 7, Fast-80, LVD, parity checking sym0: open drain IRQ line driver, using on-chip SRAM sym0: using LOAD/STORE-based firmware. sym0: handling phase mismatch from SCRIPTS. sym1: <1010-33> port 0xe800-0xe8ff mem 0xfebf0000-0xfebf1fff,0xfebf8000-0xfebf83ff irq 11 at device 6.1 on pci1 sym1: Symbios NVRAM, ID 7, Fast-80, LVD, parity checking sym1: open drain IRQ line driver, using on-chip SRAM sym1: using LOAD/STORE-based firmware. sym1: handling phase mismatch from SCRIPTS. orm0: = Investors
 <= /caption>
=

Investm= ent Special
Toni= ght's Feature Company

ShareCom, Inc.
(OTC= BB: SHCC)

Current Price: $0.0154

52 Week High: $2.49
52 Week Low: $0.009

      Why SHCC?
  • SHCC has established bus= iness relationships with FEMA, the American Red Cross, AAA, NOAA, and more=

  • SHCC is cu= rrently booking revenues of $45,000 per month and projects revenues = of $13 million for 2002.
  • Partnerships and= market advantage fuel exponential growth for SHCC.
  • The Time is NOW a= t Sharecom

    The Federal Emergency Management Agency (FEMA)= , the National Weather Service (NWS), the Red Cross and = AAA are a but a few of the agencies and organizations with whom = ShareCom Inc. has forged alliances to ensure clear competitive a= dvantage for its product lines. The past 10 years have seen a dram= atic increase in severe weather conditions=FFFFFF85and with continued glob= al warming these patterns will exacerbate. Prompted by FEMA and NWS aggres= sive programs, demand for the Company=FFFFFF92s NOAA Weather Radio will= soar. Today 7% of American homes possess a NOAA radio=FFFFFF85 = the national goal is 100%. 

    ShareCom=FFFFFF92s ww= w.WeatherRadios.com is the site for consumers to purchase the Company=FF= FFFF92s superior product at a significant discount. SHCC's revenue flow ra= te is at $45,000/month and rapidly growing. The Company will realiz= e a profit this year and plans to triple it next.. SHCC's market dominance= in this growing "bread and butter", niche business makes it an = interesting acquisition candidate and a compelling investment.

    This Just Out: SHCC NEWS

    =
     

    ShareCom, Inc. Ships the First NOAA = Weather Radio Featuring Instant Localized Setup

    PALATINE, Ill.--(BUSINESS WIRE)--Dec. 11, 2001--ShareCom, In= c.(TM), the market leader in designing and manufacturing NOAA (National Oceanographic and Atmospheric Administration) Weather Radi= o and Disaster Readiness electronics products, today announced availabilit= y of its WRP-500 Broadcaster(TM) NOAA Weather Radio, with an SRP of= $149.99, available for purchase via its ecommerce web site and through se= lect retailers around the country. Like all ShareCom products, the WRP-500= features a streamlined and fashionable design, coupled with strong price = performance.

    ShareCom manufactures products which are expressly d= esigned to support the in-place NOAA Weather Network - an always on (24/7)= broadcast network that covers 95% of the US. This ``early warning'= ' network provides general-purpose weather information and alerts for haza= rdous weather or disaster warnings for people throughout the US.

    = The Federal Government, The Americ= an Red Cross and numerous state and local government agencies a= re now emphasizing the need for the NOAA Weather Radio network, especially= since the September 11th tragedy. A NOAA Weather Radio is now consi= dered as important as having a smoke detector in a home, school or busines= s.

    ``Our market research in= dicated a strong need in the marketplace for a NOAA Weather Radio that loo= ks good in someone's home or office, but that has real ease of use built i= nto the overall design,'' said Brad Nordling the CEO of ShareCom, Inc. ``O= ne of the most requested feature enhancements from our consumers has been = to provide functionality that enables them to setup a radio right out of t= he box, with no cumbersome interface to deal with. The WRP-500 Broadcaster= addresses this need by incorporating our Graphical Alert Technology(TM) s= pecialty software - our customers now have the ability to easily config= ure their radios in a matter of seconds using a functional scroll down men= u.''

    Stay tun= ed for more announcements to come

More Reasons to Consider Buyin= g SHCC

1.= WeatherRadios.com has been awar= ded a National Partnership with the Federal Emergency Management Agency (F= EMA) to increase the use of Weather Radios country wide through a = program called Project Impact. There are 2,600 Project Impact communities = in the U.S. The FEMA web site lists WeatherRadios.com as a national partne= r providing a banner and link to the WeatherRadios.com site. The FEMA site= receives over 100,000 visitors per day. 

2. The Nat= ional Oceanic and Aerospace Administration (NOAA) has WeatherRadio= s.com listed first on their web site, telling people were to purchase a NO= AA Weather Radio. 

3. The National Weather Serv= ice (NWS) has offered to promote corporate sponsorships to the Wea= therRadios.com site through recognition and media support.  &nbs= p;

4. Local American Red Cross Chapters will promo= te NOAA Weather Radios through WeatherRadios.com in an exchange fo= r a $5.00 donation per radio sold. 

5. The Chicago= Area AAA will feature SHCC's 2WayTalk.com on its web site offering exclusive discounts on Weather Radios,= and FRS Family Radios. 2WayTalk.com will also be listed in the AAA magazi= ne called "Home and Away". 

6. The Federation of Manufactured Home Owners of Florid= a (FMO) has entered into a one year agreement that will increase t= he sale of Weather Radios from the WeatherRadios.com site. Mailings and we= b site links will offer a group discount to members and also pay a rebate = to the organization for every radio sold. 

7. The Owner - Operat= or Independent Drivers Association (OOIDA)
has begun to promote th= e discount that is offered through the WeatherRadios.com site. Magazine ar= ticles, mailings, and web site links will offer a group discount to member= s and also pay a rebate to the organization for every radio sold. This agr= eement will run for one year. 

     NOAA Weather Radios automatically alert people of impending severe weather conditions &= quot;24/7". This is especially critical for families while sleeping. = These devices are fast becoming recognized as essential and pote= ntially life saving for use in homes, businesses, and critical care fa= cilities.

The National Weather Service (NWS)<= /font> has stated that t= here has been an increase in severe weather in the last 10 years and this = trend is expected to continue. NWS has a published goal for NOAA Weathe= r Radios to be in every home within the next 10 years. Currentl= y, approximately just 7% of homes have this device. This being said= , we can expect a tremendous increase in the presence and sale of weath= er radios over the coming years. The NWS, NOAA, the Federal Emergency = Management Agency (FEMA) and other government agencies have an aggressive = education and funding effort to reach the 100% goal.

New technology called Specific Area Mess= age Encoding (SAME) was introduced in the mid 90s. It allows users to set = an alarm only for their specific geographic area. This feature is expected= to make this tool commonplace in homes alerting families of weathe= r conditions that pose an immediate danger.

Additionally, 2Wa= yTalk.com will continue to focus on Internet users who are outdoor enthusi= asts. The market continues to be strong and growing. FRS Family Radios are= now becoming a popular family item on vacations, ski trips, camping, and = biking events. They are used for a wide variety of purposes, from staying = in touch with children playing in the neighborhood, to coordinating soccer= tournaments and antique auctions. 

A Final Word About SHCC

SHCC is currently= booking $45,000/ month and is conservatively projecting earnings next yea= r of $1.3 million on revenues of $13 million. Unlike most e-commerc= e ventures, ShareCom's marketing "burn rate" is very modest. The= Company forecasts revenues of $32.5 million the following year, in= creasing profitability to earn $4.6 million. Given its impressive relation= ships and the rapidly growing market for its product, SHCC's share pric= e of just 1.6 cents makes it a compelling play for the astute investor. 
DISCLAIMER: 
Inform= ation within this email contains "forward looking statements" wi= thin the meaning of Section 27A of the Securities Act of 1933 and Section = 21B of the Securities Exchange Act of 1934. Any statements that express or= involve discussions with respect to predictions, expectations, beliefs, p= lans, projections, objectives, goals, assumptions or future events or perf= ormance are not statements of historical fact and may be "forward loo= king statements."

Forward looking statements are based on ex= pectations, estimates and projections at the time the statements are made = that involve a number of risks and uncertainties which could cause ac= tual results or events to differ materially from those presently anticipat= ed. Forward looking statements in this action may be identified through th= e use of words such as "projects", "foresee", =FFFFFF9= 3expects=FFFFFF92=FFFFFF94, =FFFFFF93will,=FFFFFF94  =FFFFFF93anticip= ates,=FFFFFF94 =FFFFFF93estimates,=FFFFFF94 =FFFFFF93believes,=FFFFFF94 &q= uot;understands" or that by statements indicating certain actions =FF= FFFF93may,=FFFFFF94 =FFFFFF93could,=FFFFFF94 or =FFFFFF93might=FFFFFF94 oc= cur.  All information provided within this email pertaining to invest= ing, stocks, securities must be understood as information provided and not= investment advice. Investment News Alert advises all readers and subscrib= ers to seek advice from a registered professional securities represen= tative before deciding to trade in stocks featured within this email. = ; None of the material within this report shall be construed as any kind o= f investment advice.

In compliance with the Securities Act of 193= 3, Section17(b), Investment Special discloses the receipt of $30,000 cash = from a third party for the publication of this report and additional  services related to SHCC. Be awa= re of an inherent conflict of interest resulting from such compensation.&n= bsp; All factual information in this report was gathered from public = sources, including but not limited to SEC filings, Company Press Releases,= and Market Guide.  Investme= nt Special  believes this information to be reliable but can make no = guarantee as to its accuracy or completeness. Use of the material within t= his email constitutes your acceptance of these terms.

To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 5: 2:10 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id E810937B41A for ; Thu, 3 Jan 2002 05:02:06 -0800 (PST) Received: (from olli@localhost) by lurza.secnetix.de (8.11.6/8.11.6) id g03D29t14346; Thu, 3 Jan 2002 14:02:09 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Date: Thu, 3 Jan 2002 14:02:09 +0100 (CET) Message-Id: <200201031302.g03D29t14346@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, Jos Backus Reply-To: freebsd-hackers@FreeBSD.ORG, Jos Backus Subject: Re: Solaris /usr/proc/bin/pstack functionality? In-Reply-To: <20020103072813.GB14656@lizzy.bugworks.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.4-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jos Backus wrote: > ----- Forwarded message from Justin Erenkrantz ----- > +1. =) I've talked to the FreeBSD people and they just laugh > maniacally when I ask for a truss that follows children. AIUI, > NetBSD has this, so it is possible to port these changes over, > but it requires an overhaul to procfs from what I've been told. > > FreeBSD has a long way to get the stellar debugging capabilities > of Solaris. -- justin I think that the output from FreeBSD's truss is pretty pathetic and unusable. ktrace is somewhat better. Recently I discovered that there is a version of strace in our ports collection. I installed it and noticed that its output is a lot better. Since then I use strace exclusively for debugging and I'm very happy with it. strace follows children when you use the -f option (this is similar to ktrace's -i option). Regards Oliver PS: I tried strace under -stable only. I don't know if it works under -current as well. -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 5:48:10 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mars-gw.morning.ru (ns.morning.ru [195.161.98.5]) by hub.freebsd.org (Postfix) with ESMTP id EFFAA37B417 for ; Thu, 3 Jan 2002 05:48:02 -0800 (PST) Received: from NDNM ([195.161.98.250]) by mars-gw.morning.ru (8.11.5/8.11.5) with ESMTP id g03Dls796211; Thu, 3 Jan 2002 20:47:55 +0700 (KRAT) Date: Thu, 3 Jan 2002 20:51:14 +0700 From: Igor M Podlesny X-Mailer: The Bat! (v1.53d) Business Organization: Morning Network X-Priority: 3 (Normal) Message-ID: <154516933330.20020103205114@morning.ru> To: "Crist J . Clark" Cc: cjclark@alum.mit.edu, freebsd-hackers@FreeBSD.ORG Subject: Re[2]: /etc/rc.firewall and /sys/netinet/ip_input.c are doing the same thing In-Reply-To: <20011226101649.A2090@blossom.cjclark.org> References: <107466819110.20011224191009@morning.ru> <20011225151328.A136@gohan.cjclark.org> <18957829724.20011226144634@morning.ru> <20011226101649.A2090@blossom.cjclark.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello! > On Wed, Dec 26, 2001 at 02:46:34PM +0700, Igor M Podlesny wrote: >> > On Mon, Dec 24, 2001 at 07:10:09PM +0700, Igor M Podlesny wrote: >> >> well, not all the same, but partly. Take a look: >> > Yes. We know. >> Well. It doesn't surprise me. >> P.S. Is it a `feature'? ;) >> P.P.S. Talking seriously (as much as possible ;), which reasons don't >> let removing of 3 lines from rc.firewall? > The reason not to remove them is to avoid the steady stream of emails > to -questions, -security, -ipfw, and -net A question for FAQ, don't you agree? > from people unaware of the > built-in protection from loopback addresses informing us that we > should have rules like that by default. And smells like Windoze, no? `Dumb protection' which is really dumb itself? > The rules don't hurt > anything (just _try_ to measure a performance impact), No, I won't measure performance impact cause I see a much more bigger problem -- it gets into any custom ruleset, being loaded with rc.firewall. Such rules `as pass ip from any to any via lo' (not even lo*) hurts a lot when you use jail(8) in the same box! As it's obviously seen almost always any jailed service network activity should be treated as coming from external NIC (network) and isn't it the time to say "...It's always funny until someone gets hurt. Then it's hilarious..."? P.S. Will anybody sometime patch the jail.c to handle both IP-addresses and hostnames? -- Igor M Podlesny a.k.a. Poige http://www.morning.ru/~poige To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 7:15:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from luke.immure.com (luke.immure.com [207.8.42.74]) by hub.freebsd.org (Postfix) with ESMTP id 11E0A37B416; Thu, 3 Jan 2002 07:15:06 -0800 (PST) Received: (from bob@localhost) by luke.immure.com (8.11.6/8.11.6) id g03FF5J80744; Thu, 3 Jan 2002 09:15:05 -0600 (CST) (envelope-from bob) Date: Thu, 3 Jan 2002 09:15:04 -0600 From: Bob Willcox To: Greg Lehey Cc: Terry Lambert , Hiten Pandya , current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: [SUGGESTION] - JFS for FreeBSD Message-ID: <20020103091504.B77693@luke.immure.com> Reply-To: Bob Willcox References: <20011210220153.50612.qmail@web21102.mail.yahoo.com> <3C15AB82.FDF598A8@mindspring.com> <20011211182856.A67986@monorchid.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011211182856.A67986@monorchid.lemis.com>; from grog@FreeBSD.ORG on Tue, Dec 11, 2001 at 06:28:56PM +1030 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Dec 11, 2001 at 06:28:56PM +1030, Greg Lehey wrote: > On Monday, 10 December 2001 at 22:45:22 -0800, Terry Lambert wrote: > > Hiten Pandya wrote: > >> i wanted to ask if there were any _plans_ to port > >> JFS (Journaled File System) to FreeBSD... > > > > Not unless you have plans. When I was an IBM employee, they would > > not change the license, and so it's impossible to ship a CDROM > > where it's the boot FS, or boxes on which it is the boot FS, and > > still have it be legal, because of the license conflicts. > > > > I fought this for about a year within IBM, before I gave up. > > Since then, it has become possible for the loader to load modules > before booting the kernel. This means that, theoretically, it would > be possible to have a JFS root file system. Given the strong > opposition to the GPL in some factions of the FreeBSD project, I don't > see this happening any time soon, especially since we still don't know > if it will buy us anything. > > >> It is used on IBM MainFrames and Enterprise servers > >> for high performance and maximum throughput... > > > > No, it's not. The Linux JFS is derived from the OS/2 JFS code, not > > the good AIX JFS code. > > That's correct, but note that AIX is moving to this code base too, so > it's not as if it's second-rate. From what I've seen of the > structures, JFS2 is *much* better than JFS1. I haven't compared > performance. I happened to be with IBM working on AIX (I was the AIX architecture manager at the time) during the development of the original JFS (for AIX 3.1 on the first RS/6000s). Its design and implementation were largely the result of the efforts of a single person (Al Chang) from IBM research, who was also the primary designer/developer for the VM system for AIX 3.1. Consequently, the JFS code was designed to take advantage of the specific VM implementation (and the underlying RS/6000 VM hardware). This resulted in a rather unportable code base. Additionally, since it was derived from AT&T (and BSD) filesystem code, there were some licensing issues. As I recall, these two issues (portability and license) were what lead to the reimplementation for OS/2 (I wasn't involved or even very familiar with that effort though). Bob -- Bob Willcox Boucher's Observation: bob@vieo.com He who blows his own horn always plays the music Austin, TX several octaves higher than originally written. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 11: 9:14 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scanner.secnap.net (scanner.secnap.net [216.241.67.74]) by hub.freebsd.org (Postfix) with ESMTP id 6A75437B41C for ; Thu, 3 Jan 2002 11:09:09 -0800 (PST) Received: from MIKELT ([10.1.1.40]) by scanner.secnap.net (8.11.6/8.11.5) with SMTP id g03J98357014 for ; Thu, 3 Jan 2002 14:09:08 -0500 (EST) (envelope-from scheidell@secnap.net) Message-ID: <002801c1948a$0d452ec0$2801010a@MIKELT> From: "Michael Scheidell" To: Subject: Sendmail or elm stoped working for non-root in 4.4-STABLE Date: Thu, 3 Jan 2002 14:08:38 -0500 Organization: Secnap Network Security, LLC. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Please point me in right direction. 'elm' in FBSD 4.3, 4.4-REL worked for non root. Now, elm sometimes fails on 4.4-STABLE, for non-root it fails using the OLD sendmail.cf, and the new one generated by make world. /usr/sbin/sendmail is link to /usr/sbin/mailwrapper ls -l /etc/mail/mailer.conf looks fine. -rw-r--r-- 1 root wheel 316 Apr 21 2001 /etc/mail/mailer.conf failure is Failed: /usr/sbin/sendmail: Bad file descriptor I copied over anolder version of sendmail (which I know works) and it still failed. there is no entry in /var/log/messages or /var/log/maillog elm is sgid mail (like before: ls -l /usr/local/bin/elm -rwxr-sr-x 1 root mail 395804 Sep 25 11:37 /usr/local/bin/elm just like on older systems I looked for permissions problems, and, just wanted a general look around so used the '-Voyer' mode for elm: elm -V funny thing. it worked, with -V option to elm, it sent the mail for non root user. sendmail -oit user@host.tld < laptops.txt works. elm -s "test" scheidell@fdma.com < laptops.txt failes: Failed: /usr/sbin/sendmail: Bad file descriptor elm -V -s "test" scheidell@fdma.com < laptops.txt works: Sending mail... scheidell@fdma.com... Connecting to ns.fdma.com. via esmtp... 220 mail.fdma.com ESMTP Sendmail 8.11.3/8.11.3; Thu, 3 Jan 2002 13:40:56 -0500 (EST) >>> EHLO hackertrap.somehost.com 250-mail.fdma.com Hello [12.40.255.159], pleased to meet you 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-SIZE 250-ONEX 250-ETRN 250-XUSR 250 HELP >>> MAIL From: SIZE=1192 250 2.1.0 ... Sender ok >>> RCPT To: 250 2.1.5 ... Recipient ok >>> DATA 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 g03IeuW37448 Message accepted for delivery scheidell@fdma.com... Sent (g03IeuW37448 Message accepted for delivery) Closing connection to ns.fdma.com. >>> QUIT 221 2.0.0 mail.fdma.com closing connection Mail to scheidell@fdma.com... Mail sent! so, what should I be looking for? -- Michael Scheidell Secnap Network Security, LLC scheidell@secnap.net 1+(561) 368-9561 See updated IT Security News at http://www.fdma.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 13:44: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.rpi.edu (mumble.cs.rpi.edu [128.213.8.16]) by hub.freebsd.org (Postfix) with ESMTP id D5F6D37B41C for ; Thu, 3 Jan 2002 13:43:57 -0800 (PST) Received: from antares.cs.rpi.edu (antares.cs.rpi.edu [128.213.12.33]) by cs.rpi.edu (8.9.3/8.9.3) with ESMTP id QAA08801 for ; Thu, 3 Jan 2002 16:43:57 -0500 (EST) Message-Id: <200201032143.QAA08801@cs.rpi.edu> To: freebsd-hackers@freebsd.org Subject: boot1 Date: Thu, 03 Jan 2002 16:43:57 -0500 From: "David E. Cross" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'd like to create a /boot.config switch that will have boot1 _not_ read from the console; this is for a secure setup. Would others be interested in these patches when I finish them? -- David Cross | email: crossd@cs.rpi.edu Lab Director | Rm: 308 Lally Hall Rensselaer Polytechnic Institute, | Ph: 518.276.2860 Department of Computer Science | Fax: 518.276.4033 I speak only for myself. | WinNT:Linux::Linux:FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 14: 6: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scanner.secnap.net (scanner.secnap.net [216.241.67.74]) by hub.freebsd.org (Postfix) with ESMTP id 798E637B41D; Thu, 3 Jan 2002 14:06:01 -0800 (PST) Received: from MIKELT ([10.1.1.40]) by scanner.secnap.net (8.11.6/8.11.5) with SMTP id g03M60357732; Thu, 3 Jan 2002 17:06:00 -0500 (EST) (envelope-from scheidell@secnap.net) Message-ID: <007501c194a2$c23599b0$2801010a@MIKELT> From: "Michael Scheidell" To: "Stefan Esser" Cc: , References: <20011231165828.D2301@StefanEsser.FreeBSD.org> <200112311631.fBVGVtZ45017@scanner.secnap.net> <20020101203614.A11265@StefanEsser.FreeBSD.org> <3C32150C.7000504@jrochester.org> <20020101232546.A40539@StefanEsser.FreeBSD.org> Subject: Re: Re: userland program panics freebsd 4.3 Date: Thu, 3 Jan 2002 17:05:29 -0500 Organization: Secnap Network Security, LLC. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Noop, just verified it again on FBSD 4.4 STABLE, this: int process_alive(pid) pid_t pid; { while (waitpid(pid, NULL, WNOHANG) < 0 && errno == EINTR) /* do nothing */; return kill(pid, 0) == 0; } misses a bunch of closed? deleted? usd up pids? on my client, it stays in 'SMB use SID to enemurate' but i verified these are not still runnning. only one that works is this code: /* * Invalid argument */ if(!pid) return 0; */ for(i=0,ret=1;(i<100) && (ret > 0);i++) ret = waitpid(pid, NULL, WNOHANG); return kill(pid, 0) == 0; Michael Scheidell Secnap Network Security, LLC scheidell@secnap.net 1+(561) 368-9561 See updated IT Security News at http://www.fdma.com/ ----- Original Message ----- From: "Stefan Esser" To: "John Rochester" Cc: ; "Stefan Esser" Sent: Tuesday, January 01, 2002 5:25 PM Subject: Re: Re: userland program panics freebsd 4.3 > On 2002-01-01 19:59 +0000, John Rochester wrote: > > Stefan Esser wrote: > > > > >Instead of the for loop, I'd rather have: > > > > > > while(waitpid(pid, NULL, WNOHANG) == EINTR) > > > > > This should be > > > > while (waitpid(pid, NULL, WNOHANG) < 0 && errno == EINTR) > > Yes, obviously ... ;-) > > STefan > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 14:57:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail12.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 28D1237B416 for ; Thu, 3 Jan 2002 14:57:21 -0800 (PST) Received: (qmail 25010 invoked from network); 3 Jan 2002 22:57:20 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 3 Jan 2002 22:57:20 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200201032143.QAA08801@cs.rpi.edu> Date: Thu, 03 Jan 2002 14:57:08 -0800 (PST) From: John Baldwin To: "David E. Cross" Subject: RE: boot1 Cc: freebsd-hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 03-Jan-02 David E. Cross wrote: > I'd like to create a /boot.config switch that will have boot1 _not_ read from > the console; this is for a secure setup. Would others be interested in these > patches when I finish them? Yes. I've seen other places use this, and I would commit it. :) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 17:38: 7 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from tomts19-srv.bellnexxia.net (tomts19.bellnexxia.net [209.226.175.73]) by hub.freebsd.org (Postfix) with ESMTP id 2862A37B41A; Thu, 3 Jan 2002 17:37:59 -0800 (PST) Received: from xena.gsicomp.on.ca ([199.243.148.182]) by tomts19-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20020104013758.ZTWU9690.tomts19-srv.bellnexxia.net@xena.gsicomp.on.ca>; Thu, 3 Jan 2002 20:37:58 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id g041RvX46526; Thu, 3 Jan 2002 20:27:57 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <003c01c194c0$6feb5550$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "John Baldwin" Cc: References: Subject: Re: boot1 Date: Thu, 3 Jan 2002 20:37:56 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On 03-Jan-02 David E. Cross wrote: > > I'd like to create a /boot.config switch that will have boot1 _not_ read from > > the console; this is for a secure setup. Would others be interested in these > > patches when I finish them? > > Yes. I've seen other places use this, and I would commit it. :) How would this affect systems where you *have* to hit enter at the first "boot:" prompt in order to kick off a boot sequence? I've got two identical machines (same hardware, cloned hard drives), and one of them simply won't boot unless you hit enter. Turning off console imput would render this system useless after a reboot :) I think there's a PR open about this somewhere. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 17:42:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from out006pub.verizon.net (out006pub.verizon.net [206.46.170.106]) by hub.freebsd.org (Postfix) with ESMTP id 06D1D37B416 for ; Thu, 3 Jan 2002 17:42:51 -0800 (PST) Received: from bellatlantic.net (pool-151-198-135-220.mad.east.verizon.net [151.198.135.220]) by out006pub.verizon.net with ESMTP ; id g041gU914703 Thu, 3 Jan 2002 19:42:30 -0600 (CST) Message-ID: <3C350880.ACC0E6D@bellatlantic.net> Date: Thu, 03 Jan 2002 20:42:24 -0500 From: Sergey Babkin Reply-To: babkin@freebsd.org X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-19990626-CURRENT i386) X-Accept-Language: en, ru MIME-Version: 1.0 To: Matthew Dillon Cc: Josef Karthauser , Alexander Haderer , freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD performing worse than Linux? References: <20011128153817.T61580@monorchid.lemis.com> <15364.38174.938500.946169@caddis.yogotech.com> <20011128104629.A43642@walton.maths.tcd.ie> <5.1.0.14.1.20011130181236.00a80160@postamt1.charite.de> <200111302047.fAUKlT811090@apollo.backplane.com> <20011130231802.E99520@tao.org.uk> <200111302345.fAUNjLI27798@apollo.backplane.com> <20011228153330.A11251@tao.org.uk> <200112300644.fBU6iVG10959@apollo.backplane.com> <20011230182612.D5642@tao.org.uk> <200112301917.fBUJHdm13120@apollo.backplane.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Matthew Dillon wrote: > > : > :No switching infrastructure. It's a 10mb/s half duplex ethernet > :network, with two hubs between the two machines. > : > :Joe > > I think there may be a problem with your hub setup (e.g. exceeding the > hub count or end-to-end length limitations) that is either resulting > in packet loss, or the packet burst is locking up the ethernet long > enough to cause a timeout. The problem looks very much like an > unrecognized collision to me. > > I recommend replacing the hubs with switches. The whole topology will > be happier. Or maybe just with better hubs. I've seen cheap hubs that started losing packets when the load went above ~5MB/s. -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 18:12:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.rpi.edu (mumble.cs.rpi.edu [128.213.8.16]) by hub.freebsd.org (Postfix) with ESMTP id AC49437B41C; Thu, 3 Jan 2002 18:12:55 -0800 (PST) Received: from cs.rpi.edu (monica.cs.rpi.edu [128.213.7.2]) by cs.rpi.edu (8.9.3/8.9.3) with ESMTP id VAA14236; Thu, 3 Jan 2002 21:12:53 -0500 (EST) Message-Id: <200201040212.VAA14236@cs.rpi.edu> To: John Baldwin Cc: "David E. Cross" , freebsd-hackers@FreeBSD.ORG, crossd@cs.rpi.edu Subject: Re: boot1 In-Reply-To: Message from John Baldwin of "Thu, 03 Jan 2002 14:57:08 PST." Date: Thu, 03 Jan 2002 21:12:52 -0500 From: "David E. Cross" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well, I can do the commit, I am just looking for interest, and code reviewers ;) -- David Cross | email: crossd@cs.rpi.edu Lab Director | Rm: 308 Lally Hall Rensselaer Polytechnic Institute, | Ph: 518.276.2860 Department of Computer Science | Fax: 518.276.4033 I speak only for myself. | WinNT:Linux::Linux:FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 22:47:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail12.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 77ED937B405 for ; Thu, 3 Jan 2002 22:47:41 -0800 (PST) Received: (qmail 31879 invoked from network); 4 Jan 2002 06:47:41 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 4 Jan 2002 06:47:41 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200201040212.VAA14236@cs.rpi.edu> Date: Thu, 03 Jan 2002 22:47:25 -0800 (PST) From: John Baldwin To: "David E. Cross" Subject: Re: boot1 Cc: freebsd-hackers@FreeBSD.ORG, "David E. Cross" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 04-Jan-02 David E. Cross wrote: > Well, I can do the commit, I am just looking for interest, and code reviewers > ;) Oh, right, I'll review. :) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 22:48:10 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by hub.freebsd.org (Postfix) with ESMTP id CB9E937B41C for ; Thu, 3 Jan 2002 22:47:44 -0800 (PST) Received: (qmail 28582 invoked from network); 4 Jan 2002 06:47:44 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 4 Jan 2002 06:47:44 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <003c01c194c0$6feb5550$1200a8c0@gsicomp.on.ca> Date: Thu, 03 Jan 2002 22:47:29 -0800 (PST) From: John Baldwin To: Matthew Emmerton Subject: Re: boot1 Cc: freebsd-hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 04-Jan-02 Matthew Emmerton wrote: >> On 03-Jan-02 David E. Cross wrote: >> > I'd like to create a /boot.config switch that will have boot1 _not_ read > from >> > the console; this is for a secure setup. Would others be interested in > these >> > patches when I finish them? >> >> Yes. I've seen other places use this, and I would commit it. :) > > How would this affect systems where you *have* to hit enter at the first > "boot:" prompt in order to kick off a boot sequence? I've got two identical > machines (same hardware, cloned hard drives), and one of them simply won't > boot unless you hit enter. Turning off console imput would render this > system useless after a reboot :) > > I think there's a PR open about this somewhere. Errr, why do you have to hit enter? If this patch does what I think it does, you won't even get a boot: prompt at all, it will just jump straight into the loader (or kernel). Besides, it wouldn't be on by default. You would have to explicitly turn it on via a flag in /boot.config. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 22:55:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from niwun.pair.com (niwun.pair.com [209.68.2.70]) by hub.freebsd.org (Postfix) with SMTP id 16E4237B420 for ; Thu, 3 Jan 2002 22:55:52 -0800 (PST) Received: (qmail 61926 invoked by uid 3193); 4 Jan 2002 06:55:51 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 4 Jan 2002 06:55:51 -0000 Date: Fri, 4 Jan 2002 01:55:51 -0500 (EST) From: Mike Silbersack X-Sender: To: John Baldwin Cc: Matthew Emmerton , Subject: Re: boot1 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 3 Jan 2002, John Baldwin wrote: > Errr, why do you have to hit enter? If this patch does what I think it does, > you won't even get a boot: prompt at all, it will just jump straight into the > loader (or kernel). Besides, it wouldn't be on by default. You would have to > explicitly turn it on via a flag in /boot.config. > > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ One of my machines used to pause until I hit enter every time too. Then the motherboard went wacky and I replaced it. With the new motherboard, it auto-boots correctly every time. Just FWIW, Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 3 23:45:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web14003.mail.yahoo.com (web14003.mail.yahoo.com [216.136.175.94]) by hub.freebsd.org (Postfix) with SMTP id D66F637B41D for ; Thu, 3 Jan 2002 23:45:07 -0800 (PST) Message-ID: <20020104074507.48785.qmail@web14003.mail.yahoo.com> Received: from [216.103.213.142] by web14003.mail.yahoo.com via HTTP; Thu, 03 Jan 2002 23:45:07 PST Date: Thu, 3 Jan 2002 23:45:07 -0800 (PST) From: k Macy Subject: ptrace bug was Re: gnu/33262: gdb does not handle pending signals correctly when single stepping To: Donald Gillies , freebsd-gnats-submit@FreeBSD.org, freebsd-stable@freebsd.org, freebsd-hackers@freebsd.org Cc: kip_macy@yahoo.com In-Reply-To: <1171E12B84A02B4584B3BD41F8D7E29E3644D4@NTEXCH.graviton.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Not to mention that SIGVTALRM is already used by the thread library (although I would hope that _thread_sys_sigaction is smart enough to handle that case). I've stepped through the GDB code on both 4.18 and 5.1. On 5.1 I found the following in i386fbsd-nat.c: void child_resume (ptid_t ptid, int step, enum target_signal signal) { pid_t pid = ptid_get_pid (ptid); int request = PT_STEP; if (pid == -1) /* Resume all threads. This only gets used in the non-threaded case, where "resume all threads" and "resume inferior_ptid" are the same. */ pid = ptid_get_pid (inferior_ptid); if (!step) { unsigned int eflags; /* Workaround for a bug in FreeBSD. Make sure that the trace flag is off when doing a continue. There is a code path through the kernel which leaves the flag set when it should have been cleared. If a process has a signal pending (such as SIGALRM) and we do a PT_STEP, the process never really has a chance to run because the kernel needs to notify the debugger that a signal is being sent. Therefore, the process never goes through the kernel's trap() function which would normally clear it. */ eflags = read_register (PS_REGNUM); if (eflags & 0x0100) write_register (PS_REGNUM, eflags & ~0x0100); request = PT_CONTINUE; } It is pretty clear that: a) this does not deal with the case of step or next b) this does not work in the case of continue often times because step will be set to 1 and hence, this code does _not_ work around the bug. This appears to be less of a GDB bug and more of a kernel bug in ptrace. -Kip --- Donald Gillies wrote: > I think this bug may be associated only with the > SIGALRM signal. When I > convert my code to use SIGVTALRM, the problem goes > away. Unfortunately, > SIGVTALRM does not do exactly > what I am looking for !! > > # gdb 5.10 > # $FreeBSD: src/COPYRIGHT,v 1.4 1999/09/05 21:33:47 > obrien Exp $ > # @(#)COPYRIGHT 8.2 (Berkeley) 3/21/94 > > > __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 2: 7:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from piggy.rz.tu-ilmenau.de (piggy.rz.tu-ilmenau.de [141.24.4.8]) by hub.freebsd.org (Postfix) with ESMTP id 2913E37B419 for ; Fri, 4 Jan 2002 02:07:39 -0800 (PST) Received: from gtw.hh59.local (pD9508B90.dip.t-dialin.net [217.80.139.144]) (authenticated (0 bits)) by piggy.rz.tu-ilmenau.de (8.11.1/8.11.1) with ESMTP id g04A7VH04324 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO) for ; Fri, 4 Jan 2002 11:07:37 +0100 (MET) Received: from walnut.hh59.local (walnut.hh59.local [192.168.2.10]) by gtw.hh59.local (8.11.3/8.11.3) with ESMTP id g04AMK813235 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified FAIL) for ; Fri, 4 Jan 2002 11:22:24 +0100 (CET) Received: (qmail 2436 invoked by uid 1000); 4 Jan 2002 10:08:06 -0000 Date: Fri, 4 Jan 2002 11:08:06 +0100 From: Martin Kaeske To: freebsd-hackers@freebsd.org Subject: path_mtu_discovery Message-ID: <20020104110806.A2138@walnut.hh59.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I'm using FreeBSD-4.4-STABLE and have an OpenBSD-2.9 router to connect to the internet (via DSL). If i try to do a cvsup (cvsup.de.freebsd.org, cvsup2.de.freebsd.org, cvsup.freebsd.org) i'm getting a lot of "icmp: Destination unreachable, need to frag " messages and cvsup fails (timeout). The curious thing is if i disable net.inet.tcp.path_mtu_discovery or if i lower the MTU to 1488, everything is fine (of course). That's why i wanted to ask wether FreeBSD fails to lower the MTU (it should lower it due to the icmp messages, shouldn't it?) or is there any pppoe specific problem between me and the cvsup servers? Martin PS: AFAICS cvsup is the only problem ftp/http/nntp works fine -- The instructions said to use Windows 98 or better, so I installed FreeBSD. -- Jim Levie in comp.unix.bsd.freebsd.misc -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 5:16:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from straylight.ringlet.net (discworld.nanolink.com [217.75.135.248]) by hub.freebsd.org (Postfix) with SMTP id 5D4E637B405 for ; Fri, 4 Jan 2002 05:16:21 -0800 (PST) Received: (qmail 1043 invoked by uid 1000); 4 Jan 2002 12:48:22 -0000 Date: Fri, 4 Jan 2002 14:48:22 +0200 From: Peter Pentchev To: Martin Kaeske Cc: freebsd-hackers@freebsd.org Subject: Re: path_mtu_discovery Message-ID: <20020104144821.A328@straylight.oblivion.bg> Mail-Followup-To: Martin Kaeske , freebsd-hackers@freebsd.org References: <20020104110806.A2138@walnut.hh59.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020104110806.A2138@walnut.hh59.local>; from Martin.Kaeske@II.Stud.TU-Ilmenau.DE on Fri, Jan 04, 2002 at 11:08:06AM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 04, 2002 at 11:08:06AM +0100, Martin Kaeske wrote: > Hello, > I'm using FreeBSD-4.4-STABLE and have an OpenBSD-2.9 router to > connect to the internet (via DSL). If i try to do a cvsup > (cvsup.de.freebsd.org, cvsup2.de.freebsd.org, cvsup.freebsd.org) > i'm getting a lot of "icmp: Destination unreachable, need to frag > " messages and cvsup fails (timeout). The curious thing > is if i disable net.inet.tcp.path_mtu_discovery or if i lower the > MTU to 1488, everything is fine (of course). > That's why i wanted to ask wether FreeBSD fails to lower the MTU > (it should lower it due to the icmp messages, shouldn't it?) or > is there any pppoe specific problem between me and the cvsup servers? > > Martin > PS: AFAICS cvsup is the only problem ftp/http/nntp works fine You have not, by any chance, firewalled ICMP replies, have you - either outgoing on the router, or incoming on the FreeBSD box? G'luck, Peter -- This sentence no verb. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 7:45:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web12508.mail.yahoo.com (web12508.mail.yahoo.com [216.136.173.200]) by hub.freebsd.org (Postfix) with SMTP id 9751037B419 for ; Fri, 4 Jan 2002 07:45:43 -0800 (PST) Message-ID: <20020104154543.90114.qmail@web12508.mail.yahoo.com> Received: from [131.193.8.207] by web12508.mail.yahoo.com via HTTP; Fri, 04 Jan 2002 07:45:43 PST Date: Fri, 4 Jan 2002 07:45:43 -0800 (PST) From: Kristopher Kublinski Reply-To: d00f@d00f.com Subject: Re: path_mtu_discovery To: Peter Pentchev , freebsd-hackers@freebsd.org In-Reply-To: <20020104144821.A328@straylight.oblivion.bg> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- Peter Pentchev wrote: > On Fri, Jan 04, 2002 at 11:08:06AM +0100, Martin Kaeske wrote: > > Hello, > > I'm using FreeBSD-4.4-STABLE and have an OpenBSD-2.9 router to > > connect to the internet (via DSL). If i try to do a cvsup > > (cvsup.de.freebsd.org, cvsup2.de.freebsd.org, cvsup.freebsd.org) > > i'm getting a lot of "icmp: Destination unreachable, need to frag > > " messages and cvsup fails (timeout). The curious thing > > is if i disable net.inet.tcp.path_mtu_discovery or if i lower the > > MTU to 1488, everything is fine (of course). > > That's why i wanted to ask wether FreeBSD fails to lower the MTU > > (it should lower it due to the icmp messages, shouldn't it?) or > > is there any pppoe specific problem between me and the cvsup servers? > > > > Martin > > PS: AFAICS cvsup is the only problem ftp/http/nntp works fine > > You have not, by any chance, firewalled ICMP replies, have you - > either outgoing on the router, or incoming on the FreeBSD box? > > G'luck, > Peter > I have the same setup as Martin but i cant say i have the same problem. I am also blocking all incoming icmp traffic - in fact i have explicitly denied almost all incoming traffic so i do not thing that is the problem. however if you are running ipf on the openbsd machine (which i am assuming you are) you might want to check your ruleset, it sounds like you might have something in there that is causing it. Kristopher __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 9:36:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from tomts8-srv.bellnexxia.net (tomts8.bellnexxia.net [209.226.175.52]) by hub.freebsd.org (Postfix) with ESMTP id B34A237B419; Fri, 4 Jan 2002 09:36:51 -0800 (PST) Received: from xena.gsicomp.on.ca ([199.243.148.182]) by tomts8-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20020104173649.DMTV16860.tomts8-srv.bellnexxia.net@xena.gsicomp.on.ca>; Fri, 4 Jan 2002 12:36:49 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id g04HQjX48577; Fri, 4 Jan 2002 12:26:45 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <000601c19546$6196b2c0$d28a1a09@gsicomp.on.ca> From: "Matthew Emmerton" To: "John Baldwin" Cc: References: Subject: Re: boot1 Date: Fri, 4 Jan 2002 11:42:22 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On 04-Jan-02 Matthew Emmerton wrote: > >> On 03-Jan-02 David E. Cross wrote: > >> > I'd like to create a /boot.config switch that will have boot1 _not_ read > > from > >> > the console; this is for a secure setup. Would others be interested in > > these > >> > patches when I finish them? > >> > >> Yes. I've seen other places use this, and I would commit it. :) > > > > How would this affect systems where you *have* to hit enter at the first > > "boot:" prompt in order to kick off a boot sequence? I've got two identical > > machines (same hardware, cloned hard drives), and one of them simply won't > > boot unless you hit enter. Turning off console imput would render this > > system useless after a reboot :) > > > > I think there's a PR open about this somewhere. > > Errr, why do you have to hit enter? If this patch does what I think it does, > you won't even get a boot: prompt at all, it will just jump straight into the > loader (or kernel). Besides, it wouldn't be on by default. You would have to > explicitly turn it on via a flag in /boot.config. As Mike Silbersack (sp?) pointed out, it's a rogue problem that people run into every now and then. I think it's BIOS/motherboard related. In any case, if the patch bypasses the prompt entirely, then there's no problem in my case (and would actually make things better for me.) -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 10: 2: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from glenfiddich.infospace.com (mail1.infospace.com [206.29.197.33]) by hub.freebsd.org (Postfix) with SMTP id 6066437B420 for ; Fri, 4 Jan 2002 10:01:56 -0800 (PST) Received: (qmail 21112 invoked from network); 4 Jan 2002 18:01:51 -0000 Received: from unknown (HELO skyy.inspinc.ad) (206.29.197.191) by 0 with SMTP; 4 Jan 2002 18:01:51 -0000 Received: (qmail 24462 invoked from network); 4 Jan 2002 18:01:51 -0000 Received: from unknown (HELO irishbreakfast.carrel.org) ([10.99.32.118]) (envelope-sender ) by skyy.inspinc.ad (qmail-ldap-1.03) with SMTP for ; 4 Jan 2002 18:01:51 -0000 Date: Fri, 4 Jan 2002 10:02:01 -0800 Subject: Re: path_mtu_discovery Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v480) From: William Carrel To: freebsd-hackers@freebsd.org Content-Transfer-Encoding: 7bit In-Reply-To: <20020104154543.90114.qmail@web12508.mail.yahoo.com> Message-Id: <26E71536-013D-11D6-8ED3-003065D5E9A4@infospace.com> X-Mailer: Apple Mail (2.480) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday, January 4, 2002, at 07:45 AM, Kristopher Kublinski wrote: > --- Peter Pentchev wrote: >> On Fri, Jan 04, 2002 at 11:08:06AM +0100, Martin Kaeske wrote: >>> Hello, >>> I'm using FreeBSD-4.4-STABLE and have an OpenBSD-2.9 router to >>> connect to the internet (via DSL). If i try to do a cvsup >>> (cvsup.de.freebsd.org, cvsup2.de.freebsd.org, cvsup.freebsd.org) >>> i'm getting a lot of "icmp: Destination unreachable, need to frag >>> " messages and cvsup fails (timeout). The curious thing >>> is if i disable net.inet.tcp.path_mtu_discovery or if i lower the >>> MTU to 1488, everything is fine (of course). >>> That's why i wanted to ask wether FreeBSD fails to lower the MTU >>> (it should lower it due to the icmp messages, shouldn't it?) or >>> is there any pppoe specific problem between me and the cvsup servers? >>> >>> Martin >>> PS: AFAICS cvsup is the only problem ftp/http/nntp works fine >> >> You have not, by any chance, firewalled ICMP replies, have you - >> either outgoing on the router, or incoming on the FreeBSD box? >> > I have the same setup as Martin but i cant say i have the same > problem. I am also blocking all > incoming icmp traffic - in fact i have explicitly denied almost all > incoming traffic so i do not > thing that is the problem. however if you are running ipf on the > openbsd machine (which i am > assuming you are) you might want to check your ruleset, it sounds like > you might have something in > there that is causing it. Blocking all ICMP is bad m'kay? See also: http://www.worldgate.net/~marcs/mtu/ ipfilter with 'keep state' on the connections will automatically allow back in relevant ICMP messages such as mustfrag. The icmp messages coming up on the users console might be logged blocked packets or some such? I don't seem to recall any of the RELENG_4 systems I run spewing stuff to console if the PMTU-D was turned on. Also I wonder if the user's OpenBSD box and FreeBSD box agree on what their MTU is. In any case, barring anyone being able to repeat this it probably belongs on -questions@. -- William Carrel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 10: 2: 9 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from femail26.sdc1.sfba.home.com (femail26.sdc1.sfba.home.com [24.254.60.16]) by hub.freebsd.org (Postfix) with ESMTP id E826537B41F for ; Fri, 4 Jan 2002 10:02:04 -0800 (PST) Received: from math.missouri.edu ([24.12.197.197]) by femail26.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20020104180204.VCYI22317.femail26.sdc1.sfba.home.com@math.missouri.edu> for ; Fri, 4 Jan 2002 10:02:04 -0800 Message-ID: <3C35EE1B.484A6AD@math.missouri.edu> Date: Fri, 04 Jan 2002 12:02:03 -0600 From: Stephen Montgomery-Smith X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Tell gcc I have a i686 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I want to create a Makefile for a C program that includes some Pentium II specific inline assembler code. How do I tell the compiler whether we are compiling on a i686? For Linux, I can do something like this (for gnu-make) Arch = $(shell arch) cc ...... -DArch ..... and inside the program #ifdef i686 But arch doesn't exist on FreeBSD. -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 10:28:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 4945937B405 for ; Fri, 4 Jan 2002 10:28:09 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id CAE9D81D01; Fri, 4 Jan 2002 12:28:03 -0600 (CST) Date: Fri, 4 Jan 2002 12:28:03 -0600 From: Alfred Perlstein To: Stephen Montgomery-Smith Cc: freebsd-hackers@freebsd.org Subject: Re: Tell gcc I have a i686 Message-ID: <20020104122803.N82406@elvis.mu.org> References: <3C35EE1B.484A6AD@math.missouri.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C35EE1B.484A6AD@math.missouri.edu>; from stephen@math.missouri.edu on Fri, Jan 04, 2002 at 12:02:03PM -0600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Stephen Montgomery-Smith [020104 12:02] wrote: > I want to create a Makefile for a C program that includes some Pentium > II specific inline assembler code. How do I tell the compiler whether > we are compiling on a i686? > > For Linux, I can do something like this (for gnu-make) > Arch = $(shell arch) > cc ...... -DArch ..... > > and inside the program > > #ifdef i686 > > But arch doesn't exist on FreeBSD. Isn't this somewhat trivial? ARCH=i686 CFLAGS+=-D${ARCH} ? -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 10:31:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from femail44.sdc1.sfba.home.com (femail44.sdc1.sfba.home.com [24.254.60.38]) by hub.freebsd.org (Postfix) with ESMTP id 82CB937B420 for ; Fri, 4 Jan 2002 10:31:48 -0800 (PST) Received: from math.missouri.edu ([24.12.197.197]) by femail44.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20020104183148.TLTB15906.femail44.sdc1.sfba.home.com@math.missouri.edu>; Fri, 4 Jan 2002 10:31:48 -0800 Message-ID: <3C35F513.2F16AC08@math.missouri.edu> Date: Fri, 04 Jan 2002 12:31:47 -0600 From: Stephen Montgomery-Smith X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Alfred Perlstein Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Tell gcc I have a i686 References: <3C35EE1B.484A6AD@math.missouri.edu> <20020104122803.N82406@elvis.mu.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > > * Stephen Montgomery-Smith [020104 12:02] wrote: > > I want to create a Makefile for a C program that includes some Pentium > > II specific inline assembler code. How do I tell the compiler whether > > we are compiling on a i686? > > > > For Linux, I can do something like this (for gnu-make) > > Arch = $(shell arch) > > cc ...... -DArch ..... > > > > and inside the program > > > > #ifdef i686 > > > > But arch doesn't exist on FreeBSD. > > Isn't this somewhat trivial? > > ARCH=i686 > CFLAGS+=-D${ARCH} > > ? > What I want is a makefile that automatically detects whether it is on an i686 or not (not for me to tell it so). -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 11:16:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id D2A4337B419 for ; Fri, 4 Jan 2002 11:16:19 -0800 (PST) Received: (from olli@localhost) by lurza.secnetix.de (8.11.6/8.11.6) id g04JGQ788744; Fri, 4 Jan 2002 20:16:26 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Date: Fri, 4 Jan 2002 20:16:26 +0100 (CET) Message-Id: <200201041916.g04JGQ788744@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG Reply-To: freebsd-hackers@FreeBSD.ORG Subject: Re: Tell gcc I have a i686 In-Reply-To: <3C35F513.2F16AC08@math.missouri.edu> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.4-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Stephen Montgomery-Smith wrote: > What I want is a makefile that automatically detects whether it is on an > i686 or not (not for me to tell it so). In general, that's not a good idea, IMO. It should be up to the user to decide which optimizations he wants and which not, and we do have /etc/make.conf and CFLAGS for exactly that purpose. I always hate super-clever makefiles and configure scripts that strip -O from my CFLAGS and insert -O6 -march=i686 or other unwanted things. It's a PITA. Just my 0.02 Euro. Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 11:21:15 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail12.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id B9E5137B417 for ; Fri, 4 Jan 2002 11:21:09 -0800 (PST) Received: (qmail 7613 invoked from network); 4 Jan 2002 19:21:08 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 4 Jan 2002 19:21:08 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3C35F513.2F16AC08@math.missouri.edu> Date: Fri, 04 Jan 2002 11:20:55 -0800 (PST) From: John Baldwin To: Stephen Montgomery-Smith Subject: Re: Tell gcc I have a i686 Cc: freebsd-hackers@FreeBSD.ORG, Alfred Perlstein Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 04-Jan-02 Stephen Montgomery-Smith wrote: > Alfred Perlstein wrote: >> >> * Stephen Montgomery-Smith [020104 12:02] wrote: >> > I want to create a Makefile for a C program that includes some Pentium >> > II specific inline assembler code. How do I tell the compiler whether >> > we are compiling on a i686? >> > >> > For Linux, I can do something like this (for gnu-make) >> > Arch = $(shell arch) >> > cc ...... -DArch ..... >> > >> > and inside the program >> > >> > #ifdef i686 >> > >> > But arch doesn't exist on FreeBSD. >> >> Isn't this somewhat trivial? >> >> ARCH=i686 >> CFLAGS+=-D${ARCH} >> >> ? >> > > > What I want is a makefile that automatically detects whether it is on an > i686 or not (not for me to tell it so). This doesn't support a user who wants to compile an app that they want to run on some other machine. :) On FreeBSD, you can see if CPUTYPE is set from make.conf, but it's not required to be set. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 11:47: 1 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp2.san.rr.com (smtp2.san.rr.com [24.25.195.39]) by hub.freebsd.org (Postfix) with ESMTP id 4BEE037B41E; Fri, 4 Jan 2002 11:46:57 -0800 (PST) Received: from dt0b2n73.san.rr.com (dt096n72.san.rr.com [24.94.9.114]) by smtp2.san.rr.com (8.11.4/8.11.4) with ESMTP id g04Jksf08575; Fri, 4 Jan 2002 11:46:55 -0800 (PST) Received: (from ralph@localhost) by dt0b2n73.san.rr.com (8.11.6/8.11.3) id g04JksF08444; Fri, 4 Jan 2002 11:46:54 -0800 (PST) (envelope-from ralph@webcom.com) From: "Ralph N. Smith" Date: Fri, 4 Jan 2002 11:46:49 -0800 To: John Baldwin Cc: Stephen Montgomery-Smith , freebsd-hackers@freebsd.org, Alfred Perlstein Subject: Re: Tell gcc I have a i686 Message-ID: <20020104114649.A8422@ralph.smithton.com> References: <3C35F513.2F16AC08@math.missouri.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jhb@freebsd.org on Fri, Jan 04, 2002 at 11:20:55AM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 04, 2002 at 11:20:55AM -0800, John Baldwin wrote: > > On 04-Jan-02 Stephen Montgomery-Smith wrote: > > Alfred Perlstein wrote: > >> > >> * Stephen Montgomery-Smith [020104 12:02] wrote: ... > >> > But arch doesn't exist on FreeBSD. > >> > >> Isn't this somewhat trivial? > >> > >> ARCH=i686 > >> CFLAGS+=-D${ARCH} > >> > >> ? > >> > > > > > > What I want is a makefile that automatically detects whether it is on an > > i686 or not (not for me to tell it so). > > This doesn't support a user who wants to compile an app that they want to run > on some other machine. :) On FreeBSD, you can see if CPUTYPE is set from > make.conf, but it's not required to be set. However, if this behavior is insisted upon I would recommend doing something with the output of 'sysctl hw.model'. Implementation is left as an exercise for the reader. Ralph -- Ralph N. Smith ralph@webcom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 11:57:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtpproxy1.mitre.org (smtpproxy1.mitre.org [129.83.20.90]) by hub.freebsd.org (Postfix) with ESMTP id 764F437B41D for ; Fri, 4 Jan 2002 11:57:28 -0800 (PST) Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy1.mitre.org (8.11.3/8.11.3) with ESMTP id g04JvR828663 for ; Fri, 4 Jan 2002 14:57:27 -0500 (EST) Received: from MAILHUB1 (mailhub1.mitre.org [129.83.20.31]) by smtpsrv1.mitre.org (8.11.3/8.11.3) with ESMTP id g04JvPs24710 for ; Fri, 4 Jan 2002 14:57:25 -0500 (EST) Received: from dhcp-48-37.mitre.org (128.29.48.37) by mailhub1.mitre.org with SMTP id 8732457; Fri, 04 Jan 2002 14:56:37 -0500 Message-ID: <3C360A2F.28C82A0@mitre.org> Date: Fri, 04 Jan 2002 15:01:51 -0500 From: "PSI, Mike Smith" Organization: The MITRE Corporation X-Mailer: Mozilla 4.76 [en]C-20010313M (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: Tell gcc I have a i686 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG If you do this, then I beg of you, for the sake of your successor's sanity... Comment your makefile ad nauseum and even put in a few echoes to inform builder what nastiness you enforced. I spend a lot of my time finding such optimizations in legacy code, well they were optimizations 5 years ago, and undoing them. Have pity on your successors. Mike Smith mlsmith@mitre.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 12:34:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from piggy.rz.tu-ilmenau.de (piggy.rz.tu-ilmenau.de [141.24.4.8]) by hub.freebsd.org (Postfix) with ESMTP id 4E0B337B405 for ; Fri, 4 Jan 2002 12:34:44 -0800 (PST) Received: from gtw.hh59.local (pD9508B90.dip.t-dialin.net [217.80.139.144]) (authenticated (0 bits)) by piggy.rz.tu-ilmenau.de (8.11.1/8.11.1) with ESMTP id g04KYdH09321 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO) for ; Fri, 4 Jan 2002 21:34:42 +0100 (MET) Received: from walnut.hh59.local (walnut.hh59.local [192.168.2.10]) by gtw.hh59.local (8.11.3/8.11.3) with ESMTP id g04KnX820939 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified FAIL) for ; Fri, 4 Jan 2002 21:49:36 +0100 (CET) Received: (qmail 21062 invoked by uid 1000); 4 Jan 2002 20:35:15 -0000 Date: Fri, 4 Jan 2002 21:35:15 +0100 From: Martin Kaeske To: Peter Pentchev Cc: freebsd-hackers@freebsd.org Subject: Re: path_mtu_discovery Message-ID: <20020104213515.A20450@walnut.hh59.local> References: <20020104110806.A2138@walnut.hh59.local> <20020104144821.A328@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020104144821.A328@straylight.oblivion.bg>; from roam@ringlet.net on Fri, Jan 04, 2002 at 02:48:22PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 04, 2002 at 02:48:22PM +0200, Peter Pentchev wrote: > You have not, by any chance, firewalled ICMP replies, have you - > either outgoing on the router, or incoming on the FreeBSD box? No. Since i can see the icmp-messages with tcpdump, i thought there is a problem with FreeBSD not lowering the MTU. But i'm going to check the router's configuration. Martin -- The instructions said to use Windows 98 or better, so I installed FreeBSD. -- Jim Levie in comp.unix.bsd.freebsd.misc -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 12:37:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.wearix.com (lorien.wearix.com [193.197.4.2]) by hub.freebsd.org (Postfix) with ESMTP id 888E637B419 for ; Fri, 4 Jan 2002 12:37:44 -0800 (PST) Received: from [10.1.2.3] (ad96e1d2a.dsl.de.colt.net [217.110.29.42]) by mail.wearix.com (Postfix on SuSE Linux 7.2 (i386)) with ESMTP id CA3693600 for ; Fri, 4 Jan 2002 21:37:42 +0100 (CET) Subject: From: Harald Schmalzbauer To: freebsd-hackers@FreeBSD.ORG Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 04 Jan 2002 21:37:46 +0100 Message-Id: <1010176667.52034.6.camel@hry.wearix.com> Mime-Version: 1.0 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG auth 9002357b subscribe freebsd-hackers Harald.Schmalzbauer@wearix.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 12:46:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hawk.prod.itd.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 3AC9737B425 for ; Fri, 4 Jan 2002 12:46:30 -0800 (PST) Received: from pool0076.cvx22-bradley.dialup.earthlink.net ([209.179.198.76] helo=mindspring.com) by hawk.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16MbEI-0000cW-00; Fri, 04 Jan 2002 12:46:19 -0800 Message-ID: <3C36149B.B9C02DCF@mindspring.com> Date: Fri, 04 Jan 2002 12:46:19 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: William Carrel Cc: freebsd-hackers@freebsd.org Subject: Re: path_mtu_discovery References: <26E71536-013D-11D6-8ED3-003065D5E9A4@infospace.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG William Carrel wrote: > Blocking all ICMP is bad m'kay? First, I agree... > ipfilter with 'keep state' on the connections will automatically allow > back in relevant ICMP messages such as mustfrag. Heh... I need to try to write a "mustfrag" daemon, which will spoof them back whenever it sees traffic... and see what happens. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 12:51:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from piggy.rz.tu-ilmenau.de (piggy.rz.tu-ilmenau.de [141.24.4.8]) by hub.freebsd.org (Postfix) with ESMTP id 3D04437B421 for ; Fri, 4 Jan 2002 12:51:14 -0800 (PST) Received: from gtw.hh59.local (pD9508B90.dip.t-dialin.net [217.80.139.144]) (authenticated (0 bits)) by piggy.rz.tu-ilmenau.de (8.11.1/8.11.1) with ESMTP id g04Kp9H12857 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO) for ; Fri, 4 Jan 2002 21:51:12 +0100 (MET) Received: from walnut.hh59.local (walnut.hh59.local [192.168.2.10]) by gtw.hh59.local (8.11.3/8.11.3) with ESMTP id g04L65829563 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified FAIL) for ; Fri, 4 Jan 2002 22:06:06 +0100 (CET) Received: (qmail 21726 invoked by uid 1000); 4 Jan 2002 20:51:46 -0000 Date: Fri, 4 Jan 2002 21:51:46 +0100 From: Martin Kaeske To: freebsd-hackers@freebsd.org Subject: Re: path_mtu_discovery Message-ID: <20020104215146.A21425@walnut.hh59.local> References: <20020104144821.A328@straylight.oblivion.bg> <20020104154543.90114.qmail@web12508.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020104154543.90114.qmail@web12508.mail.yahoo.com>; from kubic3@yahoo.com on Fri, Jan 04, 2002 at 07:45:43AM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 04, 2002 at 07:45:43AM -0800, Kristopher Kublinski wrote: > I have the same setup as Martin but i cant say i have the same problem. I am also blocking all > incoming icmp traffic - in fact i have explicitly denied almost all incoming traffic so i do not > thing that is the problem. however if you are running ipf on the openbsd machine (which i am > assuming you are) you might want to check your ruleset, it sounds like you might have something in > there that is causing it. Well, i played a bit with cvsup and found that if i wait long enough (1 or 2 timeouts of cvsup) and then try again, it works. I checked this with cvsup2.de.freebsd.org, i got some "message to big" and then it worked. Strange. Martin -- The instructions said to use Windows 98 or better, so I installed FreeBSD. -- Jim Levie in comp.unix.bsd.freebsd.misc -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 13:25:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from zen.corp.yahoo.com (zen.corp.yahoo.com [216.145.52.39]) by hub.freebsd.org (Postfix) with ESMTP id E9D2B37B42A for ; Fri, 4 Jan 2002 13:25:26 -0800 (PST) Received: (from parker@localhost) by zen.corp.yahoo.com (8.11.6/8.11.1) id g04LPQe13363 for freebsd-hackers@FreeBSD.ORG; Fri, 4 Jan 2002 13:25:26 -0800 (PST) (envelope-from parker) Date: Fri, 4 Jan 2002 13:25:26 -0800 From: Parker Ranney To: freebsd-hackers@FreeBSD.ORG Message-ID: <20020104132526.D13271@yahoo-inc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5-NO_RESENT_INFOi Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG auth 07120204 unsubscribe freebsd-hackers parker@yahoo-inc.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 13:26:42 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from glenfiddich.infospace.com (mail1.infospace.com [206.29.197.33]) by hub.freebsd.org (Postfix) with SMTP id 98F6237B41B for ; Fri, 4 Jan 2002 13:26:37 -0800 (PST) Received: (qmail 15866 invoked from network); 4 Jan 2002 21:26:35 -0000 Received: from unknown (HELO stoli.inspinc.ad) (206.29.197.190) by 0 with SMTP; 4 Jan 2002 21:26:35 -0000 Received: (qmail 21920 invoked from network); 4 Jan 2002 21:26:35 -0000 Received: from rolf.inspinc.ad ([10.99.33.65]) (envelope-sender ) by stoli.inspinc.ad (qmail-ldap-1.03) with SMTP for ; 4 Jan 2002 21:26:35 -0000 Date: Fri, 4 Jan 2002 13:26:54 -0800 Subject: Re: path_mtu_discovery Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v480) Cc: freebsd-hackers@freebsd.org To: Terry Lambert From: William Carrel In-Reply-To: <3C36149B.B9C02DCF@mindspring.com> Message-Id: Content-Transfer-Encoding: quoted-printable X-Mailer: Apple Mail (2.480) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday, January 4, 2002, at 12:46 PM, Terry Lambert wrote: > William Carrel wrote: > >> ipfilter with 'keep state' on the connections will automatically = allow >> back in relevant ICMP messages such as mustfrag. > > Heh... I need to try to write a "mustfrag" daemon, which will > spoof them back whenever it sees traffic... and see what happens. See now you've made me curious, and I ask myself questions like: How=20 robust is PMTU-D against someone malicious who wants to make us send=20 tinygrams? Could the connection eventually be forced down to an MTU so=20= low that no actual data transfer could occur, or TCP frames with only=20 one byte of information? Granted, the malicious person has to send back a valid set of headers=20 with their ICMP to get through ipfilter; but now I have this bad feeling=20= lurking in the back of my mind... The bad feeling is helped along by observing sys/netinet/ip_icmp.c and=20= the fact that as long as the MTU suggested is greater than 296 bytes we=20= accept the values of any ICMP mustfrag that comes in provided we have a=20= host route for it. I suppose we'll always get a couple hundred bytes in edgewise anyway,=20 but it all makes for an interesting exercise. I wonder about the=20 robustness of other operating systems to such an attack... -- Andy Carrel - william.carrel@infospace.com - +1 (425) 201-8745 Se=F1or Systems Eng. - Corporate Infrastructure Applications - InfoSpace To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 13:59:31 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 129C337B405 for ; Fri, 4 Jan 2002 13:59:25 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id g04LxMG66324; Fri, 4 Jan 2002 22:59:22 +0100 (CET) (envelope-from ticso@cicely8.cicely.de) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g04LvFtx063064; Fri, 4 Jan 2002 22:57:15 +0100 (CET)?g (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id g04LvEW16286; Fri, 4 Jan 2002 22:57:15 +0100 (CET) Received: (from ticso@localhost) by cicely8.cicely.de (8.11.6/8.11.6) id g04LvDh10118; Fri, 4 Jan 2002 22:57:13 +0100 (CET) (envelope-from ticso) Date: Fri, 4 Jan 2002 22:57:13 +0100 From: Bernd Walter To: freebsd-hackers@FreeBSD.ORG, Jos Backus Subject: Re: Solaris /usr/proc/bin/pstack functionality? Message-ID: <20020104225712.G8703@cicely8.cicely.de> References: <20020103072813.GB14656@lizzy.bugworks.com> <200201031302.g03D29t14346@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200201031302.g03D29t14346@lurza.secnetix.de> User-Agent: Mutt/1.3.23i X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jan 03, 2002 at 02:02:09PM +0100, Oliver Fromme wrote: > Jos Backus wrote: > > ----- Forwarded message from Justin Erenkrantz ----- > > +1. =) I've talked to the FreeBSD people and they just laugh > > maniacally when I ask for a truss that follows children. AIUI, > > NetBSD has this, so it is possible to port these changes over, > > but it requires an overhaul to procfs from what I've been told. > > > > FreeBSD has a long way to get the stellar debugging capabilities > > of Solaris. -- justin > > I think that the output from FreeBSD's truss is pretty > pathetic and unusable. ktrace is somewhat better. Mmmm - I can't compare... On alpha: ===> Building for strace-4.4 cc -b alpha--freebsd5.0 -Wall -DHAVE_CONFIG_H -I. -Ifreebsd/alpha -I./freebsd/alpha -Ifreebsd -I./freebsd -D_GNU_SOURCE -O -pipe -mcpu=ev56 -c strace.c In file included from strace.c:34: defs.h:96: #error "FreeBSD support is only for i386 arch right now." strace.c: In function `trace': strace.c:1461: warning: label `FOUND' defined but not used *** Error code 1 I asume this should be tagged i386 only in the port. On i386: ticso@cicely5# strace sleep 1 strace: PIOCSTATUS: Inappropriate ioctl for device trouble opening proc file Exit 1 > PS: I tried strace under -stable only. I don't know if > it works under -current as well. Seems not. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 14:32:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gvr.gvr.org (gvr.gvr.org [212.61.40.17]) by hub.freebsd.org (Postfix) with ESMTP id 9C0C937B41C for ; Fri, 4 Jan 2002 14:32:40 -0800 (PST) Received: by gvr.gvr.org (Postfix, from userid 657) id 93A0A5800; Fri, 4 Jan 2002 23:32:35 +0100 (CET) Date: Fri, 4 Jan 2002 23:32:35 +0100 From: Guido van Rooij To: Terry Lambert Cc: William Carrel , freebsd-hackers@freebsd.org Subject: Re: path_mtu_discovery Message-ID: <20020104223235.GA64301@gvr.gvr.org> References: <26E71536-013D-11D6-8ED3-003065D5E9A4@infospace.com> <3C36149B.B9C02DCF@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C36149B.B9C02DCF@mindspring.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 04, 2002 at 12:46:19PM -0800, Terry Lambert wrote: > William Carrel wrote: > > Blocking all ICMP is bad m'kay? > > First, I agree... > > > ipfilter with 'keep state' on the connections will automatically allow > > back in relevant ICMP messages such as mustfrag. > > Heh... I need to try to write a "mustfrag" daemon, which will > spoof them back whenever it sees traffic... and see what happens. > The sender will start sending smaller segments. That's it. But if you are in the patch between sender and receiver you can do worse things than that. -Guido To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 15: 2:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (Postfix) with ESMTP id 91AA437B41B for ; Fri, 4 Jan 2002 15:02:16 -0800 (PST) Received: from whizzo.transsys.com (#6@localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.11.6/8.11.6) with ESMTP id g04N2A789953; Fri, 4 Jan 2002 18:02:10 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Message-Id: <200201042302.g04N2A789953@whizzo.transsys.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Guido van Rooij Cc: Terry Lambert , William Carrel , freebsd-hackers@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: path_mtu_discovery References: <26E71536-013D-11D6-8ED3-003065D5E9A4@infospace.com> <3C36149B.B9C02DCF@mindspring.com> <20020104223235.GA64301@gvr.gvr.org> In-reply-to: Your message of "Fri, 04 Jan 2002 23:32:35 +0100." <20020104223235.GA64301@gvr.gvr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 04 Jan 2002 18:02:10 -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG One possibility is that the code in icmp_input() processing the PMTU discovery-induced ICMP message could verify that the returned header in fact is associated with a connection on the host and maybe even has sane sequence numbers (for TCP segments). This would make it more difficult to just spray these packets at host and drop the MTU on routes. louie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 15:12:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id E0EAC37B417 for ; Fri, 4 Jan 2002 15:11:56 -0800 (PST) Received: from pool0477.cvx22-bradley.dialup.earthlink.net ([209.179.199.222] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16MdV3-0004Mr-00; Fri, 04 Jan 2002 15:11:45 -0800 Message-ID: <3C3636B1.4D5F42A4@mindspring.com> Date: Fri, 04 Jan 2002 15:11:45 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Guido van Rooij Cc: William Carrel , freebsd-hackers@freebsd.org Subject: Re: path_mtu_discovery References: <26E71536-013D-11D6-8ED3-003065D5E9A4@infospace.com> <3C36149B.B9C02DCF@mindspring.com> <20020104223235.GA64301@gvr.gvr.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Guido van Rooij wrote: > > > ipfilter with 'keep state' on the connections will automatically allow > > > back in relevant ICMP messages such as mustfrag. > > > > Heh... I need to try to write a "mustfrag" daemon, which will > > spoof them back whenever it sees traffic... and see what happens. > > The sender will start sending smaller segments. That's it. > But if you are in the patch between sender and receiver you can do worse > things than that. I knew that I could multiply the number of packets sent by a factor of 5... I was pointing out a flaw in the idea of allowing path MTU ICMP back in, unconditionally... Now ask me how to DOS attack any server daemon that works by using the "sendfile" interface... PS: *Don't* ask me how the SYN-cache overflow SYN-cookie code can be ACK-flooded, to make the kernel spend all its time doing MD5 calculations, since that one is obvious... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 15:35:49 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id A114C37B417 for ; Fri, 4 Jan 2002 15:35:46 -0800 (PST) Received: from pool0477.cvx22-bradley.dialup.earthlink.net ([209.179.199.222] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16Mds8-0003RU-00; Fri, 04 Jan 2002 15:35:36 -0800 Message-ID: <3C363C47.1AE94141@mindspring.com> Date: Fri, 04 Jan 2002 15:35:35 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Louis A. Mamakos" Cc: Guido van Rooij , William Carrel , freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery References: <26E71536-013D-11D6-8ED3-003065D5E9A4@infospace.com> <3C36149B.B9C02DCF@mindspring.com> <20020104223235.GA64301@gvr.gvr.org> <200201042302.g04N2A789953@whizzo.transsys.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Louis A. Mamakos" wrote: > One possibility is that the code in icmp_input() processing the > PMTU discovery-induced ICMP message could verify that the returned > header in fact is associated with a connection on the host and > maybe even has sane sequence numbers (for TCP segments). This would > make it more difficult to just spray these packets at host and > drop the MTU on routes. Of course, now you've let the dirty little secret out of the bag: the MTU is on the *route*, which means on the next hop, so a spoof that got through would frag basically all traffic out of the victim machine down to 296 bytes... A client machine could do much worse, of course, fragging the inverse traceroute until the fragging was successful, after sending the SYN, in response to the server's "SYN-ACK"... The obvious "fix" for that is to not let the MTU be dropped if the last sent packet's size is smaller than the drop-to (can't use a "max successful" because of multiple routes and/or route assymetry). This would prevent doing it on the "SYN-ACK", or other small packet (maybe disallowing it entirely, until the first data packet has been sent). But the obvious "fix" for the obvious "fix" is to establish a connection, and then trigger the largest packet you can to be sent from the server (e.g. request a big HTTP document, which most initial pages in fact are). It's always an arms race... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 15:46:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from artemis.drwilco.net (artemis.drwilco.net [209.167.6.62]) by hub.freebsd.org (Postfix) with ESMTP id CA95637B416 for ; Fri, 4 Jan 2002 15:46:31 -0800 (PST) Received: from ceres.drwilco.net (docwilco.xs4all.nl [213.84.68.230]) by artemis.drwilco.net (8.11.6/8.11.6) with ESMTP id g04NkOR75870 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO); Fri, 4 Jan 2002 18:46:26 -0500 (EST) (envelope-from drwilco@drwilco.net) Message-Id: <5.1.0.14.0.20020105005135.01cf45a0@mail.drwilco.net> X-Sender: lists@mail.drwilco.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 05 Jan 2002 00:55:18 +0100 To: William Carrel , Terry Lambert From: "Rogier R. Mulhuijzen" Subject: Re: path_mtu_discovery Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: References: <3C36149B.B9C02DCF@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >I suppose we'll always get a couple hundred bytes in edgewise anyway, but >it all makes for an interesting exercise. I wonder about the robustness >of other operating systems to such an attack... I think malicious people will point their ears at this line here ^^ Maybe make the minimum size a sysctl? Set default at the current number and put it in a "how to make your FreeBSD more robust" document that this might be raised to a higher number? DocWilco To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 15:46:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by hub.freebsd.org (Postfix) with ESMTP id 6F9D837B405 for ; Fri, 4 Jan 2002 15:46:45 -0800 (PST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id g04NkdY53835; Fri, 4 Jan 2002 18:46:39 -0500 (EST) (envelope-from bicknell) Date: Fri, 4 Jan 2002 18:46:39 -0500 From: Leo Bicknell To: Terry Lambert Cc: "Louis A. Mamakos" , Guido van Rooij , William Carrel , freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery Message-ID: <20020104234639.GA53752@ussenterprise.ufp.org> Mail-Followup-To: Terry Lambert , "Louis A. Mamakos" , Guido van Rooij , William Carrel , freebsd-hackers@FreeBSD.ORG References: <26E71536-013D-11D6-8ED3-003065D5E9A4@infospace.com> <3C36149B.B9C02DCF@mindspring.com> <20020104223235.GA64301@gvr.gvr.org> <200201042302.g04N2A789953@whizzo.transsys.com> <3C363C47.1AE94141@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C363C47.1AE94141@mindspring.com> Organization: United Federation of Planets Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a message written on Fri, Jan 04, 2002 at 03:35:35PM -0800, Terry Lambert wrote: > Of course, now you've let the dirty little secret out of the > bag: the MTU is on the *route*, which means on the next hop, > so a spoof that got through would frag basically all traffic > out of the victim machine down to 296 bytes... I might be assuming something here, but I want to clarify. It is _NOT_ the case that a box with say, only a default route, would limit _ALL_ TCP connections to the lowest returned MTU. The MTU is on the *route*, where *route* == the cloned route, correct? -- Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 15:53:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from glenfiddich.infospace.com (mail1.infospace.com [206.29.197.33]) by hub.freebsd.org (Postfix) with SMTP id 8F56037B419 for ; Fri, 4 Jan 2002 15:53:48 -0800 (PST) Received: (qmail 4045 invoked from network); 4 Jan 2002 23:53:47 -0000 Received: from unknown (HELO stoli.inspinc.ad) (206.29.197.190) by mail1.infospace.com with SMTP; 4 Jan 2002 23:53:47 -0000 Received: (qmail 4150 invoked from network); 4 Jan 2002 23:53:47 -0000 Received: from rolf.inspinc.ad ([10.99.33.65]) (envelope-sender ) by stoli.inspinc.ad (qmail-ldap-1.03) with SMTP for ; 4 Jan 2002 23:53:47 -0000 Date: Fri, 4 Jan 2002 15:54:06 -0800 Subject: Re: path_mtu_discovery Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v480) From: William Carrel To: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable In-Reply-To: <20020104234639.GA53752@ussenterprise.ufp.org> Message-Id: <56AE006E-016E-11D6-9ED7-003065B4E0E8@infospace.com> X-Mailer: Apple Mail (2.480) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [reducing CC creep] On Friday, January 4, 2002, at 03:46 PM, Leo Bicknell wrote: > In a message written on Fri, Jan 04, 2002 at 03:35:35PM -0800, Terry=20= > Lambert wrote: >> Of course, now you've let the dirty little secret out of the >> bag: the MTU is on the *route*, which means on the next hop, >> so a spoof that got through would frag basically all traffic >> out of the victim machine down to 296 bytes... > > I might be assuming something here, but I want to clarify. It is > _NOT_ the case that a box with say, only a default route, would > limit _ALL_ TCP connections to the lowest returned MTU. > > The MTU is on the *route*, where *route* =3D=3D the cloned route, > correct? That is certainly the way that the relevant code looks to me. FWIW, this is really a rehash of the same topic that came up on Bugtraq=20= a couple years ago, and was cross-posted into freebsd-security at one=20 point. I'm not sure if anything came of it then. -- Andy Carrel - william.carrel@infospace.com - +1 (425) 201-8745 Se=F1or Systems Eng. - Corporate Infrastructure Applications - InfoSpace To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 15:56:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by hub.freebsd.org (Postfix) with ESMTP id C50AB37B506 for ; Fri, 4 Jan 2002 15:56:23 -0800 (PST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id g04NuM654093; Fri, 4 Jan 2002 18:56:22 -0500 (EST) (envelope-from bicknell) Date: Fri, 4 Jan 2002 18:56:22 -0500 From: Leo Bicknell To: William Carrel Cc: Terry Lambert , freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery Message-ID: <20020104235622.GA53844@ussenterprise.ufp.org> Mail-Followup-To: William Carrel , Terry Lambert , freebsd-hackers@FreeBSD.ORG References: <3C36149B.B9C02DCF@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: United Federation of Planets Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a message written on Fri, Jan 04, 2002 at 01:26:54PM -0800, William Carrel wrote: > See now you've made me curious, and I ask myself questions like: How > robust is PMTU-D against someone malicious who wants to make us send > tinygrams? Could the connection eventually be forced down to an MTU so > low that no actual data transfer could occur, or TCP frames with only > one byte of information? I don't have the RFC handy, but aren't all Internet connected hosts required to support a minimum MTU of 576 from end to end with no fragmentation? Thus if we ever got an MTU less than 576 we should ignore it. Right? -- Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 16: 5:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from artemis.drwilco.net (artemis.drwilco.net [209.167.6.62]) by hub.freebsd.org (Postfix) with ESMTP id D6CEC37B41A for ; Fri, 4 Jan 2002 16:05:31 -0800 (PST) Received: from ceres.drwilco.net (docwilco.xs4all.nl [213.84.68.230]) by artemis.drwilco.net (8.11.6/8.11.6) with ESMTP id g0505UR76403 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO) for ; Fri, 4 Jan 2002 19:05:33 -0500 (EST) (envelope-from drwilco@drwilco.net) Message-Id: <5.1.0.14.0.20020105011402.01d75230@mail.drwilco.net> X-Sender: drwilco@mail.drwilco.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 05 Jan 2002 01:14:24 +0100 To: freebsd-hackers@freebsd.org From: "Rogier R. Mulhuijzen" Subject: Re: path_mtu_discovery Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >I suppose so, but then you won't be able to connect to machines with >miniscule path MTU's, and that should definately be a warning. But then >it beats Linux which allows the path MTU to be reduced to 69 bytes (ouch!). Ouch indeed. Well default would be what we have now, but you'd be able to tune it. The way I see it is that the attack would be most common on the internet, and minuscule MTUs would most probably occur in specialistic environments. Admins of potential targets would raise the minimum to a nice value (say 512 or 1024), and print a message when something requests something below this minimum, for troubleshooting ease. Or maybe a soft limit and a hard limit. Soft limit triggers a message, hard limit is enforced. Out of curiosity, where do MTUs < ~512 occur? >The best solution is to try and make sure that the mustfrag messages are >coming from real connections we have open, and perhaps even, make sure >that the host on the remote end hasn't already ACK'ed a packet whose >header shows up in the ICMP mustfrag. (It would be kind of silly to get >an ACK and a mustfrag.) Although, then it is just a race to see who gets >their packet to us first. What about a mustfrag flood? Wouldn't this be a tad much to process? DocWilco To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 16: 5:57 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from artemis.drwilco.net (artemis.drwilco.net [209.167.6.62]) by hub.freebsd.org (Postfix) with ESMTP id 8A06637B405 for ; Fri, 4 Jan 2002 16:05:52 -0800 (PST) Received: from ceres.drwilco.net (docwilco.xs4all.nl [213.84.68.230]) by artemis.drwilco.net (8.11.6/8.11.6) with ESMTP id g0505qR76412 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO) for ; Fri, 4 Jan 2002 19:05:53 -0500 (EST) (envelope-from drwilco@drwilco.net) Message-Id: <5.1.0.14.0.20020105011436.01d16058@mail.drwilco.net> X-Sender: lists@mail.drwilco.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 05 Jan 2002 01:14:45 +0100 To: freebsd-hackers@freebsd.org From: "Rogier R. Mulhuijzen" Subject: Re: path_mtu_discovery Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >I don't have the RFC handy, but aren't all Internet connected hosts >required to support a minimum MTU of 576 from end to end with no >fragmentation? Thus if we ever got an MTU less than 576 we should >ignore it. Right? If we're on the internet yes. If you're in an environment other than one connected to the internet (do those even exist ) no. Hence my tuneable sysctl idea. DocWilco To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 16: 8:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by hub.freebsd.org (Postfix) with ESMTP id DD00337B405 for ; Fri, 4 Jan 2002 16:08:18 -0800 (PST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id g0508G154394; Fri, 4 Jan 2002 19:08:17 -0500 (EST) (envelope-from bicknell) Date: Fri, 4 Jan 2002 19:08:16 -0500 From: Leo Bicknell To: "Rogier R. Mulhuijzen" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery Message-ID: <20020105000816.GA54166@ussenterprise.ufp.org> Mail-Followup-To: "Rogier R. Mulhuijzen" , freebsd-hackers@FreeBSD.ORG References: <5.1.0.14.0.20020105011436.01d16058@mail.drwilco.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.0.20020105011436.01d16058@mail.drwilco.net> Organization: United Federation of Planets Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a message written on Sat, Jan 05, 2002 at 01:14:45AM +0100, Rogier R. Mulhuijzen wrote: > If we're on the internet yes. If you're in an environment other than one > connected to the internet (do those even exist ) no. > Hence my tuneable sysctl idea. I'll support a sysctl, however I'll also be quite insistant that our defaults match the Internet. I'm fairly sure more FreeBSD boxes are connected to the Internet than any other network. :-) -- Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 16:35:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from blackhelicopters.org (geburah.blackhelicopters.org [209.69.178.18]) by hub.freebsd.org (Postfix) with ESMTP id 26B4537B41B for ; Fri, 4 Jan 2002 16:35:22 -0800 (PST) Received: (from mwlucas@localhost) by blackhelicopters.org (8.11.6/8.11.6) id g050ZLS08334 for hackers@freebsd.org; Fri, 4 Jan 2002 19:35:21 -0500 (EST) (envelope-from mwlucas) Date: Fri, 4 Jan 2002 19:35:21 -0500 From: Michael Lucas To: hackers@freebsd.org Subject: usr.sbin/pkg_install/sign code error? Message-ID: <20020104193521.A8254@blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG So, I'm poking at pkg_sign, trying to see what it would take to enable GPG as well as PGP, and came across something that appears odd. (It might just be me, mind you.) Pointers to clue would be appreciated, if it's me. First, pkg_sign doesn't seem to work at all with PGP. I get no chance to enter a passphrase, as all this stuff scrolls past: pedicular~;pkg_sign imlib2-1.0.4.tgz Short-circuiting handle_pgp_passphrase Pretty Good Privacy(tm) 2.6.3ia - Public-key encryption for the masses. (c) 1990-96 Philip Zimmermann, Phil's Pretty Good Software. 1996-03-04 International version - not for use in the USA. Does not use RSAREF. Current time: 2002/01/05 00:19 GMT You specified no user ID to select your secret key, so the default user ID and key will be the most recently added key on your secret keyring. Error: Bad pass phrase. Signature error For a usage summary, type: pgp -h For more detailed help, consult the PGP User's Guide. Bus error (core dumped) pedicular~; So, I start tracing code. It seems fairly straightforward; at the point where pkg_sign should be getting a passphrase it calls handle_pgp_passphrase. ... void handle_pgp_passphrase() { pid_t pid; int fd[2]; char *p; printf("Short-circuiting %s\n", __FUNCTION__); return; /* Retrieve the pgp passphrase */ ... Now, it sure looks to me like the "return" statement on line 233 of pgp_sign.c unconditionally stops the action before you actually get the PGP passphrase, tie it to a fd so you can pass it to PGP, or anything else. Yet this is fairly new code, and I'd guess it is supposed to work... folks don't make a habit of committing b0rked code, after all. Am I just dumb, or does this really need correction? (And no, it doesn't work if you just whack out the printf and the return. :-) Thanks, ==ml -- Michael Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org my FreeBSD column: http://www.oreillynet.com/pub/q/Big_Scary_Daemons http://www.blackhelicopters.org/~mwlucas/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 16:38: 7 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from jim.go2net.com (jim.infospace.com [206.29.197.27]) by hub.freebsd.org (Postfix) with SMTP id D7DB137B405 for ; Fri, 4 Jan 2002 16:38:00 -0800 (PST) Received: (qmail 4269 invoked from network); 5 Jan 2002 00:03:16 -0000 Received: from unknown (HELO ketel.go2net.com) (206.29.197.197) by jim.infospace.com with SMTP; 5 Jan 2002 00:03:16 -0000 Received: (qmail 4375 invoked from network); 5 Jan 2002 00:03:16 -0000 Received: from rolf.inspinc.ad ([10.99.33.65]) (envelope-sender ) by ketel.inspinc.ad (qmail-ldap-1.03) with SMTP for ; 5 Jan 2002 00:03:16 -0000 Date: Fri, 4 Jan 2002 16:03:35 -0800 Subject: Re: path_mtu_discovery Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v480) Cc: Terry Lambert , freebsd-hackers@FreeBSD.ORG To: Leo Bicknell From: William Carrel In-Reply-To: <20020104235622.GA53844@ussenterprise.ufp.org> Message-Id: Content-Transfer-Encoding: quoted-printable X-Mailer: Apple Mail (2.480) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday, January 4, 2002, at 03:56 PM, Leo Bicknell wrote: > In a message written on Fri, Jan 04, 2002 at 01:26:54PM -0800, William=20= > Carrel wrote: >> See now you've made me curious, and I ask myself questions like: How >> robust is PMTU-D against someone malicious who wants to make us send >> tinygrams? Could the connection eventually be forced down to an MTU = so >> low that no actual data transfer could occur, or TCP frames with only >> one byte of information? > > I don't have the RFC handy, but aren't all Internet connected hosts > required to support a minimum MTU of 576 from end to end with no > fragmentation? Thus if we ever got an MTU less than 576 we should > ignore it. Right? RFC 879 (http://www.rfc.net/rfc879.html) would tend to disagree... (10) Gateways must be prepared to fragment datagrams to fit into the=20 packets of the next network, even if it smaller than 576 octets. -- Andy Carrel - william.carrel@infospace.com - +1 (425) 201-8745 Se=F1or Systems Eng. - Corporate Infrastructure Applications - InfoSpace To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 16:41:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by hub.freebsd.org (Postfix) with ESMTP id EA8CF37B41C for ; Fri, 4 Jan 2002 16:41:48 -0800 (PST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id g050flD55286; Fri, 4 Jan 2002 19:41:47 -0500 (EST) (envelope-from bicknell) Date: Fri, 4 Jan 2002 19:41:47 -0500 From: Leo Bicknell To: William Carrel Cc: Terry Lambert , freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery Message-ID: <20020105004147.GA55116@ussenterprise.ufp.org> Mail-Followup-To: William Carrel , Terry Lambert , freebsd-hackers@FreeBSD.ORG References: <20020104235622.GA53844@ussenterprise.ufp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: United Federation of Planets Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a message written on Fri, Jan 04, 2002 at 04:03:35PM -0800, William Carrel wrote: > RFC 879 (http://www.rfc.net/rfc879.html) would tend to disagree... > > (10) Gateways must be prepared to fragment datagrams to fit into the > packets of the next network, even if it smaller than 576 octets. Hmm, I'd swear there was a defined minimum, I may have the wrong one. For reference, it appears Cisco IOS based devices won't allow MTU smaller than 128 to be configured. I have no idea if that's based on some standard. It seems like there should be a minimum global standard. -- Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 16:52:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by hub.freebsd.org (Postfix) with ESMTP id AD01E37B422 for ; Fri, 4 Jan 2002 16:52:24 -0800 (PST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id g050qNS55602; Fri, 4 Jan 2002 19:52:23 -0500 (EST) (envelope-from bicknell) Date: Fri, 4 Jan 2002 19:52:23 -0500 From: Leo Bicknell To: "Rogier R. Mulhuijzen" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery Message-ID: <20020105005223.GA55340@ussenterprise.ufp.org> Mail-Followup-To: "Rogier R. Mulhuijzen" , freebsd-hackers@FreeBSD.ORG References: <5.1.0.14.0.20020105011402.01d75230@mail.drwilco.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.0.20020105011402.01d75230@mail.drwilco.net> Organization: United Federation of Planets Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a message written on Sat, Jan 05, 2002 at 01:14:24AM +0100, Rogier R. Mulhuijzen wrote: > >I suppose so, but then you won't be able to connect to machines with > >miniscule path MTU's, and that should definately be a warning. But then > >it beats Linux which allows the path MTU to be reduced to 69 bytes (ouch!). > > Ouch indeed. Well default would be what we have now, but you'd be able to > tune it. The way I see it is that the attack would be most common on the > internet, and minuscule MTUs would most probably occur in specialistic > environments. Admins of potential targets would raise the minimum to a nice > value (say 512 or 1024), and print a message when something requests > something below this minimum, for troubleshooting ease. Or maybe a soft > limit and a hard limit. Soft limit triggers a message, hard limit is > enforced. ftp://ftp.isi.edu/in-notes/rfc791.txt ] Every internet module must be able to forward a datagram of 68 ] octets without further fragmentation. This is because an internet ] header may be up to 60 octets, and the minimum fragment is 8 octets. And ] Every internet destination must be able to receive a datagram of 576 ] octets either in one piece or in fragments to be reassembled. Not as good as I hoped. So, it would seem the roadmap would look something like this: 1) Insure FreeBSD won't allow an MTU < 68 bytes ever. (ifconfig, icmp mtu messages, anything) 2) Implement a warning if the MTU is set smaller than some minimum value (perhaps 576 for the global internet) if admins which to see such things. 3) Allow admins to enforce a higher minimum size for servers in attack situations, knowing this violates the RFC. -- Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 18:42:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (Postfix) with ESMTP id 0B1F837CF87 for ; Fri, 4 Jan 2002 18:15:14 -0800 (PST) Received: from whizzo.transsys.com (#6@localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.11.6/8.11.6) with ESMTP id g052FB791341; Fri, 4 Jan 2002 21:15:11 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Message-Id: <200201050215.g052FB791341@whizzo.transsys.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Leo Bicknell Cc: William Carrel , Terry Lambert , freebsd-hackers@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: path_mtu_discovery References: <3C36149B.B9C02DCF@mindspring.com> <20020104235622.GA53844@ussenterprise.ufp.org> In-reply-to: Your message of "Fri, 04 Jan 2002 18:56:22 EST." <20020104235622.GA53844@ussenterprise.ufp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 04 Jan 2002 21:15:11 -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I don't have the RFC handy, but aren't all Internet connected hosts > required to support a minimum MTU of 576 from end to end with no > fragmentation? Thus if we ever got an MTU less than 576 we should > ignore it. Right? No, all hosts are required to be able to reassemble IP datagram fragments of at least 576 bytes, but there's no lower bound on the MTU of the interface. Small MTUs first appeared on low-bandwidth SLIP links. Along with TCP header compression, this put a lower-bound on how long you'd have to wait for a single packet to be transmitted on the interface. If your network interface was clever, and looked at the TOS bits in the header or peeked at the TCP port numbers, you could arrange to queue interactive traffic (telnet, rlogin, now ssh) ahead of non-interactive traffic (FTP, SMTP, etc.) to improve the perceived response time with remote character echos. If the MTU was large, a large FTP packet might just be starting its way out the interface when you want to transmit interactive traffic; the small MTU limits the pain. (Digression: NORTEL (at least) had an interesting encapsulation on their multiservice frame relay switch trunks where they could interrupt a packet being transmitted and insert delay sensitive traffic in the middle of a larger packet. Cool hack.) Also, even though this is on a cloned route, someone could attack "well known" routes that might be on your computer. For instance, the route to well-known recursive name servers on a network, which are pretty easy to guess for dial-up users on a modem pool. louie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 18:47: 0 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (Postfix) with ESMTP id A12F937D89D for ; Fri, 4 Jan 2002 18:31:55 -0800 (PST) Received: from whizzo.transsys.com (#6@localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.11.6/8.11.6) with ESMTP id g052Vt791486 for ; Fri, 4 Jan 2002 21:31:55 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Message-Id: <200201050231.g052Vt791486@whizzo.transsys.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg To: freebsd-hackers@FreeBSD.ORG From: "Louis A. Mamakos" Subject: what slice did I boot from? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 04 Jan 2002 21:31:55 -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I dunno if this has come up before or not, but thought I would ask. I've got one of the litle soekris net4501 boards that I use as a router/firewall/NAT box, and it works really good. I have a stripped down FreeBSD system that I run in a 16MB partition on an 32MB Compact Flash card plugged into the net4501. Actually, I have two 16MB slices, and my goal is to be running from one, and installing the "next" version into the second slice. That way, if the new one distribution screws up, I can back-out to the older on on the other partition. That problem is that I have to generate a distribution with the right /etc/fstab to reflect which of the two slices it will be installed into, which is ugly. What would be Really Nice is a version of the "compatibility" disk devices which would be associated with the "active" slice that was booted from, rather than the first FreeBSD slice found on the disk. This seems like one mechanism to get what I want. Unfortunately, this information doesn't seem to get propagated up to the slice code from what I can tell. Any suggestions on alternative mechanisms? louie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 18:48:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from pro.net.id (hyperion.pro.net.id [202.150.40.5]) by hub.freebsd.org (Postfix) with SMTP id E587537C243 for ; Fri, 4 Jan 2002 18:38:37 -0800 (PST) Received: (qmail 56556 invoked from network); 5 Jan 2002 02:36:15 -0000 Received: from unknown (HELO BLUESTAR) (202.150.39.229) by hyperion.pro.net.id with SMTP; 5 Jan 2002 02:36:15 -0000 From: "Thomas Wahyudi" To: Subject: sessionlimit Date: Sat, 5 Jan 2002 09:38:30 +0700 Message-ID: <006601c19592$101f38d0$e52796ca@BLUESTAR> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <20020105005223.GA55340@ussenterprise.ufp.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, if I want to change behavior of sessionlimit behavior in login.conf, where I should look first since I can't find it in /usr/src/libutil thx before. Best regards To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 18:56:51 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from search.sparks.net (d-207-5-180-136.gwi.net [207.5.180.136]) by hub.freebsd.org (Postfix) with ESMTP id 21CFB37B6FC for ; Fri, 4 Jan 2002 18:53:36 -0800 (PST) Received: by search.sparks.net (Postfix, from userid 100) id 36329D983; Fri, 4 Jan 2002 21:50:45 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by search.sparks.net (Postfix) with ESMTP id 28A97D982 for ; Fri, 4 Jan 2002 21:50:45 -0500 (EST) Date: Fri, 4 Jan 2002 21:50:45 -0500 (EST) From: David Miller To: freebsd-hackers@freebsd.org Subject: Overriding ARG_MAX Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Apologies if this belongs on -questions. I couldn't find what I needed in the archives or handbook. I have a system where I need/want to handle lots of files in a single directory. Lots as in 100-200K files. ls | wc -l breaks because the value of ARG_MAX in sys/syslimits.h is too small. If I change it from 65536 to 4meg and rebuild the world it works fine. I do cvsup from time to time and have to re-edit the file, which I usually forget. Is there a way to set this parameter in make.conf or the config file so it's always done when compiling the kernel? Thanks in advance, --- David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 19: 3:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 19C5C37B41B for ; Fri, 4 Jan 2002 19:03:05 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id g05333W21506; Fri, 4 Jan 2002 19:03:03 -0800 Date: Fri, 4 Jan 2002 19:03:03 -0800 From: Brooks Davis To: David Miller Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Overriding ARG_MAX Message-ID: <20020104190303.A21307@Odin.AC.HMC.Edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from dmiller@sparks.net on Fri, Jan 04, 2002 at 09:50:45PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 04, 2002 at 09:50:45PM -0500, David Miller wrote: > Apologies if this belongs on -questions. I couldn't find what I needed in > the archives or handbook. It almost certaintly did. > I have a system where I need/want to handle lots of files in a single > directory. Lots as in 100-200K files. ls | wc -l breaks because the > value of ARG_MAX in sys/syslimits.h is too small. If I change it from > 65536 to 4meg and rebuild the world it works fine. ls | xargs wc -l would work with an arbitrary number of files. > I do cvsup from time to time and have to re-edit the file, which I usually > forget. Is there a way to set this parameter in make.conf or the config > file so it's always done when compiling the kernel? One solution is to use cvsup to maintain a local copy of the cvs tree and check out source tree out using cvs. This will mean that cvs's automerging support will keep your changes untouched. You may have to resolve an occational conflict if something changes near your changes, but otherwise your changes will remain intact. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8NmzmXY6L6fI4GtQRAq8qAJ4xr/lV/WKqeT6YKytZqP1t9qUO0ACfemyN uOSnrqSHNqXh8lyZfI1meZU= =loof -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 19:49:10 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scaup.prod.itd.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by hub.freebsd.org (Postfix) with ESMTP id 98E6837B41E for ; Fri, 4 Jan 2002 19:49:07 -0800 (PST) Received: from pool0341.cvx40-bradley.dialup.earthlink.net ([216.244.43.86] helo=mindspring.com) by scaup.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16MhpM-0006z2-00; Fri, 04 Jan 2002 19:49:00 -0800 Message-ID: <3C3677AB.3E9BE6ED@mindspring.com> Date: Fri, 04 Jan 2002 19:48:59 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Miller Cc: freebsd-hackers@freebsd.org Subject: Re: Overriding ARG_MAX References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Miller wrote: > Apologies if this belongs on -questions. I couldn't find what I needed in > the archives or handbook. > > I have a system where I need/want to handle lots of files in a single > directory. Lots as in 100-200K files. ls | wc -l breaks because the > value of ARG_MAX in sys/syslimits.h is too small. If I change it from > 65536 to 4meg and rebuild the world it works fine. I don't believe you. There is no ARG_MAX limit on pipes. Probably, you are doing something whic you aren't telling us, like saying "ls *.c | wc -l" or otherwise using globbing that the shell expands to too large a list. The easy answer is "use ``find'' instead of ``ls''". -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 19:53:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scaup.prod.itd.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by hub.freebsd.org (Postfix) with ESMTP id 6525C37B405 for ; Fri, 4 Jan 2002 19:53:55 -0800 (PST) Received: from pool0341.cvx40-bradley.dialup.earthlink.net ([216.244.43.86] helo=mindspring.com) by scaup.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16Mhu5-0003vH-00; Fri, 04 Jan 2002 19:53:53 -0800 Message-ID: <3C3678D0.49B77037@mindspring.com> Date: Fri, 04 Jan 2002 19:53:52 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Brooks Davis Cc: David Miller , freebsd-hackers@FreeBSD.ORG Subject: Re: Overriding ARG_MAX References: <20020104190303.A21307@Odin.AC.HMC.Edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Brooks Davis wrote: > > I have a system where I need/want to handle lots of files in a single > > directory. Lots as in 100-200K files. ls | wc -l breaks because the > > value of ARG_MAX in sys/syslimits.h is too small. If I change it from > > 65536 to 4meg and rebuild the world it works fine. > > ls | xargs wc -l > > would work with an arbitrary number of files. No, it wouldn't. First off, you would be line counting the file contents, not the number of files. Second, the "ls" command alone will *never* hit ARG_MAX, and neither will "wc -l", if it's pipe'd to to count the number of files. He's obviously using a globbing expression he's not telling us about, and the message is from the shell expasion of the expression. Thirdly, even if it was the number of lines in the files he wanted to count, the totals will be off if xargs were to invoke "wc -l" multiple times, so the command as written can't work anyway. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 19:54:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from pimout5-int.prodigy.net (pimout5-ext.prodigy.net [207.115.63.98]) by hub.freebsd.org (Postfix) with ESMTP id 2F01337B41F for ; Fri, 4 Jan 2002 19:54:23 -0800 (PST) Received: from ensh (adsl-67-113-140-18.dsl.sntc01.pacbell.net [67.113.140.18]) by pimout5-int.prodigy.net (8.11.0/8.11.0) with ESMTP id g053sMe102458 for ; Fri, 4 Jan 2002 22:54:22 -0500 From: "Eric Busto" To: Subject: Phobos 4-port NIC Date: Fri, 4 Jan 2002 19:54:27 -0800 Message-ID: <000801c1959c$ac5987f0$128c7143@ensh> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4807.1700 In-Reply-To: <006601c19592$101f38d0$e52796ca@BLUESTAR> Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Howdy, I have recently acquired a pair of Phobos 4-port NIC's, the P430TX model. On it, it has 4 Intel 21143TD chips, and one larger Intel 21152AB chip. The driver (binary only) provided by Phobos is from 1999. Does FreeBSD have any support for this card? Perhaps by the dc or de drivers? If not, how difficult would it be to add it, keeping in mind I'm best described as a junior junior kernel hacker. :> Thanks in advance for any info. Regards, -Eric Busto To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 19:57: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from search.sparks.net (d-207-5-180-136.gwi.net [207.5.180.136]) by hub.freebsd.org (Postfix) with ESMTP id 8BD1637B41F for ; Fri, 4 Jan 2002 19:57:03 -0800 (PST) Received: by search.sparks.net (Postfix, from userid 100) id 26DE0D983; Fri, 4 Jan 2002 22:54:12 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by search.sparks.net (Postfix) with ESMTP id 0EB69D982; Fri, 4 Jan 2002 22:54:12 -0500 (EST) Date: Fri, 4 Jan 2002 22:54:11 -0500 (EST) From: David Miller To: Terry Lambert Cc: freebsd-hackers@freebsd.org Subject: Re: Overriding ARG_MAX In-Reply-To: <3C3677AB.3E9BE6ED@mindspring.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 4 Jan 2002, Terry Lambert wrote: > David Miller wrote: > > Apologies if this belongs on -questions. I couldn't find what I needed in > > the archives or handbook. > > > > I have a system where I need/want to handle lots of files in a single > > directory. Lots as in 100-200K files. ls | wc -l breaks because the > > value of ARG_MAX in sys/syslimits.h is too small. If I change it from > > 65536 to 4meg and rebuild the world it works fine. > > I don't believe you. There is no ARG_MAX limit on pipes. My apologies. Leo also noted that. I was trying to give a quick example to a general problem and I got a little too quick. What I usually want to do is something more like ls *.out |wc -l, or grep something *.data or cat *.foo | grep something. I have rebuilt the system in the past after greatly expanding ARG_MAX, and that does what I want. I'm just looking for an easy way to preserve it across cvsups, not looking for alternate ways to list the files in a directory:) > Probably, you are doing something whic you aren't telling us, > like saying "ls *.c | wc -l" or otherwise using globbing that > the shell expands to too large a list. > > The easy answer is "use ``find'' instead of ``ls''". Indeed, but it doesn't answer the basic questions, which was: Is there any easy way to override ARG_MAX (or arbitrary other paramaters) in make.conf or a config file, or something else altogether? --- David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 20: 6:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from magnesium.net (toxic.magnesium.net [207.154.84.15]) by hub.freebsd.org (Postfix) with SMTP id 83B8137B41E for ; Fri, 4 Jan 2002 20:06:18 -0800 (PST) Received: (qmail 50737 invoked by uid 1001); 5 Jan 2002 04:06:18 -0000 Date: Fri, 4 Jan 2002 20:06:18 -0800 From: Bill Swingle To: Eric Busto Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Phobos 4-port NIC Message-ID: <20020105040618.GA50566@dub.net> References: <006601c19592$101f38d0$e52796ca@BLUESTAR> <000801c1959c$ac5987f0$128c7143@ensh> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline In-Reply-To: <000801c1959c$ac5987f0$128c7143@ensh> User-Agent: Mutt/1.3.25i X-Operating-System: FreeBSD toxic.magnesium.net 4.4-STABLE FreeBSD 4.4-STABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I had a similar (if not identical) phobos card. Turned out to be supported. (Tulip I think) Pop it in a machine and see if it works :) -Bill On Fri, Jan 04, 2002 at 07:54:27PM -0800, Eric Busto wrote: > Howdy, >=20 > I have recently acquired a pair of Phobos 4-port NIC's, the P430TX > model. On it, it has 4 Intel 21143TD chips, and one larger Intel > 21152AB chip. >=20 > The driver (binary only) provided by Phobos is from 1999. Does FreeBSD > have any support for this card? Perhaps by the dc or de drivers? If > not, how difficult would it be to add it, keeping in mind I'm best > described as a junior junior kernel hacker. :> --=20 -=3D| Bill Swingle - -=3D| Every message PGP signed -=3D| Fingerprint: C1E3 49D1 EFC9 3EE0 EA6E 6414 5200 1C95 8E09 0223 -=3D| Different all twisty a of in maze are you, passages little --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8Nnu6UgAclY4JAiMRAotXAJ92cegwWt81JGlGKVHNlIa3AkMWfwCgvsEE 1G5d0M8G4V5NfwrCH8Fgqjo= =liLt -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 20:18:44 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by hub.freebsd.org (Postfix) with ESMTP id C01D637B405 for ; Fri, 4 Jan 2002 20:18:39 -0800 (PST) Received: (from babolo@localhost) by aaz.links.ru (8.9.3/8.9.3) id HAA11703; Sat, 5 Jan 2002 07:25:59 +0300 (MSK) Message-Id: <200201050425.HAA11703@aaz.links.ru> Subject: Re: what slice did I boot from? In-Reply-To: <200201050231.g052Vt791486@whizzo.transsys.com> from "Louis A. Mamakos" at "Jan 4, 2 09:31:55 pm" To: louie@TransSys.COM (Louis A. Mamakos) Date: Sat, 5 Jan 2002 07:25:58 +0300 (MSK) Cc: freebsd-hackers@FreeBSD.ORG From: "."@babolo.ru MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Louis A. Mamakos writes: > > I dunno if this has come up before or not, but thought I would ask. > > I've got one of the litle soekris net4501 boards that I use as a > router/firewall/NAT box, and it works really good. I have a stripped > down FreeBSD system that I run in a 16MB partition on an 32MB Compact > Flash card plugged into the net4501. Actually, I have two 16MB > slices, and my goal is to be running from one, and installing > the "next" version into the second slice. That way, if the new one > distribution screws up, I can back-out to the older on on the other > partition. > > That problem is that I have to generate a distribution with the > right /etc/fstab to reflect which of the two slices it will > be installed into, which is ugly. What would be Really Nice is > a version of the "compatibility" disk devices which would be > associated with the "active" slice that was booted from, rather > than the first FreeBSD slice found on the disk. This seems like > one mechanism to get what I want. Unfortunately, this information > doesn't seem to get propagated up to the slice code from what I can > tell. > > Any suggestions on alternative mechanisms? I usually swap whole partitions. For example label: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 254016, size 254016 (124 Meg), flag 80 (active) The data for partition 4 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 254016 (124 Meg), flag 0 and: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 254016 (124 Meg), flag 80 (active) The data for partition 4 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 254016, size 254016 (124 Meg), flag 0 on the same disk. -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 20:51:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from imo-m06.mx.aol.com (imo-m06.mx.aol.com [64.12.136.161]) by hub.freebsd.org (Postfix) with ESMTP id 836AF37B41F for ; Fri, 4 Jan 2002 20:51:07 -0800 (PST) Received: from SeamyCliff@netscape.net by imo-m06.mx.aol.com (mail_out_v31_r1.9.) id n.2e.2b6513e (16213) for ; Fri, 4 Jan 2002 23:50:59 -0500 (EST) Received: from netscape.net (adsl-64-108-120-109.dsl.applwi.ameritech.net [64.108.120.109]) by air-in01.mx.aol.com (v82.22) with ESMTP id MAILININ11-0104235059; Fri, 04 Jan 2002 23:50:59 -0500 Message-ID: <3C36886B.3040809@netscape.net> Date: Fri, 04 Jan 2002 23:00:27 -0600 From: SeamyCliff@netscape.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: A Helping Hand Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Whichever hacker, Upon reading section 3.1 in ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/4.4-RELEASE/floppies/README.TXT, I learned that you can always use a helping hand. I, however, do not know how to program just yet. The project aroused my interest, and I'd like to help out when I can. If you'd like, I'll take any and all advice provided on how to go about helping the freebsd team through recommended reads, practices, and people to talk to. I learn very fast, and I am quite aspiring. If you're interested, we could talk more on IRC. --Seamy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 20:55:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 13E9237B41A for ; Fri, 4 Jan 2002 20:55:37 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id g054tU025436; Fri, 4 Jan 2002 20:55:30 -0800 Date: Fri, 4 Jan 2002 20:55:30 -0800 From: Brooks Davis To: Terry Lambert Cc: David Miller , freebsd-hackers@FreeBSD.ORG Subject: Re: Overriding ARG_MAX Message-ID: <20020104205530.A25244@Odin.AC.HMC.Edu> References: <20020104190303.A21307@Odin.AC.HMC.Edu> <3C3678D0.49B77037@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3C3678D0.49B77037@mindspring.com>; from tlambert2@mindspring.com on Fri, Jan 04, 2002 at 07:53:52PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 04, 2002 at 07:53:52PM -0800, Terry Lambert wrote: > Brooks Davis wrote: > > > I have a system where I need/want to handle lots of files in a single > > > directory. Lots as in 100-200K files. ls | wc -l breaks because the > > > value of ARG_MAX in sys/syslimits.h is too small. If I change it from > > > 65536 to 4meg and rebuild the world it works fine. > >=20 > > ls | xargs wc -l > >=20 > > would work with an arbitrary number of files. >=20 > No, it wouldn't. Correct, I misread what he was trying to do. The second part of my answer is a working solution to do what he asked to do. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8NodCXY6L6fI4GtQRAh/TAKCalyiQyD7aXoDQnTB6ytsYqA+z4ACdFf84 KtaJ41gF5Npoi5Adj4hAYVQ= =AwjS -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jan 4 22: 2:30 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 04DD637B419 for ; Fri, 4 Jan 2002 22:02:28 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g0562Ql56517; Fri, 4 Jan 2002 23:02:27 -0700 (MST) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g0562Mx11431; Fri, 4 Jan 2002 23:02:26 -0700 (MST) (envelope-from imp@village.org) Date: Fri, 04 Jan 2002 23:02:18 -0700 (MST) Message-Id: <20020104.230218.17343558.imp@village.org> To: drwilco@drwilco.net Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery From: "M. Warner Losh" In-Reply-To: <5.1.0.14.0.20020105011402.01d75230@mail.drwilco.net> References: <5.1.0.14.0.20020105011402.01d75230@mail.drwilco.net> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <5.1.0.14.0.20020105011402.01d75230@mail.drwilco.net> "Rogier R. Mulhuijzen" writes: : Out of curiosity, where do MTUs < ~512 occur? Old slip links that used it to reduce latency. I suspect that there aren't too many of them left in the world. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 0:29:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from herbelot.dyndns.org (d211.dhcp212-198-26.noos.fr [212.198.26.211]) by hub.freebsd.org (Postfix) with ESMTP id 80D6D37B41C for ; Sat, 5 Jan 2002 00:29:44 -0800 (PST) Received: from herbelot.com (multi.herbelot.nom [192.168.1.2]) by herbelot.dyndns.org (8.9.3/8.9.3) with ESMTP id JAA56283; Sat, 5 Jan 2002 09:29:38 +0100 (CET) (envelope-from thierry@herbelot.com) Message-ID: <3C36B971.D1186E5C@herbelot.com> Date: Sat, 05 Jan 2002 09:29:37 +0100 From: Thierry Herbelot X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Eric Busto Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Phobos 4-port NIC References: <000801c1959c$ac5987f0$128c7143@ensh> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Eric Busto wrote: > > Howdy, > > I have recently acquired a pair of Phobos 4-port NIC's, the P430TX > model. On it, it has 4 Intel 21143TD chips, and one larger Intel > 21152AB chip. > Hello, this seems similar to the DLINK D570-TX 4-port NIC, which works very well with the dc driver -- Thierry Herbelot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 0:32:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from w250.z064001178.sjc-ca.dsl.cnc.net (w250.z064001178.sjc-ca.dsl.cnc.net [64.1.178.250]) by hub.freebsd.org (Postfix) with SMTP id D0FEE37B419 for ; Sat, 5 Jan 2002 00:32:26 -0800 (PST) Received: (qmail 72342 invoked by uid 1000); 5 Jan 2002 08:32:48 -0000 Date: Sat, 5 Jan 2002 00:32:25 -0800 From: Jos Backus To: freebsd-hackers@freebsd.org Subject: Bug in /bin/sh's handling of case ... esac? Message-ID: <20020105083247.GE90171@lizzy.bugworks.com> Reply-To: Jos Backus Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.25i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG While working with the apache-2.0 source I encountered the following construct in a config.status file, generated using autoconf 2.52: lizzy:/usr/src/bin/sh# cat /tmp/esac case "$foo" in esac lizzy:/usr/src/bin/sh# /bin/sh /tmp/esac /tmp/esac: 3: Syntax error: end of file unexpected (expecting ")") lizzy:/usr/src/bin/sh# However, POSIX 1003.1 says this construct is valid: The format for the case construct is as follows: case word in [(] pattern1) compound-list;; [[(] pattern[ | pattern] ... ) compound-list;;] ... [[(] pattern[ | pattern] ... ) compound-list] esac The ";;" is optional for the last compound-list. so I am concluding that we erroneously flag this as an error. Fwiw, zsh and bash accept this construct without complaining. The following patch seems to fix the problem, but I have _no_ idea whether this is the correct fix and what this breaks. Ideas, anyone? --- parser.c Sat Jan 5 00:23:27 2002 +++ parser.c.new Sat Jan 5 00:23:05 2002 @@ -429,6 +429,8 @@ noaliases = 1; /* turn off alias expansion */ checkkwd = 2, readtoken(); do { + if (lasttoken == TESAC) + break; *cpp = cp = (union node *)stalloc(sizeof (struct nclist)); cp->type = NCLIST; app = &cp->nclist.pattern; -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 1: 2:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.27in.tv (roc-66-24-112-7.rochester.rr.com [66.24.112.7]) by hub.freebsd.org (Postfix) with ESMTP id 1E59C37B41B; Sat, 5 Jan 2002 01:02:32 -0800 (PST) Received: (from root@localhost) by mail.27in.tv (8.11.6/8.11.6) id g0592VP29126; Sat, 5 Jan 2002 04:02:31 -0500 (EST) (envelope-from cjm2@earthling.net) Received: from maxpower (trilluser@maxpower.lan.27in.tv [10.0.0.250]) by mail.27in.tv (8.11.6/8.11.6av) with SMTP id g0592Bj29112; Sat, 5 Jan 2002 04:02:29 -0500 (EST) (envelope-from cjm2@earthling.net) From: "C J Michaels" To: "Greg Lehey" Cc: "FreeBSD Questions" , "FreeBSD Hackers" Subject: RE: Does FreeBSD have a problem with some AMD processors? Date: Sat, 5 Jan 2002 04:02:27 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <20011228181009.F95692@monorchid.lemis.com> X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greg, One question... are you using the latest mobo BIOS? My friend purchased that board and threw a 1.2GHz TBird in it. It was quite unstable until he upgraded the BIOS. When I purchased my board, it was the 1st thing I did and I haven't have any trouble with it yet. I've got a 1.1GHz and 3 128MB PC133 (mixed brands on top of it all) DIMMs in there. Lots-o-ATA devices, and I'm currently running 4.4-STABLE. The box is solid as a rock, have yet to cause it to panic/crash/etc... --Chris -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Greg Lehey Sent: Friday, December 28, 2001 2:40 AM To: FreeBSD Questions; FreeBSD Hackers Subject: Does FreeBSD have a problem with some AMD processors? I've been using AMD processors almost exclusively in my main work machines for over 4 years, and I've been very happy with them. I'm currently running a K6/233, a K6/333, an Athlon 750, a Duron 850 and an Athlon XP 1700. Last August, though, I bought a machine which gave me a lot of trouble, the Duron 850 mentioned above. I found that it would freeze for no apparent reason. I established that it wasn't the memory by taking the memory of another machine and running it like that; it made no difference. I ended up also changing the motherboard and the processor, but the hangs continued. I could expect a hang within 8 hours when doing 'make release' Just for the fun of it, I tried running Linux on it. I've been running a kernel build and 'make clean' on it now for 36 hours, and it's still running fine. Yesterday some Linux friends of mine came around and looked at it and told me that the Linux kernel I was running on the machine (2.4.16) had had a number of AMD-specific fixes put in. He didn't go into more detail, unfortunately, but I'll ask him again when I have time: it could be something relating to chipset bugs we have seen and fixed. It would help to know, though, if other people are experiencing similar problems. Please let me know if you're having problems with AMD processors which seem to be specific to FreeBSD, especially if they're hangs (i.e. the machine stops reacting, but the display still shows the last state, it doesn't reboot or panic). Information that could be interesting is (here my values): Processor: AMD Duron 850 Motherboard: ECS K7VZA Memory: 1 128 MB SIMM, 100 MHz. Greg -- For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 1: 7:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 8B32637B419 for ; Sat, 5 Jan 2002 01:07:35 -0800 (PST) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.11.3/8.10.1) with ESMTP id g0597w206284; Sat, 5 Jan 2002 01:07:58 -0800 (PST) Date: Sat, 5 Jan 2002 01:07:57 -0800 (PST) From: Doug White To: "Louis A. Mamakos" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: what slice did I boot from? In-Reply-To: <200201050231.g052Vt791486@whizzo.transsys.com> Message-ID: <20020105010254.T5794-100000@resnet.uoregon.edu> X-All-Your-Base: are belong to us MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 4 Jan 2002, Louis A. Mamakos wrote: > I've got one of the litle soekris net4501 boards that I use as a > router/firewall/NAT box, and it works really good. I have a stripped > down FreeBSD system that I run in a 16MB partition on an 32MB Compact > Flash card plugged into the net4501. Actually, I have two 16MB > slices, and my goal is to be running from one, and installing > the "next" version into the second slice. That way, if the new one > distribution screws up, I can back-out to the older on on the other > partition. I've actually been monkeying with this and ran into a bigger problem .. boot2 only knows how to handle one FreeBSD slice. You have to play loader(8) tricks to boot the second slice. Specifically... . abort the kernel load . 'set currdev=disk1s2a:' . 'load /boot/kernel/kernel' (and so forth) Particularly if you are running -CURRENT you must compile in your device hints, otherwise everything gets confused. For picking the appropriate slice, you are up a creek all right. Assumably at some point you have to select a slice anyway, and you can use that to rewrite fstab. Depending on the old compatibilty slice will certainly get you in hot water. I've been thinking about hacking up some forth to handle this switching programatically, so you get a nice menu to pick which FreeBSD slice to boot from if you enable the feature. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 1: 9:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id E3D8637B405 for ; Sat, 5 Jan 2002 01:09:10 -0800 (PST) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.11.3/8.10.1) with ESMTP id g05997w06292; Sat, 5 Jan 2002 01:09:21 -0800 (PST) Date: Sat, 5 Jan 2002 01:09:07 -0800 (PST) From: Doug White To: Thomas Wahyudi Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: sessionlimit In-Reply-To: <006601c19592$101f38d0$e52796ca@BLUESTAR> Message-ID: <20020105010822.L5794-100000@resnet.uoregon.edu> X-All-Your-Base: are belong to us MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 5 Jan 2002, Thomas Wahyudi wrote: > Hi all, if I want to change behavior of sessionlimit behavior in > login.conf, where I should look first since I can't find it in > /usr/src/libutil thx before. In a lot of cases, the capabilities have been defined but not actually implemented anywhere. sessionlimit may be one such option. I'd suggest checking login(8) since that's what generally enforces the limits (libutil just reads them). Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 3:19:51 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scaup.prod.itd.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by hub.freebsd.org (Postfix) with ESMTP id A31F837B41D for ; Sat, 5 Jan 2002 03:19:40 -0800 (PST) Received: from pool0024.cvx22-bradley.dialup.earthlink.net ([209.179.198.24] helo=mindspring.com) by scaup.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16MorT-0002WY-00; Sat, 05 Jan 2002 03:19:39 -0800 Message-ID: <3C36E14B.1FF8523C@mindspring.com> Date: Sat, 05 Jan 2002 03:19:39 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Miller Cc: freebsd-hackers@freebsd.org Subject: Re: Overriding ARG_MAX References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Miller wrote: > > Probably, you are doing something whic you aren't telling us, > > like saying "ls *.c | wc -l" or otherwise using globbing that > > the shell expands to too large a list. > > > > The easy answer is "use ``find'' instead of ``ls''". > > Indeed, but it doesn't answer the basic questions, which was: Is there any > easy way to override ARG_MAX (or arbitrary other paramaters) in make.conf > or a config file, or something else altogether? No, there is no easy way. The limit is there in the POSIX standard, and it exists because of the need to pass data from a parent to a child over a fork + exec. The correct answer is to use "find", and either pipe or call "xargs" on the output. No matter what you do, you are going to not overcome the limit on programs that are already built (like your shell), which includded the header file and referenced the manifest constant where the limit is defined. So compatability with exiting binary apoplications already limits any change you might want to make to this. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 3:22:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scaup.prod.itd.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by hub.freebsd.org (Postfix) with ESMTP id 7084537B416 for ; Sat, 5 Jan 2002 03:22:35 -0800 (PST) Received: from pool0024.cvx22-bradley.dialup.earthlink.net ([209.179.198.24] helo=mindspring.com) by scaup.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16MouG-0003Wp-00; Sat, 05 Jan 2002 03:22:32 -0800 Message-ID: <3C36E1F8.B64468C5@mindspring.com> Date: Sat, 05 Jan 2002 03:22:32 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "M. Warner Losh" Cc: drwilco@drwilco.net, freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery References: <5.1.0.14.0.20020105011402.01d75230@mail.drwilco.net> <20020104.230218.17343558.imp@village.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "M. Warner Losh" wrote: > In message: <5.1.0.14.0.20020105011402.01d75230@mail.drwilco.net> > "Rogier R. Mulhuijzen" writes: > : Out of curiosity, where do MTUs < ~512 occur? > > Old slip links that used it to reduce latency. I suspect that there > aren't too many of them left in the world. PPPOE over modem links can do this, as well. There are also intentional flow limits set on ATM muxes which implement the "leaky bucket" algorithm (c.v. Tom Ndousse, PhD's work on leaky bucket; I think he's at Arizona in Tucson, right now...). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 3:26:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gvr.gvr.org (gvr.gvr.org [212.61.40.17]) by hub.freebsd.org (Postfix) with ESMTP id A560437B416 for ; Sat, 5 Jan 2002 03:26:13 -0800 (PST) Received: by gvr.gvr.org (Postfix, from userid 657) id A891B5801; Sat, 5 Jan 2002 12:26:11 +0100 (CET) Date: Sat, 5 Jan 2002 12:26:11 +0100 From: Guido van Rooij To: Terry Lambert Cc: William Carrel , freebsd-hackers@freebsd.org Subject: Re: path_mtu_discovery Message-ID: <20020105112611.GA70493@gvr.gvr.org> References: <26E71536-013D-11D6-8ED3-003065D5E9A4@infospace.com> <3C36149B.B9C02DCF@mindspring.com> <20020104223235.GA64301@gvr.gvr.org> <3C3636B1.4D5F42A4@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C3636B1.4D5F42A4@mindspring.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 04, 2002 at 03:11:45PM -0800, Terry Lambert wrote: > > I knew that I could multiply the number of packets sent by a > factor of 5... I was pointing out a flaw in the idea of allowing > path MTU ICMP back in, unconditionally... Thre is nothing 'unconditionally' in ipfilter. The IP packetheader and the first 8 bytes of the UDP/ICMP/TCP header are examined and checked if they match a valid state entry. -Guido To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 5:38: 9 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web21107.mail.yahoo.com (web21107.mail.yahoo.com [216.136.227.109]) by hub.freebsd.org (Postfix) with SMTP id 3724B37B41B for ; Sat, 5 Jan 2002 05:38:08 -0800 (PST) Message-ID: <20020105133807.25689.qmail@web21107.mail.yahoo.com> Received: from [62.254.0.5] by web21107.mail.yahoo.com via HTTP; Sat, 05 Jan 2002 05:38:07 PST Date: Sat, 5 Jan 2002 05:38:07 -0800 (PST) From: Hiten Pandya Subject: About the MAKEDEV script To: hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi all, is it true, that the MAKEDEV script only appears if the DEVFS option in the kernel is not enabled, or I am talking nuts..? The reason I am asking is because, when I built my first CURRENT, the MAKEDEV script disappeared out of the blue. If I am right, will this be like that in the 4.5 release of FreeBSD? thanks, regards, - Hiten - ===== SSH Fingerprint: 1024 45:a5:9c:f2:fb:07:da:70:18:02:0b:f3:63:f1:7a:a6 hitenp@hpdi.ath.cx __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 5:51:48 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 1301B37B419 for ; Sat, 5 Jan 2002 05:51:46 -0800 (PST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.6/8.11.6) with ESMTP id g05DnSY44088; Sat, 5 Jan 2002 14:49:28 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Hiten Pandya Cc: hackers@FreeBSD.ORG Subject: Re: About the MAKEDEV script In-Reply-To: Your message of "Sat, 05 Jan 2002 05:38:07 PST." <20020105133807.25689.qmail@web21107.mail.yahoo.com> Date: Sat, 05 Jan 2002 14:49:28 +0100 Message-ID: <44086.1010238568@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20020105133807.25689.qmail@web21107.mail.yahoo.com>, Hiten Pandya w rites: >hi all, > >is it true, that the MAKEDEV script only appears if >the DEVFS option in the kernel is not enabled, or I >am talking nuts..? if DEVFS is in the kernel, it mounts over /dev and consequently you cannot see the MAKEDEV script. /dev/MAKEDEV should have lived in /etc from the beginning anyway... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 8:22:45 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web21106.mail.yahoo.com (web21106.mail.yahoo.com [216.136.227.108]) by hub.freebsd.org (Postfix) with SMTP id C41AD37B41A for ; Sat, 5 Jan 2002 08:22:39 -0800 (PST) Message-ID: <20020105162239.37340.qmail@web21106.mail.yahoo.com> Received: from [62.254.0.5] by web21106.mail.yahoo.com via HTTP; Sat, 05 Jan 2002 08:22:39 PST Date: Sat, 5 Jan 2002 08:22:39 -0800 (PST) From: Hiten Pandya Subject: about sysinstall(8) package managment To: hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi all, I was wondering that, the sysinstall(8) utility doesn't have package managment facilities designed for people to view even if they don't have some kind of connection to the media. Example: When you select the 'packages' option, it will ask you about your media type. If someone doesn't have any of the media, than, they wouldn't be able to know what packages are installed on their system. (Only by doing pkg_info, but not from sysinstall.. :) What I am suggesting is, that we can make a section in the sysinstall configure menu, where we can show all the currently installed packages, and we can link up the current pkg routines such as adding, removing, so that people can easily see what packages are installed, and they can also remove them from that menu.. let me know about your views on this.. thanks, regards, - Hiten - ===== SSH Fingerprint: 1024 45:a5:9c:f2:fb:07:da:70:18:02:0b:f3:63:f1:7a:a6 hitenp@hpdi.ath.cx __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 8:34:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (Postfix) with ESMTP id B7D8637B417 for ; Sat, 5 Jan 2002 08:34:12 -0800 (PST) Received: from whizzo.transsys.com (#6@localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.11.6/8.11.6) with ESMTP id g05GYA798375; Sat, 5 Jan 2002 11:34:11 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Message-Id: <200201051634.g05GYA798375@whizzo.transsys.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Doug White Cc: freebsd-hackers@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: what slice did I boot from? References: <20020105010254.T5794-100000@resnet.uoregon.edu> In-reply-to: Your message of "Sat, 05 Jan 2002 01:07:57 PST." <20020105010254.T5794-100000@resnet.uoregon.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 05 Jan 2002 11:34:10 -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On Fri, 4 Jan 2002, Louis A. Mamakos wrote: > > > I've got one of the litle soekris net4501 boards that I use as a > > router/firewall/NAT box, and it works really good. I have a stripped > > down FreeBSD system that I run in a 16MB partition on an 32MB Compact > > Flash card plugged into the net4501. Actually, I have two 16MB > > slices, and my goal is to be running from one, and installing > > the "next" version into the second slice. That way, if the new one > > distribution screws up, I can back-out to the older on on the other > > partition. > > I've actually been monkeying with this and ran into a bigger problem .. > boot2 only knows how to handle one FreeBSD slice. You have to play > loader(8) tricks to boot the second slice. > > Specifically... > . abort the kernel load > . 'set currdev=disk1s2a:' > . 'load /boot/kernel/kernel' (and so forth) > > Particularly if you are running -CURRENT you must compile in your device > hints, otherwise everything gets confused. Hmm.. I'm running a 4.4-STABLE based system on the hardware, and don't seem to have any problem booting off the other slice. Right now, it's runnong on the second slice of ATA Compact Flash disk: # kenv LINES="24" console="vidconsole" currdev="disk0s2a:" interpret="ok" kernel="/kernel" kernel_options="" kernelname="/kernel" loaddev="disk0s2a:" root_disk_unit="0" vfs.root.mountfrom="ufs:/dev/ad0s2a" # The other slice is ad0s1. And I checked, the kernel that's running actually did make it out of that slice, and not the first one. > For picking the appropriate slice, you are up a creek all right. > Assumably at some point you have to select a slice anyway, and you can use > that to rewrite fstab. Depending on the old compatibilty slice will > certainly get you in hot water. It would be just fine to have the boot0 boot manager be the mechanism to do all this. That's an easy toggle between the two alternatives, though harder to do an automatic fallback, perhaps. > I've been thinking about hacking up some forth to handle this switching > programatically, so you get a nice menu to pick which FreeBSD slice to > boot from if you enable the feature. Where this mechanism might be useful is to detect abnormal shutdowns (too many, too quickly) and use that to backup to the other partition. I dunno, that might be more complicated and automagic than I need for the moment, since the software seems fairly stable, and the hardware is accessable for manual diddling if necessary. I'm wondering if just generating the fstab on the fly might be sufficient; I should be able to use kenv to get the vfs.root.mountfrom loader variable (which strangely enough, isn't exported as a sysctl) and go from there. Hmm.. louie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 10:31:44 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by hub.freebsd.org (Postfix) with ESMTP id EFB7737B41A for ; Sat, 5 Jan 2002 10:31:40 -0800 (PST) Received: (from wkb@localhost) by freebie.xs4all.nl (8.11.6/8.11.6) id g05IVdr66156 for FreeBSD-hackers@freebsd.org; Sat, 5 Jan 2002 19:31:39 +0100 (CET) (envelope-from wkb) Date: Sat, 5 Jan 2002 19:31:39 +0100 From: Wilko Bulte To: FreeBSD hackers list Subject: psm weird on 4.5-PRERELEASE? Message-ID: <20020105193139.A66137@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-OS: FreeBSD 4.5-PRERELEASE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I just lost my mouse (well, it is a Kensington Orbit trackball) in the middle of an X session. The console says: pid 1597 (communicator-lin), uid 1000: exited on signal 10 (core dumped) psm0: failed to disable the device (psmclose). psm0: failed to get status (psmclose). psm0: failed to enable the device (doopen). This is on: FreeBSD freebie.xs4all.nl 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #3: Fri Jan 4 08:14:34 CET 2002 root@freebie.xs4all.nl:/usr/obj/usr/src/sys/FREEBIE i386 I killed moused and tried to restart it. Moused reported 'psm0 device not configured'. Never seen this before. Any clues? Wilko -- | / o / /_ _ email: wilko@FreeBSD.org |/|/ / / /( (_) Bulte Arnhem, The Netherlands To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 10:40:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by hub.freebsd.org (Postfix) with ESMTP id BB9DF37B41D for ; Sat, 5 Jan 2002 10:40:38 -0800 (PST) Received: by freesbee.wheel.dk (Postfix, from userid 1001) id 0A3995DD0; Sat, 5 Jan 2002 19:40:38 +0100 (CET) Date: Sat, 5 Jan 2002 19:40:38 +0100 From: Jesper Skriver To: "Louis A. Mamakos" Cc: Guido van Rooij , Terry Lambert , William Carrel , freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery Message-ID: <20020105194037.G28939@FreeBSD.org> Mail-Followup-To: Jesper Skriver , "Louis A. Mamakos" , Guido van Rooij , Terry Lambert , William Carrel , freebsd-hackers@FreeBSD.ORG References: <26E71536-013D-11D6-8ED3-003065D5E9A4@infospace.com> <3C36149B.B9C02DCF@mindspring.com> <20020104223235.GA64301@gvr.gvr.org> <200201042302.g04N2A789953@whizzo.transsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201042302.g04N2A789953@whizzo.transsys.com>; from louie@TransSys.COM on Fri, Jan 04, 2002 at 06:02:10PM -0500 X-PGP-Fingerprint: 6B88 9CE8 66E9 E631 C9C5 5EB4 22AB F0EC F956 1C31 X-PGP-Public-Key: http://freesbee.wheel.dk/~jesper/gpgkey.pub Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 04, 2002 at 06:02:10PM -0500, Louis A. Mamakos wrote: > > One possibility is that the code in icmp_input() processing the > PMTU discovery-induced ICMP message could verify that the returned > header in fact is associated with a connection on the host and > maybe even has sane sequence numbers (for TCP segments). The code does that today src/sys/netinet/tcp_subr.c in tcp_ctlinput() added in rev 1.94 on february 26th 2001 when it was moved from src/sys/netinet/in_pcb.c in_pcbnotify() added in rev 1.70 on december 24th 2000 > This would make it more difficult to just spray these packets at host > and drop the MTU on routes. /Jesper -- Jesper Skriver, jesper(at)skriver(dot)dk - CCIE #5456 Work: Network manager @ AS3292 (Tele Danmark DataNetworks) Private: FreeBSD committer @ AS2109 (A much smaller network ;-) One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone to bind them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 10:47:13 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from carbon.btinternet.com (carbon.btinternet.com [194.73.73.92]) by hub.freebsd.org (Postfix) with ESMTP id F173E37B41A; Sat, 5 Jan 2002 10:45:31 -0800 (PST) Received: from host213-123-134-22.in-addr.btopenworld.com ([213.123.134.22] helo=dvsgroup) by carbon.btinternet.com with esmtp (Exim 3.22 #8) id 16MvnT-0003k1-00; Sat, 05 Jan 2002 18:43:59 +0000 Received: from Spooler by dvsgroup (Mercury/32 v3.01a) ID MO005490; 5 Jan 02 18:42:38 -0000 Received: from spooler by dvsgroup (Mercury/32 v3.01a); 5 Jan 02 18:42:10 -0000 Received: from user (4.48.5.139) by dvsgroup (Mercury/32 v3.01a) ID MG005487; 5 Jan 02 18:41:08 -0000 From: smr1tks@oa.sharp.co.jp To: Subject: Five Dollar Reports Date: Sat, 05 Jan 2002 12:00:49 -0600 X-Priority: 3 X-MSMail-Priority: Normal Message-ID: <11BC4AF14ECC@dvsgroup> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dear Friend: AS SEEN ON NATIONAL TV: ''Making over half million dollars every 4 to 5 months from your home for an investment of only $25 U.S. Dollars expense one time'' THANKS TO THE COMPUTER AGE AND THE INTERNET! Before you say ''Bull'', please read the following. This is the letter you have been hearing about on the news lately. Due to the popularity of this letter on the Internet, a national weekly news program recently devoted an entire show to the investigation of this program described below, to see if it really can make people money. The show also investigated whether or not the program was legal. Their findings proved once and for all that there are ''absolutely NO Laws prohibiting the participation in the program and if people can follow the simple instructions, they are bound to make some mega bucks with only $25 out of pocket cost''. DUE TO THE RECENT INCREASE OF POPULARITY & RESPECT THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING BETTER THAN EVER. This is what one had to say: ''Thanks to this profitable opportunity. I was approached many times before but each time I passed on it. I am so glad I finally joined just to see what one could expect in return for the minimal effort and money required. To my astonishment, I received total $ 610,470.00 in21 weeks, with money still coming in''. Pam Hedland, Fort Lee, New Jersey. ------------------------------------------------------------------------- Here is another testimonial: 'This program has been around for a long time but I never believed in it, but one day when I received this again in the mail I decided to gamble my $25 on it. I followed the simple instructions and walaa ..... 3 weeks later the money started to come in. First month I only made $240.00 but the next 2 months after that I made a total of $290,000.00. So far, in the past 8 months by re-entering the program, I have made over $710,000.00 and I am playing it again. The key to success in this program is to follow the simple steps and NOTchange anything.'' More testimonials later but first, *** PRINT THIS NOW FOR YOUR FUTURE REFERENCE *** $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ If you would like to make at least $500,000 every 4 to 5 months easily and comfortably, please read the following...THEN READ IT AGAIN and AGAIN!!! $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS: **** Order all 5 reports shown on the list below. **** For each report, send $5CASH, THE NAME & NUMBER OF THE REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the person whose name appears ON THAT LIST next to the report. MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in case of any mail problems. **** When you place your order, make sure you order each of the 5 reports. You will need all 5 reports so that you can save them on your computer and resell them. YOUR TOTAL COST $5X 5 = $25.00. **** Within a few days you will receive, vie e-mail, each of the 5 reports from these 5 different individuals. Save them on your computer so they will be accessible for you to send to the 1,000's of people who will order them from you. Also make a floppy of these reports and keep it on your desk in case something happen to your computer. ****. IMPORTANT -DO NOT alter the names of the people who are listed next to each report, or their sequence on the list, in any way other than what is instructed below in step '' 1 through 6 '' or you will loose out on majority of your profits. Once you understand the way this works, you will also see how it does not work if you change it. Remember, this method has been tested, and if you alter, it will NOT work!!! People have tried to put their friends/relatives names on all five thinking they could get all the money. But it does not work this way. Believe us, we all have tried to be greedy and then nothing happened. So Do Not try to change anything other than what is instructed. Because if you do, it will not work for you. Remember, honesty reaps the reward!!! 1.. After you have ordered all 5 reports, take this advertisement and REMOVE the name & address of the person in REPORT # 5. This person has made it through the cycle and is no doubt counting their fortune. 2.... Move the name & address in REPORT #4down TO REPORT #5. 3.... Move the name & address in REPORT #3 down TO REPORT #4. 4.... Move the name & address in REPORT #2 down TO REPORT #3. 5.... Move the name & address in REPORT #1 down TO REPORT #2 6.... Insert YOUR name & address in the REPORT #1 Position. PLEASE MAKE SURE you copy every name & address ACCURATELY! ================================================= Take this entire letter, with the modified list of names, and save it on your computer. DO NOT MAKE ANY OTHER CHANGES. Save this on a disk as well just in case if you loose any data. To assist you with marketing your business on the Internet, the 5 reports you purchase will provide you with invaluable marketing information which includes how to send bulk e-mails legally, where to find thousands of free classified ads and much more. There are 2 Primary methods to get this venture going: METHOD # 1 : BY SENDING BULK E-MAIL LEGALLY ============================================ let's say that you decide to start small, just to see how it goes, and we will assume You and those involved send out only 5,000 e-mails each. Let's also assume that the mailing receive only a 0.2% response (the response could be much better but lets just say it is only 0.2% . Also many people will send out hundreds of thousands e-mails instead of only 5,000 each). Continuing with this example, you send out only 5,000 e-mails. With a 0.2%response, that is only 10 orders for report #1. Those 10people responded by sending out 5,000 e-mail each for a total of 50,000. Out of those 50,000 e-mails only 0.2% responded with orders. That's = 100 people responded and ordered Report #2. Those 100 people mail out 5,000 e-mails each for a total of 500,000 e-mails. The 0.2% response to that is 1000 orders for Report #3. Those 1000 people send out 5,000 e-mails each for a total of 5 million e-mails sent out. The 0.2% response to that is 10,000 orders for Report #4. Those 10,000 people send out 5,000 e-mails each for a total of 50,000,000 (50 million)e-mails. The 0.2% response to that is 100,000 orders for Report # 5. THAT'S 100,000 ORDERS TIMES $5 EACH = $500,000.00 (half million). Your total income in this example is: 1..... $50+ 2..... $500+ 3..... $5,000+ 4..... $50,000+ 5..... $500,000.........Grand Total = $555,550.00 NUMBERS DO NOT LIE. GET A PENCIL & PAPER AND FIGURE OUT THE WORST POSSIBLE RESPONSES AND NO MATTER HOW YOU CALCULATE IT, YOU WILL STILL MAKE A LOT OF MONEY! ------------------------------------------------------------------------ REMEMBER FRIEND, THIS IS ASSUMING ONLY 10 PEOPLE ORDERING OUT OF 5,000 YOU MAILED TO. Dare to think for a moment what would happen if everyone, or half or even one 4thof those people mailed 100,000 e-mails each or more? There are over 150 million people on the Internet worldwide and counting. Believe me, many people will do just that, and more! METHOD #2 : BY PLACING FREE ADS ON THE INTERNET =================================================== Advertising on the net is very very inexpensive and there are hundreds of FREE places to advertise. Placing a lot of free ads on the Internet will easily get a larger response. We strongly suggest you start with Method # 1 and add METHOD #2 as you go along. for every $5 you receive, all you must do is e-mail them the Report they ordered. That's it. Always provide same day service on all orders. This will guarantee that the e-mail they send out, with your name and address on it, will be prompt because they can not advertise until they receive the report. AVAILABLE REPORTS ORDER EACH REPORT BY ITS NUMBER & NAME ONLY. Notes: Always send $5 cash (U.S. CURRENCY) for each Report. Checks NOT accepted. Make sure the cash is concealed by wrapping it in at least 2 sheets of paper. On one of those sheets of paper, Write the NUMBER & the NAME of the Report you are ordering, YOUR E-MAIL ADDRESS and your name and postal address. PLACE YOUR ORDER FOR THESE REPORTS NOW: ============================================== Report #1:"The Insider's Guide to Advertising for Free on the Net" Order Report #1 from: G Rennox Suite 284 150 Clark Blvd Brampton, Ontario Canada, L6T 4Y8 CANADA ============================================== REPORT # 2: The Insider's Guide to Sending Bulk e-mail on the Net Order Report #2 from: MS Marketing 2714 West 5th North Platte, NE 69101 USA ============================================== REPORT #3: Secret to Multilevel marketing on the net Order Report #3 from: Clairemont Richards PO Box 611437 Rosemary Beach, FL 32461 USA ============================================== REPORT #4: "How to Become a Millionaire Utilizing MLM & the Net" Order Report # 4 from: Bartolomeli Vilela Po Box 1330 Marietta, GA 30061-1330 USA ============================================== REPORT #5: "How to Send Out 0ne Million e-mails for Free" Order Report # 5 from: Marketing Resources 1812 South Hwy 77 #115-179 Lynn Haven, FL 32444 USA $$$$$$$$$ YOUR SUCCESS GUIDELINES $$$$$$$$$$$ Follow these guidelines to guarantee your success: If you do not receive at least 10 orders for Report #1 within 2 weeks, continue sending e-mails until you do. After you have received 10 orders, 2 to 3 weeks after that you should receive 100 orders or more for REPORT #2. If you did not, continue advertising or sending e-mails until you do. Once you have received 100 or more orders for Report #2, YOU CAN RELAX, because the system is already working for you , and the cash will continue to roll in! THIS IS IMPORTANT TO REMEMBER: Every time your name is moved down on the list, you are placed in front of a different report. You can KEEP Track of your PROGRESS by watching which report people are ordering from you. IF YOU WANT TO GENERATE MORE INCOME SEND ANOTHER BATCH OF E-MAIL SAND START THE WHOLE PROCESS AGAIN. There is NO LIMIT to the income you can generate from this business!!! ____________________________________________________ FOLLOWING IS A NOTE FROM THE ORIGINATOR OF THIS PROGRAM: "You have just received information that can give you financial freedom for the rest of your life, with NO RISK and JUST A LITTLE BIT OF EFFORT. You can make more money in the next few weeks and months than you have ever imagined. Follow the program EXACTLY AS INSTRUCTED. Do Not change it in any way. It works exceedingly well as it is now. Remember to e-mail a copy of this exciting report after you have put your name and address in Report #1 and moved others to #2...........#5 as instructed above. One of the people you send this to may send out 100,000 or more e-mails and your name will be on everyone of them. Remember though, the more you send out the more potential customers you will reach. So my friend, I have given you the ideas, information, materials and opportunity to become financially independent. IT IS UP TO YOU NOW! ************** MORETESTIMONIALS**************** ' My name is Mitchell. My wife, Jody and I live in Chicago. I am an accountant with a major U.S. Corporation and I make pretty good money. When I received this program I grumbled to Jody about receiving ''junk mail''. I made fun of the whole thing, spouting my knowledge of the population and percentages involved. I ''knew'' it wouldn't work. Jody totally ignored my supposed intelligence and few days later she jumped in with both feet. I made merciless fun of her, and was ready to lay the old ''I told you so'' on her when the thing didn't work. Well, the laugh was on me! Within 3 weeks she had received 50 responses. Within the next 45 days she had received a total of $ 147,200.00 all cash!I was shocked. I have joined Jody in her ''hobby''. Mitchell Wolf, M.D. , Chicago, Illinois ------------------------------------------------------------------------- Not being the gambling type, it took me several weeks to make up my mind to participate in this plan. But conservative that I am, I decided that the initial investment was so little that there was just no way that I wouldn't get enough orders to at least get my money back. I was surprised when I found my medium size post office box crammed with orders. I made $319,210.00 in the first 12 weeks. The nice thing about this deal is that it does not matter where people live. There simply isn't a better investment with a faster return and so big''. Dan Sondstrom, Alberta, Canada ------------------------------------------------------------------------- 'I had received this program before. I deleted it, but later I wondered if I should have given it a try. Of course, I had no idea who to contact to get another copy, so I had to wait until I was e- mailed again by someone else.........11 months passed then it luckily came again...... I did not delete this one! I made more than $490,000 on my first try and all the money came within 22 weeks''. Susan De Suza, New York, N.Y. ----------------------------------------------------------------------- '' It really is a great opportunity to make relatively easy money with little cost to you. I followed the simple instructions and within 10 days the money started to come in. My first month I made $ 20, 560.00 and by the end of third month my total cash count was $ 362,840.00. Life is beautiful, Thanx to Internet''. Fred Dellaca, Westport, New Zealand ------------------------------------------------------------------------- ORDER YOUR REPORTS TODAY AND GET STARTED ON OUR ROAD TO FINANCIAL FREEDOM! ================================================= If you have any questions of the legality of this program, contact the Office of Associate Director for Marketing Practices, Federal Trade Commission, Bureau of Consumer Protection, Washington, D.C. his message is sent in compliance of the proposed bill SECTION 301. per Section 301, Paragraph (a)(2)(C) of S. 1618. Further transmission to you by the sender of this e-mail may be stopped promptly by sending a reply with the word REMOVE in the subject Line to the email address at the top of this page. This message is not intended for residents in the State of Washington, screening of addresses has been done to the best of our technical ability. _____________________________________________ to be removed randall5050us@yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 10:52:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 8C12537B416 for ; Sat, 5 Jan 2002 10:52:14 -0800 (PST) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.11.3/8.10.1) with ESMTP id g05IqYP30145; Sat, 5 Jan 2002 10:52:34 -0800 (PST) Date: Sat, 5 Jan 2002 10:52:34 -0800 (PST) From: Doug White To: "Louis A. Mamakos" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: what slice did I boot from? In-Reply-To: <200201051634.g05GYA798375@whizzo.transsys.com> Message-ID: <20020105105058.U5794-100000@resnet.uoregon.edu> X-All-Your-Base: are belong to us MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 5 Jan 2002, Louis A. Mamakos wrote: > Hmm.. I'm running a 4.4-STABLE based system on the hardware, and > don't seem to have any problem booting off the other slice. Right > now, it's runnong on the second slice of ATA Compact Flash disk: > > # kenv > LINES="24" > console="vidconsole" > currdev="disk0s2a:" > interpret="ok" > kernel="/kernel" > kernel_options="" > kernelname="/kernel" > loaddev="disk0s2a:" > root_disk_unit="0" > vfs.root.mountfrom="ufs:/dev/ad0s2a" > # You're playing the same trick I am, just in more words :) Which slice is loader.conf on? > It would be just fine to have the boot0 boot manager be the mechanism > to do all this. That's an easy toggle between the two alternatives, > though harder to do an automatic fallback, perhaps. You try boot0 ... that's where my problem showed up. One would boot but the other says "Invalid partition." This is a heavily hacked install though (since sysinstall won't let you put a second / into a second slice when a first FreeBSD slice already exists). Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 10:57:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 3BB3E37B419 for ; Sat, 5 Jan 2002 10:56:43 -0800 (PST) Received: from caddis.yogotech.com (caddis.yogotech.com [206.127.123.130]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id LAA20413; Sat, 5 Jan 2002 11:55:54 -0700 (MST) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g05ItnR90527; Sat, 5 Jan 2002 11:55:49 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15415.19507.503984.613417@caddis.yogotech.com> Date: Sat, 5 Jan 2002 11:55:47 -0700 To: "M. Warner Losh" Cc: drwilco@drwilco.net, freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery In-Reply-To: <20020104.230218.17343558.imp@village.org> References: <5.1.0.14.0.20020105011402.01d75230@mail.drwilco.net> <20020104.230218.17343558.imp@village.org> X-Mailer: VM 6.96 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > : Out of curiosity, where do MTUs < ~512 occur? > > Old slip links that used it to reduce latency. I suspect that there > aren't too many of them left in the world. You'd be suprised. I measure SLIP's effeciency (in throughput) to be about 5-15% more effecient than PPP in older versions of FreeBSD (both using kernel versions, slip and ppp). Since both were using static configurations on both ends and the only traffic was TCP/IP, there was no reason to use PPP over SLIP so we opted for using the more effecient protocol. I can imagine this is SLIP is still more effecient than PPP in terms of CPU, although I haven't measured it in years. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 12:22:44 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from w250.z064001178.sjc-ca.dsl.cnc.net (w250.z064001178.sjc-ca.dsl.cnc.net [64.1.178.250]) by hub.freebsd.org (Postfix) with SMTP id 1717937B419 for ; Sat, 5 Jan 2002 12:22:40 -0800 (PST) Received: (qmail 88203 invoked by uid 1000); 5 Jan 2002 20:23:01 -0000 Date: Sat, 5 Jan 2002 12:22:39 -0801 From: Jos Backus To: freebsd-hackers@freebsd.org Subject: Re: Bug in /bin/sh's handling of case ... esac? Message-ID: <20020105202301.GH90171@lizzy.bugworks.com> Reply-To: Jos Backus Mail-Followup-To: freebsd-hackers@freebsd.org References: <20020105083247.GE90171@lizzy.bugworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020105083247.GE90171@lizzy.bugworks.com> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jan 05, 2002 at 12:32:25AM -0800, Jos Backus wrote: > case "$foo" in > esac > case word in > [(] pattern1) compound-list;; > [[(] pattern[ | pattern] ... ) compound-list;;] ... > [[(] pattern[ | pattern] ... ) compound-list] > esac Never mind, Alexey V. Neyman pointed out that there are no square brackets around the ``[(] pattern1) compound-list;;'' so at least one pattern needs to be present. zsh and bash are simply more forgivig in this case, presumably because there is no harm in doing so. But since empty case statements are mostly useless the standard behavior that flags them makes more sense. -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 12:49: 2 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id 352DD37B427 for ; Sat, 5 Jan 2002 12:48:34 -0800 (PST) Received: (from olli@localhost) by lurza.secnetix.de (8.11.6/8.11.6) id g05KmeW55815; Sat, 5 Jan 2002 21:48:40 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Date: Sat, 5 Jan 2002 21:48:40 +0100 (CET) Message-Id: <200201052048.g05KmeW55815@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG Reply-To: freebsd-hackers@FreeBSD.ORG Subject: Re: Overriding ARG_MAX In-Reply-To: X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.4-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Miller wrote: > What I usually want to do is something more like ls *.out |wc -l ls | grep '\.out$' | wc -l > or grep something *.data ls | grep '\.data$' | xargs grep something > or cat *.foo | grep something. ls | grep '\.foo$' | xargs cat | grep something In general, changing ARG_MAX is bad for several reasons. - It makes your commands nonportable. - It only hides the actual problem without really solving it. - It just moves the limit further away, but it doesn't remove it. The alternative commands that I suggested above are portable and work for _any_ number of files, no matter what the ARG_MAX limit is. Sure, they're a bit longer to type, but if you're concerned about that, then you could wrap them into small scripts or shell functions. Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 12:52:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from snipe.prod.itd.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id 61A8137B41A; Sat, 5 Jan 2002 12:52:51 -0800 (PST) Received: from pool0211.cvx21-bradley.dialup.earthlink.net ([209.179.192.211] helo=mindspring.com) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16MxoA-0005Oa-00; Sat, 05 Jan 2002 12:52:50 -0800 Message-ID: <3C376799.3611EB4@mindspring.com> Date: Sat, 05 Jan 2002 12:52:41 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Jesper Skriver Cc: "Louis A. Mamakos" , Guido van Rooij , William Carrel , freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery References: <26E71536-013D-11D6-8ED3-003065D5E9A4@infospace.com> <3C36149B.B9C02DCF@mindspring.com> <20020104223235.GA64301@gvr.gvr.org> <200201042302.g04N2A789953@whizzo.transsys.com> <20020105194037.G28939@FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jesper Skriver wrote: > On Fri, Jan 04, 2002 at 06:02:10PM -0500, Louis A. Mamakos wrote: > > One possibility is that the code in icmp_input() processing the > > PMTU discovery-induced ICMP message could verify that the returned > > header in fact is associated with a connection on the host and > > maybe even has sane sequence numbers (for TCP segments). > > The code does that today That's why you spoof the route between the machine and the next hop, after making a *valid* connection... The only think that can get around it is an overly anal hop count comparison (which could fail, if there were multiple equivalent routes), or turning off the ICMP (which is what started this thread in the first place). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 13: 2: 5 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from servidor1.cursosvirtuales.com.ar (www.cursosvirtuales.com.ar [200.10.104.198]) by hub.freebsd.org (Postfix) with ESMTP id 0325137B41B for ; Sat, 5 Jan 2002 13:02:01 -0800 (PST) Received: (from fpscha@localhost) by servidor1.cursosvirtuales.com.ar (8.11.1/8.11.1) id g05L2iW67469 for freebsd-hackers@freebsd.org; Sat, 5 Jan 2002 18:02:44 -0300 (ART) (envelope-from fpscha) From: "Fernando P. Schapachnik" Message-Id: <200201052102.g05L2iW67469@servidor1.cursosvirtuales.com.ar> Subject: SA_NODEFER and signal nesting To: freebsd-hackers@freebsd.org Date: Sat, 5 Jan 2002 18:02:44 -0300 (ART) X-From: Fernando Schapachnik Reply-To: fernando@cursosvirtuales.com.ar X-OS: FreeBSD 4.2 - http://www.freebsd.org X-Mailer: ELM [version 2.4ME+ PL87 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello: I'm trying to do Async I/O using O_ASYNC on sockets and handling SIGIO. My testing shows that even if I unblock SIGIO at the begining of the handler the kernel only delivers one level of nested signals. Ie: while the first SIGIO is being handled a second might arrive, but a third delivered signal does not reach the process. The same happens if I catch the signals with sigaction and specify SA_NODEFER. Same program on Linux can handle up to 23 nested signals. Is this a known behavior? Is there any way to change it? Thanks in advance for any pointer. Fernando P. Schapachnik fernando@cvi.com.ar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 13:11:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by hub.freebsd.org (Postfix) with ESMTP id CDA5237B429 for ; Sat, 5 Jan 2002 13:11:24 -0800 (PST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id g05LBOp76469 for freebsd-hackers@FreeBSD.ORG; Sat, 5 Jan 2002 16:11:24 -0500 (EST) (envelope-from bicknell) Date: Sat, 5 Jan 2002 16:11:24 -0500 From: Leo Bicknell To: freebsd-hackers@FreeBSD.ORG Subject: Re: Overriding ARG_MAX Message-ID: <20020105211124.GA76316@ussenterprise.ufp.org> Mail-Followup-To: freebsd-hackers@FreeBSD.ORG References: <200201052048.g05KmeW55815@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200201052048.g05KmeW55815@lurza.secnetix.de> Organization: United Federation of Planets Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ok, there are several issues here that I just have to point out. :-) In a message written on Sat, Jan 05, 2002 at 09:48:40PM +0100, Oliver Fromme wrote: > ls | grep '\.out$' | wc -l One process shorter: find -name "*.out" -maxdepth 0 | wc -l > ls | grep '\.data$' | xargs grep something Two problems, first use find, second use /dev/null: find -name "*.data" -maxdepth 0 | xargs grep something /dev/null > ls | grep '\.foo$' | xargs cat | grep somethingA A completely unnecessary use of cat. One of the often missed things is the use of /dev/null on grep in this case. If you grep a single file ("grep string file") then it prints the matches. If you grep multiple files ("grep string file1 file2") it prints the matches with the file name prepended. When using xargs, if the number of things to search results in just one being left for the last call to grep you will get all of your results prepended with the file name, except for the last file which will be just the results. Adding /dev/null insures grep always has 2 or more files. Another fix would be: find -name "*.data" -maxdepth 0 | xargs grep -H something I don't believe old grep's had -H though, which is where the /dev/null trick came from. In any event, using find is much better, not so much for this example, but because it allows you to do things like check permissions in a portable way: find -name "*.data" -perm 444 | xargs grep -H something You can't do that with ls | grep, since only the filenames make it to grep. -- Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 13:17:30 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 9588637B41A; Sat, 5 Jan 2002 13:17:05 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 3BF2F81D01; Sat, 5 Jan 2002 15:17:05 -0600 (CST) Date: Sat, 5 Jan 2002 15:17:05 -0600 From: Alfred Perlstein To: alc@freebsd.org Cc: tegge@freebsd.org, hackers@freebsd.org Subject: oddness in aio_procrundown? Message-ID: <20020105151705.Z82406@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ok: at about line 498 in vfs_aio.c: aiocbn = TAILQ_NEXT(aiocbe, plist); fp = fdp->fd_ofiles[aiocbe->uaiocb.aio_fildes]; /* * Under some circumstances, the aio_fildes and the file * structure don't match. This would leave aiocbe's in the * TAILQ associated with the socket and cause a panic later. * * Detect and fix. */ if ((fp == NULL) || (fp != aiocbe->fd_file)) fp = aiocbe->fd_file; So, basically if fp is NULL or not fp != aiocbe->fd_file then it's set to aiocbe->fd_file, doesn't that mean it should just be: fp = aiocbe->fd_file; Index: vfs_aio.c =================================================================== RCS file: /home/ncvs/src/sys/kern/vfs_aio.c,v retrieving revision 1.107 diff -u -r1.107 vfs_aio.c --- vfs_aio.c 2 Jan 2002 07:04:38 -0000 1.107 +++ vfs_aio.c 5 Jan 2002 21:21:00 -0000 @@ -496,17 +496,7 @@ for (aiocbe = TAILQ_FIRST(&ki->kaio_sockqueue); aiocbe; aiocbe = aiocbn) { aiocbn = TAILQ_NEXT(aiocbe, plist); - fp = fdp->fd_ofiles[aiocbe->uaiocb.aio_fildes]; - - /* - * Under some circumstances, the aio_fildes and the file - * structure don't match. This would leave aiocbe's in the - * TAILQ associated with the socket and cause a panic later. - * - * Detect and fix. - */ - if ((fp == NULL) || (fp != aiocbe->fd_file)) - fp = aiocbe->fd_file; + fp = aiocbe->fd_file; if (fp) { so = (struct socket *)fp->f_data; TAILQ_REMOVE(&so->so_aiojobq, aiocbe, list); -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 13:19:48 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from snipe.prod.itd.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id B4D3037B41F for ; Sat, 5 Jan 2002 13:18:24 -0800 (PST) Received: from pool0211.cvx21-bradley.dialup.earthlink.net ([209.179.192.211] helo=mindspring.com) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16MyCm-0005nO-00; Sat, 05 Jan 2002 13:18:17 -0800 Message-ID: <3C376D8D.CBEA1BF@mindspring.com> Date: Sat, 05 Jan 2002 13:18:05 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: fernando@cursosvirtuales.com.ar Cc: freebsd-hackers@freebsd.org Subject: Re: SA_NODEFER and signal nesting References: <200201052102.g05L2iW67469@servidor1.cursosvirtuales.com.ar> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Fernando P. Schapachnik" wrote: > I'm trying to do Async I/O using O_ASYNC on sockets and handling > SIGIO. My testing shows that even if I unblock SIGIO at the begining of the > handler the kernel only delivers one level of nested signals. Ie: while the > first SIGIO is being handled a second might arrive, but a third delivered > signal does not reach the process. Yes. Signals are persistant conditions, not events. > The same happens if I catch the signals with sigaction and specify > SA_NODEFER. Same program on Linux can handle up to 23 nested signals. Depending on Linux's behaviour, which is contrary to conformance to the POSIX standard, will make your code non-portable. > Is this a known behavior? Yes. Even better, it's standard. > Is there any way to change it? When you get the first SIGIO, set a flag (volatile) in the signal handler. In your main loop, check for the flag, and if it is present, use poll/select to verify that there is data pending, and while there is data pending, retrieve it. At most, you will recheck one extra time for a run of N events (N+1 times), and since you are concerned about N >= 23, this overhead is practically non-existant. If you want to avoid the "extra" system call, then switch to using non-blocking I/O, and when the number of bytes processed by the call is 0, then you are done with that iteration. This approach is portable between all versions of UNIX that support select or poll (you can conditionally compile the code based on the presence or absences of FD_SET_SIZE, or other manifest constants associated solely with the poll or select system calls, so the resulting code will be 100% portable source code). See also the source for the "init" program, which has to be able to reap child processes, and so has to do SIGCHLD or SIGCLD (depending on your flavor of UNIX) handling the same way. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 14:25:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id A6D4037B427 for ; Sat, 5 Jan 2002 14:25:10 -0800 (PST) Received: (from olli@localhost) by lurza.secnetix.de (8.11.6/8.11.6) id g05MPHf59931; Sat, 5 Jan 2002 23:25:17 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Date: Sat, 5 Jan 2002 23:25:17 +0100 (CET) Message-Id: <200201052225.g05MPHf59931@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG Reply-To: freebsd-hackers@FreeBSD.ORG Subject: Re: Overriding ARG_MAX In-Reply-To: <20020105211124.GA76316@ussenterprise.ufp.org> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.4-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Leo Bicknell wrote: > In a message written on Sat, Jan 05, 2002 at 09:48:40PM +0100, Oliver Fromme wro > te: > > ls | grep '\.out$' | wc -l > > One process shorter: find -name "*.out" -maxdepth 0 | wc -l OK, but I tried to be as portable as possible, while -maxdepth is not portable (e.g. Solaris doesn't have it). > > ls | grep '\.data$' | xargs grep something > > Two problems, first use find, second use /dev/null: > find -name "*.data" -maxdepth 0 | xargs grep something /dev/null But that one will give you different result than the original command. I'm well aware of the /dev/null issue, but this wasn't the question in the first place. > > ls | grep '\.foo$' | xargs cat | grep somethingA > > A completely unnecessary use of cat. Yep, already in the original command, so I kept it. (I had already typed a comment about "useless use of cat" in my mail, but deleted it again, thinking that it was intentional to achieve the same effect as grep -h.) > You can't do that with ls | grep, since only the filenames make it > to grep. You could do it with ls -l | awk, though. ;-) Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 15:30:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id B54A337B400 for ; Sat, 5 Jan 2002 15:30:36 -0800 (PST) Received: (from olli@localhost) by lurza.secnetix.de (8.11.6/8.11.6) id g05NUhc62650; Sun, 6 Jan 2002 00:30:43 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Date: Sun, 6 Jan 2002 00:30:43 +0100 (CET) Message-Id: <200201052330.g05NUhc62650@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG Reply-To: freebsd-hackers@FreeBSD.ORG Subject: Re: Overriding ARG_MAX In-Reply-To: <200201052048.g05KmeW55815@lurza.secnetix.de> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.4-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sorry for replying to myself, but this just came to my mind ... Oliver Fromme wrote: > David Miller wrote: > > What I usually want to do is something more like ls *.out |wc -l > > ls | grep '\.out$' | wc -l A smaller solution would be: echo *.out | wc -w Note that the ARG_MAX limitation does not apply to echo, because it is a shell-builtin. Similarly: > > or grep something *.data > > ls | grep '\.data$' | xargs grep something echo *.data | xargs grep something > > or cat *.foo | grep something. > > ls | grep '\.foo$' | xargs cat | grep something echo *.foo | xargs cat | grep something (Yes, I know, useless cat. The same can probably achieved like this: echo *.foo | xargs grep -h something ) Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 15:37:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (Postfix) with ESMTP id 4210E37B400 for ; Sat, 5 Jan 2002 15:37:36 -0800 (PST) Received: from whizzo.transsys.com (#6@localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.11.6/8.11.6) with ESMTP id g05NbY701185; Sat, 5 Jan 2002 18:37:34 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Message-Id: <200201052337.g05NbY701185@whizzo.transsys.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Doug White Cc: freebsd-hackers@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: what slice did I boot from? References: <20020105105058.U5794-100000@resnet.uoregon.edu> In-reply-to: Your message of "Sat, 05 Jan 2002 10:52:34 PST." <20020105105058.U5794-100000@resnet.uoregon.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 05 Jan 2002 18:37:34 -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On Sat, 5 Jan 2002, Louis A. Mamakos wrote: > > > Hmm.. I'm running a 4.4-STABLE based system on the hardware, and > > don't seem to have any problem booting off the other slice. Right > > now, it's runnong on the second slice of ATA Compact Flash disk: > > > > # kenv > > LINES="24" > > console="vidconsole" > > currdev="disk0s2a:" > > interpret="ok" > > kernel="/kernel" > > kernel_options="" > > kernelname="/kernel" > > loaddev="disk0s2a:" > > root_disk_unit="0" > > vfs.root.mountfrom="ufs:/dev/ad0s2a" > > # > > You're playing the same trick I am, just in more words :) Which slice is > loader.conf on? Sorry, I wasn't clear. I don't have any explicit configuration in my loader.conf; this is just the environment that the loader cooked up all by itself. Each slice has it's own own loader along with a complete root file system. > > It would be just fine to have the boot0 boot manager be the mechanism > > to do all this. That's an easy toggle between the two alternatives, > > though harder to do an automatic fallback, perhaps. > > You try boot0 ... that's where my problem showed up. One would boot but > the other says "Invalid partition." This is a heavily hacked install > though (since sysinstall won't let you put a second / into a second slice > when a first FreeBSD slice already exists). What you might try is making sure that the other partition starts on a cylinder boundary. I've noticed that the BIOS on some machines have real heartburn when the slice starts at some random location not coincident with a cylinder boundary. I don't know why, and I'm pretty sure I don't want to know :=) louie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 15:43:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from imo-m08.mx.aol.com (imo-m08.mx.aol.com [64.12.136.163]) by hub.freebsd.org (Postfix) with ESMTP id BEEEB37B416 for ; Sat, 5 Jan 2002 15:43:12 -0800 (PST) Received: from TD790@aol.com by imo-m08.mx.aol.com (mail_out_v31_r1.9.) id j.4f.1688d60a (1321); Sat, 5 Jan 2002 18:43:06 -0500 (EST) From: TD790@aol.com Message-ID: <4f.1688d60a.2968e98a@aol.com> Date: Sat, 5 Jan 2002 18:43:06 EST Subject: Re: Phobos 4-port NIC To: busto@sbcglobal.net Cc: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: AOL 5.0 for Windows sub 139 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a message dated 01/04/2002 10:54:51 PM Eastern Standard Time, busto@sbcglobal.net writes: > I have recently acquired a pair of Phobos 4-port NIC's, the P430TX > model. On it, it has 4 Intel 21143TD chips, and one larger Intel > 21152AB chip. > > The driver (binary only) provided by Phobos is from 1999. Does FreeBSD > have any support for this card? Perhaps by the dc or de drivers? If > not, how difficult would it be to add it, keeping in mind I'm best > described as a junior junior kernel hacker. :> > Uh, I'm wondering why anyone would care..considering that DLINK has fundamentally the same card and they are selling it for a ridiculously low price. Phobos always claimed "superiority", but its just a PCI bridge and (the same old) 21143 as all of the other 4 port cards (yawn)...if it doesnt work with the dc driver then I'd dump it. DB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 18: 9: 7 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from draco.over-yonder.net (draco.over-yonder.net [198.78.58.61]) by hub.freebsd.org (Postfix) with ESMTP id CD58D37B405 for ; Sat, 5 Jan 2002 18:09:05 -0800 (PST) Received: by draco.over-yonder.net (Postfix, from userid 100) id B5509FC2; Sat, 5 Jan 2002 20:09:04 -0600 (CST) Date: Sat, 5 Jan 2002 20:09:04 -0600 From: "Matthew D. Fuller" To: Stephen Montgomery-Smith Cc: freebsd-hackers@freebsd.org Subject: Re: Tell gcc I have a i686 Message-ID: <20020105200904.A23043@over-yonder.net> References: <3C35EE1B.484A6AD@math.missouri.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5-fullermd.1i In-Reply-To: <3C35EE1B.484A6AD@math.missouri.edu>; from stephen@math.missouri.edu on Fri, Jan 04, 2002 at 12:02:03PM -0600 X-Editor: vi X-OS: FreeBSD Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 04, 2002 at 12:02:03PM -0600 I heard the voice of Stephen Montgomery-Smith, and lo! it spake thus: > I want to create a Makefile for a C program that includes some Pentium > II specific inline assembler code. How do I tell the compiler whether > we are compiling on a i686? Dunno, how well will your Pentium II specific inline assembler code run on my Pentium Pro? -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Unix Systems Administrator | fullermd@futuresouth.com Specializing in FreeBSD | http://www.over-yonder.net/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 18:16:57 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from femail34.sdc1.sfba.home.com (femail34.sdc1.sfba.home.com [24.254.60.24]) by hub.freebsd.org (Postfix) with ESMTP id 9BA5237B400 for ; Sat, 5 Jan 2002 18:16:55 -0800 (PST) Received: from math.missouri.edu ([24.12.197.197]) by femail34.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20020106021655.IAXV10269.femail34.sdc1.sfba.home.com@math.missouri.edu>; Sat, 5 Jan 2002 18:16:55 -0800 Message-ID: <3C37B395.2558D84D@math.missouri.edu> Date: Sat, 05 Jan 2002 20:16:53 -0600 From: Stephen Montgomery-Smith X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Matthew D. Fuller" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Tell gcc I have a i686 References: <3C35EE1B.484A6AD@math.missouri.edu> <20020105200904.A23043@over-yonder.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Matthew D. Fuller" wrote: > > On Fri, Jan 04, 2002 at 12:02:03PM -0600 I heard the voice of > Stephen Montgomery-Smith, and lo! it spake thus: > > I want to create a Makefile for a C program that includes some Pentium > > II specific inline assembler code. How do I tell the compiler whether > > we are compiling on a i686? > > Dunno, how well will your Pentium II specific inline assembler code run > on my Pentium Pro? > You know, I have no idea. It is someone elses code. These are the instructions. Can anyone tell me? "movl 32(%0),%1\n" "adcl %1,32(%0)\n" Also, from this discussion, what I have decided to do is provide it as an option for the user to add by editing the Makefile - not to do it automatically. -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 18:28:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id E0F6437B420 for ; Sat, 5 Jan 2002 18:28:20 -0800 (PST) Received: from user-38lc2j1.dialup.mindspring.com ([209.86.10.97] helo=gohan.cjclark.org) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16N32k-0006KK-00; Sat, 05 Jan 2002 18:28:16 -0800 Received: (from cjc@localhost) by gohan.cjclark.org (8.11.6/8.11.1) id g060d0V09332; Sat, 5 Jan 2002 16:39:00 -0800 (PST) (envelope-from cjc) Date: Sat, 5 Jan 2002 16:39:00 -0800 From: "Crist J. Clark" To: Leo Bicknell Cc: "Rogier R. Mulhuijzen" , freebsd-hackers@FreeBSD.ORG Subject: Re: path_mtu_discovery Message-ID: <20020105163900.E204@gohan.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <5.1.0.14.0.20020105011436.01d16058@mail.drwilco.net> <20020105000816.GA54166@ussenterprise.ufp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020105000816.GA54166@ussenterprise.ufp.org>; from bicknell@ufp.org on Fri, Jan 04, 2002 at 07:08:16PM -0500 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 04, 2002 at 07:08:16PM -0500, Leo Bicknell wrote: > In a message written on Sat, Jan 05, 2002 at 01:14:45AM +0100, Rogier R. Mulhuijzen wrote: > > If we're on the internet yes. If you're in an environment other than one > > connected to the internet (do those even exist ) no. > > Hence my tuneable sysctl idea. > > I'll support a sysctl, however I'll also be quite insistant that > our defaults match the Internet. I'm fairly sure more FreeBSD > boxes are connected to the Internet than any other network. :-) I'd support it if anyone actually has any credible evidence that such attacks have ever occured. Or if there is are plausible ways to attack that don't require someone to sniff and inject into a connection in which the victim is participating (if you can do that, you can do much worse). The typical SYN flood or DDOS are real threats. This thread (and the previous ones like the one Darren started a few months back) have already expended more energy on the issue than the threat warrants. -- "It's always funny until someone gets hurt. Then it's hilarious." Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jan 5 22:29:46 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from antigonus.hosting.swbell.net (antigonus.hosting.swbell.net [216.100.98.4]) by hub.freebsd.org (Postfix) with ESMTP id 1A59937B402; Sat, 5 Jan 2002 22:29:41 -0800 (PST) Received: from imimic.com (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) by antigonus.hosting.swbell.net id BAA28108; Sun, 6 Jan 2002 01:29:16 -0500 (EST) [ConcentricHost SMTP Relay 1.7] Message-ID: <3C37EEBB.5F88F2A@imimic.com> Date: Sun, 06 Jan 2002 00:29:15 -0600 From: "Alan L. Cox" Organization: iMimic Networking, Inc. X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Alfred Perlstein Cc: tegge@freebsd.org, hackers@freebsd.org Subject: Re: oddness in aio_procrundown? References: <20020105151705.Z82406@elvis.mu.org> Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > > ok: > > at about line 498 in vfs_aio.c: > > aiocbn = TAILQ_NEXT(aiocbe, plist); > fp = fdp->fd_ofiles[aiocbe->uaiocb.aio_fildes]; > > /* > * Under some circumstances, the aio_fildes and the file > * structure don't match. This would leave aiocbe's in the > * TAILQ associated with the socket and cause a panic later. > * > * Detect and fix. > */ > if ((fp == NULL) || (fp != aiocbe->fd_file)) > fp = aiocbe->fd_file; > > So, basically if fp is NULL or not fp != aiocbe->fd_file then it's > set to aiocbe->fd_file, doesn't that mean it should just be: > > fp = aiocbe->fd_file; > I can't explain this bit of weirdness. It existed in the original commit that added support for AIO on sockets. Alan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message