From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2001-12-22 07:51:00 PST Date: Sat, 22 Dec 2001 16:51:22 +0100 Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va Organization: Home Message-ID: Subject: Re: Congratulations for the festive season From: Paul Sture Reply-To: paul.sture@bluewin.ch References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C1ED472.7040102@qsl.network> <9vnh67$cct$1@bob.news.rcn.net> NNTP-Posting-Host: 213.3.126.136 X-Trace: 22 Dec 2001 16:50:56 +0100, 213.3.126.136 X-Complaints-To: abuse@bluewin.ch Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news-ge.switch.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!news.bluewin.ch!awk.sture.ch!nobody Xref: archiver1.google.com comp.os.vms:56803 alt.sys.pdp10:8628 comp.sys.dec:10165 In article , John J Francini wrote: > For better or for worse, Mark Crispin is not a troll. He has worked on > PDP-10 systems for many, many years and wrote many useful programs for the > 10/20 community. > > He also has a way of being divisive. > I've never heard of the guy before this. First impressions count. > While he's probably baiting people in the newsgroup (and has obviously > grown more ornery compared to his prior posts from 16 years ago (see the > one that Alan Grieg dug up from 1984 via Google which was much more > balanced), I don't think he deserves killfile status. I have to agree that Alan's example showed him in a completely different light. As to killfile status, life is sometimes too short... > > I do not know Mark at all, have never met him, and disagree with several of > his positions. However, I don't like seeing someone who is very much a > part of the PDP-10 family considered an ordinary USENET troll. > > In the post that you decided was baiting by a troll, he posits a VERY > important question. > > UNIX systems can often be made to misbehave, grant privleged access to > users who don't deserve it, and even crash by being handed more data than > they're expecting to handle -- the buffer overflow problem. So can other > modern OSes and applications. It's a pervasive, pernicious problem that > plagues much software developed today. > > The most obvious one that comes to mind is just a few years ago when a > bunch of UNIX vendors, as well as Microsoft and Apple, had to issue patches > for a problem where ICMP (ping) packets that were larger than the OS > expected would cause crashes. > > According to one paper published by the Oregon Graduate Institute of > Science and Technology, summarized in a C|NET article (see pointer below), > the buffer overflow was the biggest computer vulnerability of the 90s. > UNIX had plenty of them; Windows and applications like Exchange are riddled > with them. > > The article is here: > > Why? Because the logic to painstakingly check the data being handed to > kernel and driver routines for sizing problems, data type mismatches, or > invalid content was left out or incomplete, especially in early > implementations. Why was it left out? Because it costs people time to > write these checks, they take up space in the code, and it costs CPU time > to execute them. UNIX was initially implemented first on the DEC PDP-7 and > then almost immediately ported to the PDP-11. Address space was at a > premium. Significant error checking was a luxury. > I never used a PDP-7, but PDP-11s running RT-11 then RSX, yes. My bias has always been towards commercial applications, where I/O is more often than not the bottleneck. Comprehensive error checking has always been part of that culture, for me at least (although I _have_ seen some pretty diabolical lapses by others along the way). > Many of the older OSes, including Multics, TOPS-10/20, and also including > VMS, were designed by people who cared deeply about making sure the OS > would keep running and would stay secure. > > Here's a pithy example of the difference. The following quote is from the > Multics history site at www.multicians.org. It's a snippet of the page > , in which Tom Van Vleck, one of the > longtime Multics designers, discusses the relationship between Multics and > its famous child, UNIX: > > "I was working for MIT in those days, and one thing I did was to > organize an MIT PDP-11 users' group and encourage them to look into > Unix. The idea of a free, non-vendor-supported operating system was new > to them. I invited Dennis Ritchie [one of the founders of UNIX] to come > up and talk to them. > > "We went to lunch afterward, and I remarked to Dennis that easily half > the code I was writing in Multics was error recovery code. He said, "We > left all that stuff out. If there's an error, we have this routine > called panic, and when it is called, the machine crashes, and you > holler > down the hall, 'Hey, reboot it.'" " > Interesting story, thanks. It does rather confirm a long held suspicion of mine... > Hence, buffer overflows and other nastiness. This philosophy is by NO > MEANS restricted to Unix; it is very much evident in Microsoft-written OSes > and applications (like Exchange, IIS, and many others), as well as plenty > of other products. It's evident when keeping to software schedules > determined by marketing expediencies is deemed more important than spending > the time to do a correct design and to test every conceivable failure mode. > It's evident any time that developers decide to not bother writing error > checking code because it's "not interesting" and are allowed to get away > with it because doing so will impact schedules. > I came across similar examples in NT a few years ago. Not just buffer overflows but the opposite when a stray null got into a string, effectively truncating it (I call it buffer underflow (tm) :-) ). I can distinctly recall tracking down an example of file date/time conversions in NT (they are quite sensibly held on disk as UTC date/times in NTFS). With my background it was quite a surprise when the example I found did _no error checking whatsoever_. Needless to say, my rewrite of it did. Actually the buffer "underflow"/overflow problem has also stung me with COBOL programs on VMS where someone from a C background decided not to bother checking a length parameter, but look for a null instead. Nasty. I've always been used to passing binary buffers to and from subroutines, usually by one of the following methods: o - counted strings o - a length parameter o - passed by descriptor as per the VMS calling standard (if on VMS) And always returned some kind of error code, which I check. Guess what? I've disliked null terminated strings ever since I came across them, at that was long before I picked up my first book on C. Further, when I was supporting literally hundreds of COBOL programs, I quietly sneaked in the compiler options /CHECK=(PERFORM,BOUNDS). The resulting error reports made fixing problems in those areas child's play. The processor overhead was trivial in comparison to the rest of the workload. > This is a long reply, and has wandered somewhat off the topic, but the > point is still fairly clear: Mark Crispin is NOT a troll, even if he is > fanning the flames a fair bit. His points _do_ have merit. > I too have wandered off, but I felt your response was worth a rational reply. You also have private email :-) ___ Paul Sture Switzerland