Received: from PACIFIC-CARRIER-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA16572; Sat, 30 Sep 95 01:15:31 EDT
Received: from SENATOR-BEDFELLOW.MIT.EDU by MIT.EDU with SMTP
	id AA23974; Sat, 30 Sep 95 01:15:03 EDT
Received: (from root@localhost) by senator-bedfellow.MIT.EDU (8.6.12/2.3JIK) id BAA06856 for Linux-Development-System-Dist@senator-bedfellow.mit.edu; Sat, 30 Sep 1995 01:13:57 -0400
Message-Id: <199509300513.BAA06856@senator-bedfellow.MIT.EDU>
From: Digestifier <Linux-Development-System-Request@senator-bedfellow.MIT.EDU>
To: Linux-Development-System@senator-bedfellow.MIT.EDU
Reply-To: Linux-Development-System@senator-bedfellow.MIT.EDU
Date:     Sat, 30 Sep 95 01:13:55 EDT
Subject:  Linux-Development-System Digest #863

Linux-Development-System Digest #863, Volume #1  Sat, 30 Sep 95 01:13:55 EDT

Contents:
  Update on 1.2.11 bug (?) (Dan Miner)
  /proc/dev: virtual device entries (/dev replacement) (Dan Miner)
  Kernel debuggers on 386? (Geoff Kuenning)
  help w/ glibc make (David Shaffer)
  1.3.30 oops (Richard Waltham)
  Re: kswap info...? (Joe Buck)
  Re: Anyone working on /ftp fs? (Thomas R. Stevenson)
  How to make root disks? (Thieu Le)
  Unable to handle Kernel paging request at virtual address df43f900. (Eric Langjahr)
  kerneld support for 1.3.?? ("David B. Lounsberry")
  working on IP-UDP Tunnelling - advice needed (Jim McGrath)
  Re: non-GNU C++ compiler? (Randall Shutt)
  8Ys not detected (Rafal Maszkowski)
  Re: Shadow passwds and quota in the next major kernel release? (Marek Michalkiewicz)
  Re: another kswap+ELF problem (Rico Jansen)

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

From: danm@gcs.com (Dan Miner)
Subject: Update on 1.2.11 bug (?)
Date: Fri, 29 Sep 1995 17:08:25 GMT

I did finally recover from my big "Opps"; however, I do feel there is
a bug in genhd.c in the add_partition/extended_partition functions.

These functions, from what I can tell, don't do any bounds checking for
the extended partition given a specific device.  Example, I made
about 63 logical partitions on /dev/sdc which was my last SCSI device.
After adding up to 15 partitions to the "logical" devices, it then continues
to add them.  Somewhere in there, the SCSI routines is passed a NULL poiunter
for a SCSI device descriptor; hence, my kernel panics.

I fixed it by taking the drive off-line and hacking a kernel to allow
only 8 (arbitrary) extended partitions to be defined globally.  I booted
up with this kernel and the drive and just 'dd'ed the drive to dead. :)

However, it would be easy to limit total partitions defined per device
to any constant.  I'm wondering why this hasn't been done yet?  [Other
than: Who would be stupid enough to do it :)]

But I have a better idea..... which is in a separate post...

        Thanks,
                Dan
-- 
  Dan Miner    :  danm@wgs.com      USA Tel: 303-699-7470  Fax: 303-699-2793 
WorkGroup Solutions, Inc.    The FlagShip "CA-Clipper and XBase on Unix" People
Info at:  ftp.wgs.com/pub2/wgs/Filelist
   mail: info@wgs.com

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

From: danm@gcs.com (Dan Miner)
Subject: /proc/dev: virtual device entries (/dev replacement)
Date: Fri, 29 Sep 1995 18:49:12 GMT

During my last episode with too many partitions on an HD, I discovered
an idea for making major/minor numbers rather dynamic and almost pointless
for users to know.  It's mostly device registation change.

A device driver would register itself somewhat like is done now except
it would receive a "major" (call it a device id).  At this point, you
still can't "access" the driver.  It needs to register logical devices.
Here is where the "minor" would be available for registation in any way
the driver sees fit.  Now in the /proc, it would have a directory called
/proc/dev which contains the device entries as the ones found in /dev.
Here is an example sequence:

        static int hda_dev_id = 0;
        static int hda_logical_nr = 0;

        /* allocate driver */
        if (hda_dev_id = register_driver("ide0")) {
                printk("ide0: unable to register device driver\n");
        }

        /* register our RAW device for our HD */
        if (!register_device(hda_dev_id, 0, ide0_raw_driver_funcs) {
                printk("ide0: unable to register %02x%02x\n", dev_id, logical);
        }
        hda_logical_nr++;

        /* read and register the partitions devices */
        hda_logical_nr += rr_partitions(hda_dev_id, ide0_driver_funcs);


Now in the /proc/dev directory we would have something like:

hda     hda1    hda2    hda3

        What do you think?

        Thanks,
                Dan
-- 
  Dan Miner    :  danm@wgs.com      USA Tel: 303-699-7470  Fax: 303-699-2793 
WorkGroup Solutions, Inc.    The FlagShip "CA-Clipper and XBase on Unix" People
Info at:  ftp.wgs.com/pub2/wgs/Filelist
   mail: info@wgs.com

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

From: geoff@ficus.cs.ucla.edu (Geoff Kuenning)
Subject: Kernel debuggers on 386?
Date: 29 Sep 1995 17:57:43 GMT

It seems like this ought to be a FAQ, but I couldn't find it anywhere.
What do people do about kernel debugging on 386's?  Given the relative
ease of writing a simple assembly-language debugger, I find it hard to
believe that there's nothing at all out there.  But I haven't found
anything yet.  Debugging my changes with printk is slowing my progress
and reminds me far too much of the bad old days.

Any pointers?
-- 
        Geoff Kuenning  g.kuenning@ieee.org     geoff@ITcorp.com
        http://www.cs.ucla.edu/ficus-members/geoff/

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

From: eds@ns2.icon.net (David Shaffer)
Subject: help w/ glibc make
Date: 29 Sep 1995 20:35:12 GMT

i get the following errors....

depend-:1: sysdep.d: No such file or directory
depend-:2: set-init.d: No such file or directory
depend-:3: version.d: No such file or directory
depend-:4: start.d: No such file or directory
cd sysdeps/..; gcc -DHAVE_GNU_LD -DHAVE_GNU_AS  -DHAVE_sys_termios_h \
                make-ioctls.c -o make-ioctls
make-ioctls.c: In function ain':
make-ioctls.c:350: AGE_SIZE' undeclared (first use this function)
make-ioctls.c:350: (Each undeclared identifier is reported only once
make-ioctls.c:350: for each function it appears in.)
make-ioctls.c:350:      OC_SHIFT' undeclared (first use this function)
make: *** [sysdeps/../make-ioctls] Error 1

any suggestions?

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

From: Richard Waltham <dormouse@farsrobt.demon.co.uk>
Subject: 1.3.30 oops
Date: Fri, 29 Sep 1995 19:56:59 GMT


Hi,

Couple of problems I've come across running scsi tapes in kernel 1.3.30.

st_options.h set up with ASYNC writes OFF and 2 FILEMARKS, all other options
at the default values, tape devices HP1533a, controller aha1542cf.

Typical tape command causing problem - "tar -cvf /dev/st1 -C /usr ."

1. In VARIABLE and FIXED block mode. The tape goes into an uninterruptible
sleep after writing the closing filemarks. This happens using rewind or
NO-rewind tape devices. If using the rewind device NO rewind is done.
The output was checked using a scsi analyser and the 2 filemarks written
during the close appear to have been completed correctly, the scsi bus being
back at bus free and no attempt to select the tape for doing the rewind.

I can only get out of this situation by rebooting. After rebooting the scsi
system is fully functional again. NO reset is sent during re-booting and the
scsi tapes are fully operational again indicating again that the command
prior to the uninterruptible sleep (write 2 filemarks) completed ok.

This problem is solid - the tar does not complete ever - and happens for any
device /dev/st0, /dev/st1, /dev/nst0, /dev/nst1 etc.

Same for FIXED mode except see no. 2 below.

Typical output from /var/adm/messages below with st.c debug enabled:

st1: Block limits 1 - 16777215 bytes.
st1: Mode sense. Length 11, medium 0, WBS 10, BLL 8
st1: Density 24, tape length: 0, drv buffer: 1
st1: Block size: 0, buffer size: 32768 (1 blocks).
st1: File length 194560 bytes.
st1: Async write waits 0, finished 0.



2. In FIXED mode an OOPS is generated as below, apparently somewhere in the
tape_write routine, caused presumably by the NULL pointer deference. This
appears to happen on the first call to tape_write and after the oops the
tape close is called and the tar hangs as in 1 above. One scsi write command 
is executed no matter how much data is to be written, but it completes ok as
the 2 filemarks from the close are executed. 

Apart from the oops the problem is identical to the above. i.e. it goes
into uninterruptible sleep during the tape_close after writing the
filemarks.

Writing with a second tape device (in fixed mode) the oops does not happen
again but the debug messsages from st.c that go into /var/adm/messages are 
echoed to the console as well as being put into /var/adm/messages which is a
bit odd.


Extract from /var/adm/syslog. Second line looks peculiar - ^Dr3...???:

Unable to handle kernel NULL pointer dereference at virtual address c0000050
current->tss.cr3 = 00c6a000, ^Dr3 = 00c6a000
*pde = 00102067
*pte = 00000027


Typical output from /var/adm/messages showing st.c debug output with Oops
buried in the middle.

st1: Block limits 1 - 16777215 bytes.
st1: Mode sense. Length 11, medium 0, WBS 10, BLL 8
st1: Density 24, tape length: 0, drv buffer: 1
st1: Block size: 1024, buffer size: 32768 (32 blocks).
Oops: 0002
EIP:    0010:001ad5b7
EFLAGS: 00010246
eax: 00002800   ebx: 0020c310   ecx: 00203e9c   edx: 00000000
esi: 00002800   edi: 00000000   ebp: 0020c340   esp: 00c22edc
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process tar (pid: 82, process nr: 17, stackpage=00c22000)
Stack: 00081c90 00f21e00 00002800 00026000 001eaa53 001eaa53 001eaa53 00000001 
       00000001 00188c9e 00d5a000 00fa9918 00fa9858 00000202 00fa9918 00fa9858 
       00000000 00d169a0 00000001 001f9164 00000202 0020c310 0020c310 00000000 
Call Trace: 00188c9e 0011f396 00125d70 00110f30 0010b063 0010aea1 001c002b 
Code: c7 47 50 ff ff ff ff 83 bc 24 98 00 00 00 00 74 38 8b 44 24 
st1: Flushing 10240 bytes.
st1: File length 10240 bytes.
st1: Async write waits 0, finished 0.


System.map. Hope this ties in with above as I'm not sure what I'm doing with
this :-)

001ab418 T _scsi_dev_types
001ab590 T _proc_print_scsidevice
001ab800 t _st_chk_result
001ab9b0 t _st_sleep_done
001abaf0 t _st_do_scsi
001abbb0 t _write_behind_check
001abc90 t _back_over_eof
001abd80 t _flush_write_buffer
001abfa0 t _flush_buffer
001ac230 t _scsi_tape_open
001ac980 t _scsi_tape_close
001acc30 t _st_write
001ad760 t _st_read
001ae030 t _st_set_options
001ae440 t _st_int_ioctl
001af280 t _st_ioctl
001b0420 t _new_tape_buffer
001b0550 t _enlarge_buffer
001b05f0 t _normalize_buffer
001b0640 T _st_setup
001b06c0 t _st_attach
001b0820 t _st_detect
001b0980 t _st_init
001b0ca0 t _st_detach
001b0d54 t _end_scsi_request


The hang up and oops happen whether st.c debug is enabled or not. 

Finally a question - what is ksymoops? I've seen mention of it here and
there and it looks like its something to extract the symbols from System.map
for an oops automatically. Is this right and if so where can I find it?

Richard

--
Richard Waltham   |                             dormouse@farsrobt.demon.co.uk
  At home in      |                                    Compuserve 100421.1276
Southampton UK    |     FAX + GTPN 050/066 The Board Room +44 (0) 1703 760099
--

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

From: jbuck@synopsys.com (Joe Buck)
Subject: Re: kswap info...?
Date: 29 Sep 1995 18:00:45 GMT


ap2ajm@acms0.shef.ac.uk (Andrew Maguire) writes:
>>I am interested in patching kswap to my kernel (1.2.8).

T.Nugent@sct.gu.edu.au writes:
>Why not patch your kernel up to 1.2.13?

Why not do both?  All 5 patches since 1.2.8 fixed bugs.  Seems if you're
willing to patch and rebuild your kernel you might as well take the bug
fixes.

>>2. Seeing that I have 1.2.8 kernel which patch do I apply?
>>   The only patches I know of are from ftp.presence.co.uk
>
>>   and are
>>-rw-r--r--   1 sct      staff       23215 Apr 30 02:35 kswap-1.2.7.ud
>>-rw-r--r--   1 sct      users       25136 Jun  3 04:37 kswap.127-to-129c.ud
>>-rw-r--r--   1 sct      users       37769 Jun  3 03:29 kswap129c.ud

The kswap129c.ud patch will apply cleanly against versions 1.2.9 through
1.2.13.

-- 
-- Joe Buck     <jbuck@synopsys.com>    (not speaking for Synopsys, Inc)
Anagrams for "information superhighway":        Enormous hairy pig with fan
                                                A rough whimper of insanity

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

From: tom@tom.cc.wayne.edu (Thomas R. Stevenson)
Subject: Re: Anyone working on /ftp fs?
Date: 29 Sep 1995 19:19:53 GMT

H. Peter Anvin (hpa@loki.yggdrasil.com) wrote:


: ftpfs (in userfs) uses the notation:

:       /ftp/foo.bar.edu/pub/xyzzy

: Now, I personally wish it wouldn't require a mkdir in the /ftp
: directory... it would make it much easier to use, and allow symlinks
: to it, etc.

Would I do an archie search on ftpfs or userfs or what? Thanks!

--

     ____  __   __   EMail:     tom@tom.cc.wayne.edu
      /   /_/  /_    VMail:     (313) 577-4742 
     /.  /\.  __/.   Fax:       (313) 577-5626
                     Home Page: http://tom.cc.wayne.edu
                     Anon FTP:  ftp://tom.cc.wayne.edu

   For my PGP PUBLIC KEY BLOCK,
       finger tom@tom.cc.wayne.edu

"A common mistake that people make when trying
 to design something completely foolproof was         Douglas Adams
 to underestimate the ingenuity of complete           Mostly Harmless
 fools."


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

From: thieule@exp2.wam.umd.edu (Thieu Le)
Subject: How to make root disks?
Date: 29 Sep 1995 22:50:10 GMT

I would like to set up a basic linux system on a 386dx33 with 4mb ram.
the problem is that the system has no hard drive, just a floppy.  i know
how to make a boot disk, but how would i specify a different floppy as
the root filesystem?  is it anything like 'rdev vmlinuz /dev/fd0'?  also,
how would i make a root disk with the necessary files/directories/etc?



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

From: Eric Langjahr <langjahr@wizard.com>
Subject: Unable to handle Kernel paging request at virtual address df43f900.
Date: 29 Sep 1995 11:58:38 GMT

I have been receiving a message right at initial boot as follows:


Unable to handle Kernel paging request at virtual address df43f900.
After that core dump and hang

Kernel panic: Trying to free up swapper memory space
In swapper task - not syncing

This ONLY happens with 1.2.x linux kernels (from basic boot images)
The 1.1.x systems all work fine on the same machine with no configuration 
changes.

Does anyone have any suggestions???


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

From: "David B. Lounsberry" <dbl@iag.net>
Subject: kerneld support for 1.3.??
Date: 30 Sep 1995 01:50:35 GMT

Has anyone been maintaining the kerneld patches for the 1.3 tree? Supposedly
kerneld is designed for the 1.3 kernels. I attempted to patch 1.3.30 with 
the patch file made from 1.2.8 but no go. Don't get me wrong....I did "attempt"
to manually change the .c files but quickly found that there were quite a few
changes in the IPC networking code.  


-- 
-dbl
David B. Lounsberry
dbl@iag.net


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

From: Jim McGrath <jim@csi.co.nz>
Crossposted-To: comp.os.linux.networking
Subject: working on IP-UDP Tunnelling - advice needed
Date: 30 Sep 1995 02:08:30 GMT

Hi all,

I have been looking at encapsulating IP packets in UDP or some other 
protocol so that I can pass the through another network. (SNA/APPC 
between two AS/400s to be precise)

What I intend to do is modify the IP tunnel driver to pass the packets 
back up to a reading program and have it do the UDP. This should keep 
things relatively clean. This also effectively allows tunnelling of any 
protocol over any protocol I think (although tunnel.c only seems to 
mention IP- why?)

The question is, what sort of interface do I use between the user mode 
bit and the tunnel driver? If I use a character device, how do I spot 
the boundaries between packets? 

Some kind of a socket seems to be what I want. I have looked at the 
userfs code and it does it like that. Is this the best way of doing it? 

Or am I totally barking up the wrong tree here?

Feedback/direction much appreciated,

Jim McGrath


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

From: rshutt@extacy.cwt.udel.edu (Randall Shutt)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: non-GNU C++ compiler?
Date: 29 Sep 1995 20:10:07 GMT

>>Here is what I _think_ I know.  G++ used to convert to c c++, but not since 
>>2.3.3 or so.  (I remember when the first g++ compiler that did not convert
>>was released, and I think this was the version.)

>In the future, don't post unless you _know_ that you know.  Otherwise
>you're just wasting everyone's time.

<USELESS SHIT OMITTED>

>>Don't flame me if I got this wrong.  I'm close at least (I think).

>No, you are not close, and you deserve *serious* flames.  Only post
>when you have direct knowledge or experience in the future.

  Are you some kind of retard?  DO you think you are GOD telling this poor 
huy what to post and what to not post.  Well, here is a truely informative
piece of direct knowledge gained from experience.  

jbuck@synopsys.com is a fascist, elitest, scum of the internet, wanna
                              be genius. 


SORRY FOR THE FLAME ON PUBLIC NEWSGROUPS, but this guy just pisses me off
thinking about him. 
>-- 
>-- Joe Buck     <jbuck@synopsys.com>    (not speaking for Synopsys, Inc)
>Anagrams for "information superhighway":        Enormous hairy pig with fan
>                                                A rough whimper of insanity



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

From: rzm@mat.uni.torun.pl (Rafal Maszkowski)
Subject: 8Ys not detected
Date: 29 Sep 1995 20:44:48 GMT

Has anybody experienced this? I have such problem on two different machines.
The driver is compiled in...

R.
-- 
Rafal Maszkowski rzm@mat.uni.torun.pl     http://www.mat.uni.torun.pl/~rzm
Opinia publiczna powinna byc zaalarmowana swoim nieistnieniem - St. J. Lec

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

From: marekm@i17linuxb.ists.pwr.wroc.pl (Marek Michalkiewicz)
Subject: Re: Shadow passwds and quota in the next major kernel release?
Date: 29 Sep 1995 16:57:19 GMT
Reply-To: marekm@i17linuxa.ists.pwr.wroc.pl

Robert Brockway (robert@athena) wrote:
: Jon Lewis (jlewis@inorganic5.chem.ufl.edu) wrote:
: : On 22 Sep 1995, Paul Holcomb wrote:

: : Shadow is much more a distribution issue (i.e. why do most Linux 
: : distributions not include it even as an option?) than a kernel issue.

: It is for copyright reasons.  The shadow password source for Linux has
: a copyright which prevent it from being sold (so it can't be on a Linux CD).
: It is the same reason that kermit no longer appears on Linux CDs.  Thus
: the distributions that are sold on CD can't provide shadow passwords. 

But maybe they should at least make sure that all binaries which need to be
shadow-aware support shadow passwords if they find them on the system?
It isn't that hard to do - just use the NYS library (distributed as part
of libc 5.x source) which has support for shadow passwords and is under
the LGPL, and use non-shadow passwords instead if there is no /etc/shadow
on this system.  This way, one can just get the shadow suite off the net
and install it - the tricky part (hacking shadow support in ftpd, rexecd,
xdm, xlock, ...) is already done.

The copyright issue is apparently resolved now (according to the author)
but I can't find the new version with new copyright anywhere...  But don't
worry - I am working on a rewrite of the shadow suite specifically for
Linux (I can't do any testing on other platforms anyway), which should be
done within a few months (unless something new happens - like the shadow
suite released by the author under a more reasonable copyright, even in
its current buggy form).

Marek

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

From: rico@disaster.xs4all.nl (Rico Jansen)
Subject: Re: another kswap+ELF problem
Date: 29 Sep 1995 11:03:19 +0100

Ben Wing (wing@netcom.com) wrote:

: ld -m elf_i386 -Ttext 0x100000 arch/i386/kernel/head.o init/main.o
: init/version.o \
:         arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o
: fs/fs.o net/net.o ipc/ipc.o \
:         fs/filesystems.a \
:         drivers/block/block.a drivers/char/char.a drivers/net/net.a
: drivers/scsi/scsi.a \
:         /usr/src/linux/lib/lib.a -lgcc -o vmlinux
: ld: warning: cannot find entry symbol _start; defaulting to 00100000
: arch/i386/kernel/kernel.o(.data+0x230): undefined reference to `_sys_sysctl'


I had something similar when I switched to ELF, enreferenced entrys and
_start not found. The problem is that 'make config' didn't set KERNEL_ELF
so do make config again and see if the kernel is compiled as ELF.
'Your gcc is ELF_GCC' it says on that line.

GrtX. Rico

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


** 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: Linux-Development-System-Request@NEWS-DIGESTS.MIT.EDU

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

    Internet: Linux-Development-System@NEWS-DIGESTS.MIT.EDU

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-System Digest
******************************
