Subject: Linux-Development Digest #124
From: Digestifier <[email-masked]>
To: [email-masked]
Date: Mon, 5 Sep 94 14:13:06 EDT

Linux-Development Digest #124, Volume #2          Mon, 5 Sep 94 14:13:06 EDT

Contents:
  Re: WARNING about shadow-mk package (Patrick Reijnen)
  Resolver Expert ? (Andrew Benham)
  Re: Digi Intelligent Boards? (Phil Hughes)
  Re: time speeds up (David Monro)
  Re: WARNING about shadow-mk package (Larry Doolittle)
  Re: Future of linux -- the sequel (Louis-D. Dubeau)
  Re: [HELP]  NIGHTMARE CONFIGURING THE NETWORK WITH A 3C503/16 PLEASE HELP !! (Thomas Quinot)
  HORRIBLE SWAP THRASHING BUG(feature?) (please try this) (Russell Leighton)
  Re: [HELP]  NIGHTMARE CONFIGURING THE NETWORK WITH A 3C503/16 PLEASE HELP !! (Miguel de Icaza)
  How to get lib*.sa  in addition to lib*.a (Jingsong Li)
  BUG Report for SCSI developers 1.1.49 (BARRY TITMARSH)
  Re: ext2fs corruption in 1.1.47-48 (Cameron Grant)
  RE: Gnat 1.81 l1 binary on Sunsite (Stephen Parkinson)

----------------------------------------------------------------------------

From: [email-masked] (Patrick Reijnen)
Subject: Re: WARNING about shadow-mk package
Date: Mon, 5 Sep 1994 15:09:35 GMT

In <[email-masked]> [email-masked] (Bauke Jan Douma) writes:

>If you are about to update you shadow programs with the shadow-mk
>package by Mohan Kokal, think again.

>Here's the snippet from the Makefile in that package where login is
>installed:

>       install -m4755 login $(LOGINDIR)/_login
>       install -m4711 login.secure $(LOGINDIR)/login

>It appears that login is installed as _login, and another binary,
>login.secure is installed as login. 
>This package has no sources for login.secure!
>Login.secure was never in the original shadow-3.n.n packages by John
>F. Haugh, and in this package is nowhere referred to.

>Sagittarius(tty2):/usr/src/shadow-mk> ls -la login*
>-rwx--x--x   1 root     staff       27792 Sep  1 15:05 login
>-rw-r--r--   1 root     staff        3351 Jun 28 04:44 login.1
>-rw-r--r--   1 root     staff       14568 Sep 17  1993 login.5
>-rw-r--r--   1 root     staff        3264 Sep 17  1993 login.c
>-rw-r--r--   1 root     staff        5324 Jul 13 09:12 login.defs
>-rw-------   1 root     staff        1555 Sep  1 15:04 login.o
>-rws--x--x   1 root     staff        1124 Jul 13 10:36 login.secure <- ?

>I would advise anyone that has installed this package to remove it.

>Of those that have already emailed me on this, one person told me in
>his correspondence with the author of this package (Mohan Kokal) that
>author, in his helpfulness, asked for a temporary account on his
>machine and, having been denied that, asked for the password file.
>The emailer also told me he has observed this author to be bragging
>about violating computer security.

>[email-masked]  (Bauke Jan Douma)

I also have the shadow-mk package and have seen the _login and login.secure files in my directories. What's wrong with them???????, exept for the fact that no sources are available of login.secure. Ask the author for the sources and check them for any pittfalls. Don't we trust each other anymore?????

Patrick Reijnen

--
************************* Patrick Reijnen *************************
* Department of Computer Science, Catholic University of Nijmegen * 
* Email:  patrickr@{sci,cs}.kun.nl                                *
* WWW:    http://{atlas,zeus}.cs.kun.nl:4080/homepage.html        *

------------------------------

From: [email-masked] (Andrew Benham)
Subject: Resolver Expert ?
Reply-To: [email-masked]
Date: Mon, 5 Sep 1994 12:20:39 GMT

Is there anyone who's an expert on the resolver in Linux who I
can discuss my problem with ?

I'm using an external DNS, and when Linux makes a query it insists
on adding the default domain to any hostname that doesn't have a
trailing dot.
So, for example, if I ping "bmdhh130.bnr.co.uk" from g8fsl.ampr.org,
Linux puts out a DNS request for "bmdhh130.bnr.co.uk.ampr.org", which
doesn't get resolved and I get a "host not known" error.

Any help would be appreciated - I've tried looking through the source
code but it isn't commented well enough for me to debug by
code-reading.

Andrew Benham
[email-masked]

------------------------------

From: [email-masked] (Phil Hughes)
Subject: Re: Digi Intelligent Boards?
Date: Mon, 5 Sep 1994 14:56:04 GMT

Simon Park ([email-masked]) wrote:

: AFAIK there are no Linux drivers available for any of the
: intelligent serial cards.

Depends on your definition of intelligent.  There is a Linux driver for
the Cyclades board based on Cirrus Logic RISC chips.  These chips are like
really smart buffered UARTS rather than a general-purpose processor on the
board but it's fast and it works.

If you need more info, there is an article on the driver development in
the September issue of Linux Journal.

--
Phil Hughes, Publisher, Linux Journal (206) 527-3385
usually [email-masked], sometimes [email-masked]

------------------------------

From: [email-masked] (David Monro)
Subject: Re: time speeds up
Date: Mon, 5 Sep 1994 15:35:44 GMT

In article <[email-masked]>,
Xiaoguang Zhang <[email-masked]> wrote:
>David Monro ([email-masked]) wrote:
>
>: Yeah, I get this too. I always assumed it was a hardware problem, since
>: I don't run the machine under DOS, but recently my mother has been using
>: the machine under DOS and it doesn't seem to happen there. It was about
>: 45mins fast after about 5 hours use the other night too - gave me a real
>: fright. The problem seems to have got worse a few kernels ago.
>: I manually fix the clock (and yes, I do write it back to the CMOS clock
>: as well) whenever I boot the machine.
>
>Have you been playing with your pc speaker?
>
>I've seen this problem a long time ago under DOS, when I was running
>a video game (forget which one). The clock advanced about 10 hours after
>about half an hour of play. Talking about time flies by. :-)
>
>Back then my 386sx did not have a real time clock and the CMOS clock was
>driven by the timer chip. The video game used the timer chip to play sound,
>therefore messed up the clock.

No - all I have to do is boot under Linux.

David

------------------------------

From: [email-masked] (Larry Doolittle)
Subject: Re: WARNING about shadow-mk package
Reply-To: [email-masked]
Date: Mon, 5 Sep 1994 16:01:31 GMT

Bauke Jan Douma ([email-masked]) wrote:

: If you are about to update you shadow programs with the shadow-mk
: package by Mohan Kokal, think again.

: Here's the snippet from the Makefile in that package where login is
: installed:

:       install -m4755 login $(LOGINDIR)/_login
:       install -m4711 login.secure $(LOGINDIR)/login

: -rws--x--x   1 root     staff        1124 Jul 13 10:36 login.secure <- ?

If Mohan is the cracker you suggest, what he would hate the most
would be publishing the login.secure program.

If Mohan is innocent, the fastest way to clear his neame would be
to publish the login.secure program.

Either way, I suggest you uuencode login.secure (if it's not an
ASCII shell script :-) and post it to these newsgroups.  A lot
of people here are competent with unassemblers.

     - Larry Doolittle    [email-masked]

: [email-masked]  (Bauke Jan Douma)

------------------------------

From: [email-masked] (Louis-D. Dubeau)
Subject: Re: Future of linux -- the sequel
Date: Mon, 5 Sep 1994 15:27:08 GMT

>>>>> "LF" == Lawrence Foard <[email-masked]> writes:

    LF> You mean one of these years :) The GNU-hurd (or heard?)
    LF> project has been going on for years before Linux was even
    LF> thought of. Linux is running, the micro-kernel hurd is still
    LF> in vapor land.

The Hurd is more complete than you think and ``Linux on Mach'' too. In
fact, a major part of the ``Linux on Mach'' project is now usable: the
ext2fs server (the other major part being binary compatibility). BTW,
the Hurd is very well designed and I think it was worth the wait. I
like Linux better than the Hurd but I think that using Hurd technology
to acheive ``Linux on Mach'' is the best possible solution now.

BTW, most problems with Mach are very likely to be solved in Mach
4. Bryan Ford, the head developper for Mach 4, is much more open to
requests from the ``freeware world'' than CMU ever was.

        ldd

|              Louis-Dominique Dubeau <[email-masked]>
|Computer Engineering, Ecole Polytechnique de Montreal (Montreal, Quebec)
|         Linux on Mach project (http://step.polymtl.ca/~hallu/)
|                     -> This sentence is false!!! <-

------------------------------

From: [email-masked] (Thomas Quinot)
Crossposted-To: comp.os.linux.admin,comp.os.linux.help
Subject: Re: [HELP]  NIGHTMARE CONFIGURING THE NETWORK WITH A 3C503/16 PLEASE HELP !!
Date: 4 Sep 1994 22:33:42 +0200

Le Prostetnic Vogon Christophe Person écrit :

> o I have tried to install NetKit A and B and noticed that ifconfig
>   returns something like
>       IRQ=0 and BaseAddr=0.

>       Also HWaddr=00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

Upgrade your ifconfig/route & co.

>       3C503 probe at 0x2e0: not found
>       3C503 probe at 0x310: 02 60 8c 8d cb 6e
>       eth0: 3C503 with shared memory at 0xdc000-0xddfff       

>       What does it mean ??? I am not a linux newbie and installed
> successfully many systems (SLS and Slackware) without any kind of problem.

The 3c503 init routines probes for your net adapter first at i/o address
0x2e0 (which is not successful), the at address 0x310 (where it actually
resides). Hence the adapter is this time detected, and the routine grabs
its RAM address range, which spans from 0xdc000 to 0xddfff.

-- 
Thomas QUINOT                       |  "Un roi sans divertissement est un
<[email-masked]>      |             homme plein de misère."
Linux - choice of a GNU generation  |                          Jean GIONO

------------------------------

From: [email-masked] (Russell Leighton)
Crossposted-To: comp.os.linux.admin
Subject: HORRIBLE SWAP THRASHING BUG(feature?) (please try this)
Date: 5 Sep 1994 12:59:17 -0400

        HORRIBLE SWAP THRASHING BUG (please try this)

A simple program that runs consistantly in ~1.25min on my 
SGI 33Mhz r3k Indigo completely ruins my Linux box.
Please run the short program "thrash" (see end) and let me know
how it performs on your system...for me this is a 
serious problem.

Will adding more memory make the situation better? How much more?
Will another Linux release behave better?

Thanks.

Russ

Configuration:
        Linux 1.1.48
        P90 PCI
        16M ram
        >80Mbytes swap (1 18M partition, 4 16M files)

Symptoms:
        1. run "thrash" once (~4min)...everything is okay
        2. run "thrash" again (~1 hour!) ... system is very sluggish
        3. run "thrash" again (> ~1 hour!) ... nothing runs, locked

Directions:
        0. Compile "thrash"
                gcc -O2 -m486 thrash.c -o thrash

        1. Make a big file (~100Mbytes) :
                dd if=/dev/zero of=bigfile bs=1024 count=100000

        2. run "thrash"
                time thrash bigfile

        3. run "thrash"
                time thrash bigfile

        4. run "thrash"
                time thrash bigfile

        5. if you get this far send me email and tell me why!

========== cut here thrash.c =============

/* thrash.c

   gcc -O2 -m486 thrash.c -o thrash
*/

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/fcntl.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>

/* for those that don't require this */
#ifndef MAP_FILE
#define MAP_FILE 0
#endif

/* main */
main(int argc, char **argv)
{
  caddr_t data;
  struct stat buf;
  int val, fd;

  if (argc < 2) exit(-1);

  fd = open(argv[1], O_RDWR);
  if (fd < 0) {
    perror("thrash (open)");
    exit(-1);
  }

  /* get size */
  fstat(fd, &buf);
  fprintf(stderr, "\nSize=%d", buf.st_size);
  fflush(stderr);

  /* mmap */
  data = mmap(NULL, buf.st_size,
              PROT_READ,
              MAP_FILE | MAP_PRIVATE,
              fd, 0);
  if ( data == (caddr_t)-1) {
    perror("thrash (mmap)");
    exit(-1);
  }

  /* done w/file */
  close(fd);

  /* touch all of the bits */
  {
    unsigned int n=buf.st_size;
    char *ptr=(char *)data;
    
    while (n--) val = *ptr++;
  }

  /* done */
  exit(val);

}
-- 
        Russell Leighton     
        Taylor Computing   
        [email-masked]  [email-masked] 
        http://taylor.digex.net  http://www.digex.net/~rrl/Welcome.html

------------------------------

From: [email-masked] (Miguel de Icaza)
Crossposted-To: comp.os.linux.admin,comp.os.linux.help
Subject: Re: [HELP]  NIGHTMARE CONFIGURING THE NETWORK WITH A 3C503/16 PLEASE HELP !!
Date: 05 Sep 1994 17:02:15 GMT

> o I have tried to install NetKit A and B and noticed that ifconfig
>   returns something like
> 
>       IRQ=0 and BaseAddr=0.
> 
>       Also HWaddr=00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

I had a similar problem with the DEPCA driver in some 1.1.1x or 2x
version of the kernel, now it's fixed, but what I did that time was to
hard code the IRQ value in the Space.c file in ~linux/drivers/net.

Miguel.

------------------------------

From: [email-masked] (Jingsong Li)
Subject: How to get lib*.sa  in addition to lib*.a
Date: 5 Sep 1994 11:57:42 -0400

Hi,

I know many of  you in  this group  are experts.

I want  to get  small binaries, GCC-faq tells to use shared  libraries, but

GCC-faq does not tell how.

So  how to get lib*.sa?

Thanks.

JL
-- 
~{KIKI~} ~{@n>"KI~}

------------------------------

Date: Mon, 5 Sep 1994 08:50:16 EST
From: BARRY TITMARSH <[email-masked]>
Subject: BUG Report for SCSI developers 1.1.49

Ok, I upgraded from Slack 1.0? to Slack 2.0 this weekend
I have updated the system from downloads and kept it as new as i could
but at the weekend i reinstalled ALL from 2.0
I was running 1.1.49 gcc2.5.8 + libs ....24  with slack 2.0 im now
libs ....26 etc.. the rest is much the same.
I have 386/387 adaptec 1542B scsi devices
Syquest 88mb Nec cdr841 Phillips scsi-1 cdrom  so 1x scsi-2 disk
1x scsi-1 cdrom 1x scsi-2 cdrom
1.0.9 has no problems with mounting or unmounting scsi-1 or -2
devices,  However on my old config pre slack 2.0 i did have some
intermittant scsi timeouts.
with the new config slack 2.00 + kernel 1.1.49 compiled with
scsi disk scsi cdrom  without scsi tape and without scsi generic
with scsi driver 1542 support.
in the system is 2 ide disks + qic02 tape ms-busmouse wd-8013
all on defaults addr + irqs except busmouse = irq9
on bootup of 1.1.49 i sometimes get a scsi host (0) detected
and then system hangs up,  after waiting for 1-2 mins to see what happens
i get scsi timeouts as per the uue listing below
also if the system boots up. and i try to mount ANY scsi device
i get continious logging as per the uue file below

I would ask the scsi developers to look!! at this bug report
Thanks Barry..

section 1 of uuencode 5.15 of file scsibug.gz    by R.E.M.

sum -r/size 59774/2425 section (from "begin" to "end")
sum -r/size 43931/1739 entire input file

------------------------------

From: [email-masked] (Cameron Grant)
Subject: Re: ext2fs corruption in 1.1.47-48
Reply-To: [email-masked]
Date: Mon, 5 Sep 1994 06:17:26 +0000

In article <[email-masked]>
           [email-masked] "Robert A. Tiller" writes:

> : : >When a file is corrupted, it has perhaps 8, perhaps 10 (I never made
> : : >a note about it) corrupted characters. They're placed so that EVERY
> : : >OTHER character is corrupted with an uncorrupted character between.
> : : 
> : : Mmm.. a potentially good clue, if you can reproduce it and then
> : : post a real example, with the exact byte offset within the file
> : : carefully noted.

I had this problem with an IDE drive - every 16 bytes transferred from the
drive would have bit 0 stuck - even after a cold reboot and loading DOS 
instead of Linux.  Interestingly, even the drive ID was corrupted to something 
like 'Samsung Elecuronics SHC-' something.  I was just using Linux when the
problem became apparent...ie, I got several kernel panics.  This was quite a
while ago, and appeared to be solved by removing and reinserting the data 
cable to the drive, so it may well have been the drive itself - it just 
seemed too much of a cooincidence.  ISTR it was with a kernel pre 1.1.22.

-- 
_.-=======================================================================-._
|  Cameron Grant  | GCS/M/S -d+(--) H s--:--- g+ p5+ au++++ a-- w+ v+ C++++ | 
| Hardware//CodeX | UL++++ !P L++ 3 N+++ K++ W(-) M-- V- -po+ Y+ t+ 5+ !j R |
|     gtg@IRC     | G? tv b+++ D+ B-- e* u+(-) h(!) f(+) r-->++ n- !y+(**)2 |
|  SRD: 24/07/94  | [email-masked] : [email-masked] |
`-=========================================================================-'

------------------------------

From: [email-masked] (Stephen Parkinson)
Subject: RE: Gnat 1.81 l1 binary on Sunsite
Date: Mon, 5 Sep 1994 08:05:07 +0000

Has anyone had a problem with this file giving
'Unexpected Eof' message when unzipped/untarred ??

taar zxf gnat-1.81-l1-bin.tar.gz

Yes, I did use bin and then pulled it again to make sure

Stephen Parkinson

------------------------------

** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [email-masked]

You can send mail to the entire list (and comp.os.linux.development) via:

    Internet: [email-masked]

Linux may be obtained via one of these FTP sites:
    nic.funet.fi				pub/OS/Linux
    tsx-11.mit.edu				pub/linux
    sunsite.unc.edu				pub/Linux

End of Linux-Development Digest
******************************